Bridging eth0 and wlan0 on a Soekris 4511 using hostap_pci

Tom Izard tizard at appleaid.com
Fri Jul 29 13:34:39 EDT 2005


Hello List,

I am having some trouble bridging the eth0 (natsemi 83816) and
wlan0 (Senao 2511MP Plus) ports on a Soekris 4511 running
Pebble Linux (a Debian variant) using hostap_pci and hope that
someone might enlighten me with some step I am missing.

First, I have set up and gotten working the following configuration:


PC1--------------------Soekris1 eth0----------Soekris1 wlan0 .......
192.168.7.251 192.168.7.1 192.168.8.10 .
. (wireless)
.
PC2--------------------Soekris2 eth0----------Soekris2 wlan0 .......
192.168.0.241 192.168.0.231 192.168.8.11

The problem with this solution is that it requires too much subnet/routing
work and makes life more complicated for some other downstream plans.


What I am trying to create looks more like this:

PC1--------------------Soekris1 eth0----------Soekris1 wlan0 .......
192.168.0.251 (bridged) 192.168.0.181 .
. (wireless)
.
PC2--------------------Soekris2 eth0----------Soekris2 wlan0 .......
192.168.0.241 (bridged) 192.168.0.182


Based on the bridging information I have found on various lists and I have
the following /etc/network/interfaces file set up for Soekris1
(and similar for Soekris2):

auto lo
iface lo inet loopback

auto br0
iface br0 inet static
address 192.168.0.182
network 192.168.0.0
netmask 255.255.255.0
broadcast 192.168.0.255
bridge_ports wlan0 eth0
up iwconfig wlan0 essid vomisa channel 1 mode ad-hoc

This results in the following ifconfig

br0 Link encap:Ethernet HWaddr 00:00:24:C4:42:DC
inet addr:192.168.0.182 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:48 errors:0 dropped:0 overruns:0 frame:0
TX packets:19 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3018 (2.9 KiB) TX bytes:1114 (1.0 KiB)

eth0 Link encap:Ethernet HWaddr 00:00:24:C4:42:DC
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:16 errors:0 dropped:0 overruns:0 frame:0
TX packets:48 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1056 (1.0 KiB) TX bytes:3622 (3.5 KiB)
Interrupt:5 Base address:0xa000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:784 (784.0 b) TX bytes:784 (784.0 b)

wlan0 Link encap:Ethernet HWaddr 00:02:6F:38:E7:77
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:32 errors:0 dropped:0 overruns:0 frame:0
TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2634 (2.5 KiB) TX bytes:1260 (1.2 KiB)
Interrupt:11 Memory:c4821000-c4822000



And the following iwconfig:

lo no wireless extensions.

Warning: Driver for device wlan0 has been compiled with version 16
of Wireless Extension, while this program is using version 15.
Some things may be broken...

wlan0 IEEE 802.11b ESSID:"vomisa"
Mode:Ad-Hoc Frequency:2.412GHz Cell: 02:02:CB:FC:E7:77
Bit Rate:2Mb/s Sensitivity=1/0
Retry min limit:8 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
Link Quality:78/0 Signal level:-49 dBm Noise level:-99 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:3 Invalid misc:0 Missed beacon:0

eth0 no wireless extensions.

eth1 no wireless extensions.

br0 no wireless extensions.


The route is simply:

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 * 255.255.255.0 U 0 0 0 br0

With all this setup, I can ping from PC1 to Soekris1 and PC2 to Soekris2
but I can’t get across the wireless, that is pings from PC1 to Soekris2
or PC2 just don’t go through.

So, does anyone have any pearls of wisdom to help me over the last hurdle?

Thanks for wading through everything.

Tom




More information about the HostAP mailing list