Bridging between wired ethernet and wireless ethernet

marco at elvizz.no-ip.com marco
Thu Jun 26 03:19:53 PDT 2003


Hello!

I want to extend my wired ethernet with a wireless part.
I try to show how it should be:

PC1   PC2   PC3   PC4   ...
 |     |     |     |     |
 +-----+-----+-----+-----+-----+
                               |
                     bridge running linux
                         with HostAP
                               ?

  wireless node 1?


-- being an ethernet-cable
+- being a wired-network adapter
?  being a wireless-network adapter

Ok, as I said, I want to build up this bridge. I have kernel 2.4.20 with
bridging compiled as module. I also have the actual bridge-utils (0.9.6)
and hostap-0.0.3 installed.
Both ethernet-adapters are working fine (I tested each for itself).
So I load the bridge-module and enter:

# brctl addbr br0
# brctl addif br0 eth0
# brctl addif br0 wlan0
# ifconfig eth0 0.0.0.0
# ifconfig wlan0 0.0.0.0
# ifconfig br0 192.168.1.10 netmask 255.255.255.0 up

In /var/log/messages I see the bridge coming up with:

Jun 26 11:34:42 bridge kernel: br0: port 2(wlan0) entering listening
state
Jun 26 11:34:42 bridge kernel: br0: port 1(eth0) entering listening
state
Jun 26 11:34:52 bridge kernel: br0: no IPv6 routers present
Jun 26 11:34:57 bridge kernel: br0: port 2(wlan0) entering learning
state
Jun 26 11:34:57 bridge kernel: br0: port 1(eth0) entering learning state
Jun 26 11:35:12 bridge kernel: br0: port 2(wlan0) entering forwarding
state
Jun 26 11:35:12 bridge kernel: br0: topology change detected,
propagating
Jun 26 11:35:12 bridge kernel: br0: port 1(eth0) entering forwarding
state
Jun 26 11:35:12 bridge kernel: br0: topology change detected,
propagating


When I now try to ping the wireless-node from the wired-network or a
wired-node from the wireless-node, it fails without error-messages.

I hope someone can help me and give me the right instructions...

Thanks for listening...




More information about the Hostap mailing list