R
R
rumata2011-02-18 15:02:42
Computer networks
rumata, 2011-02-18 15:02:42

Ubuntu bridging wlan hostapd?

Why does it take a long time for a bridge connection to open in Ubuntu 10.10?
/etc/interfaces

auto br0<br/>
iface br0 inet static<br/>
 address 192.168.0.1<br/>
 netmask 255.255.255.0<br/>
 network 192.168.0.0<br/>
 bridge_ports eth0 wlan0<br/>

eth0 and wlan0 are not listed anywhere else in interfaces.
wlan0 rises the access point through hostapd in daemon mode.
Hostapd starts up and has the option that wlan0 participates in br0.
Actually the problem is that the dhcp server starts before the interface rises and does not accept connections on it. If you then manually restart dhcp, then everything works fine. Somewhere in the manuals, I read that it seems like the dhcp server should wait for the bridge to be raised, but how to do this and what is the reason for the long loading of the bridge (about 10-15 seconds).

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
rumata, 2011-02-19
@rumata

How did the crutch turn out to be done like this: I.e. in the post-up, restart all non-working services and add a second wlan0 interface.
auto br0
iface br0 inet static
address 192.168.0.1
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
bridge_ports eth0
post-up /etc/network/iptables.rules
post-up /usr/sbin/brctl addif br0 wlan0
post-up /etc/init.d/dhcp3-server restart
post-up /etc/init.d/linux-igd restart
post-up /etc/init.d/hostapd restart
post-up /etc/init.d/smbd restart

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question