Hostapd works but....

I plug USB nano WiFi dongle because WiFi port buidin my laptop does not support AT/Master mode.
I just created script to run hostapd in bridge mode on it:
Now my smartphone and tablet has commection to the rest of network, including corporate DHCP server. hostapd works like a charm.
But the laptop does not communicate with any network peer and Internet.
Below outputs from bridge status, netstat -rn and ifconfig/iwconfig.
Whats wrong with hostapd startup script that it block whole laptop communication?
I just created script to run hostapd in bridge mode on it:
- Code: Select all
#!/bin/bash
echo 1 > /proc/sys/net/ipv4/ip_forward
brctl addbr br0
brctl addif br0 eth0
ip link set up dev br0
hostapd /etc/hostapd/hostapd.conf
Now my smartphone and tablet has commection to the rest of network, including corporate DHCP server. hostapd works like a charm.
But the laptop does not communicate with any network peer and Internet.
Below outputs from bridge status, netstat -rn and ifconfig/iwconfig.
- Code: Select all
[root@piotr-l ~]# brctl show br0
bridge name bridge id STP enabled interfaces
br0 8000.001e6825d575 no eth0
wlan1
[root@piotr-l ~]# ifconfig
br0 Link encap:Ethernet HWaddr 00:1E:68:25:D5:75
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:123 errors:0 dropped:8 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:10992 (10.7 KiB) TX bytes:0 (0.0 b)
eth0 Link encap:Ethernet HWaddr 00:1E:68:25:D5:75
inet addr:192.168.1.101 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4097 errors:0 dropped:0 overruns:0 frame:0
TX packets:3982 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3166761 (3.0 MiB) TX bytes:552943 (539.9 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:90 errors:0 dropped:0 overruns:0 frame:0
TX packets:90 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:22916 (22.3 KiB) TX bytes:22916 (22.3 KiB)
wlan0 Link encap:Ethernet HWaddr 00:1F:3C:02:0F:C0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
wlan1 Link encap:Ethernet HWaddr 7C:DD:90:5D:41:69
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:184 errors:0 dropped:0 overruns:0 frame:0
TX packets:178 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:30011 (29.3 KiB) TX bytes:111579 (108.9 KiB)
[root@piotr-l ~]# iwconfig
eth0 no wireless extensions.
wlan0 IEEE 802.11abg ESSID:off/any
Mode:Managed Access Point: Not-Associated Tx-Power=15 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
br0 no wireless extensions.
lo no wireless extensions.
wlan1 IEEE 802.11bgn Mode:Master Tx-Power=20 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Power Management:off
[root@piotr-l ~]# netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
Whats wrong with hostapd startup script that it block whole laptop communication?