Discussion:
[Fwd: station in bridging mode?]
Paul
2004-04-20 10:06:00 UTC
Permalink
Sorry if this is a repeat request, I think I'd gotten unsubscribed
somehow and it didn't make it to the list...

----

I am really really hoping someone can help me here... I've spent hours
on it, gotten SO close, but yet so far :-(
Tue, 14 Jan 2003 10:07:42 -0700
you can do this is with my setup would be with two
bridges
net1 - bridge/ap1 - bridge/sta2 - net2
I don't have a "station" bridge configuration, but it should be simple
enough to construct. Make sure the bridges are in a switch not a hub.
Then use WEP.
I wish to make a network of this type; bridge/sta2 is the infamous
AMD-Elan based eumitcom AP. Bridge/ap1 is an Origo wll3810 over which I
have little control other than to set web keys; i.e it only works in
management mode, no ad-hoc or station, therefore wish to set my linuxap
into station bridge mode.

I am using the famous KSmith linuxap build which announces itself as
"BusyBox v0.60.3-pre (2002.09.13-08:10+0000) Built-in shell (ash)", i.e
not very new. I don't have access to an SRAM card any more so would be
very very nervous about reflashing with anything newer.

Firstly, I set the system into runlevel5, (although I find that there's
a bug and it doesn't run the /etc/rc.d/5/10.myconfig script!). However I
can manually run my startup and I get partial functionality.

I have the following configs:

wlan0
DRIVER=hostap_cs
SSID=EVERYTHING_IS_LOGGED
CHANNEL=11
NWDS=4
wep=**************************

netcfg
# Primary Interface (RL2/wlan0, RL3/br0, RL4/eth0)
# Need first 3 if not dhcp
# p_dhcp should be either enabled or disabled
p_dhcp=disabled
p_address=192.168.29.130
p_netmask=255.255.255.128
p_broadcast=192.168.29.255

# Secondary Interface (RL2/eth0, RL4/wlan0)
# Ignored at RL3
s_dhcp=disabled
s_address=10.20.30.44
s_netmask=255.255.255.0
s_broadcast=10.20.30.255

# These should pull from dhcp ...
router=
tftphost=
logaddr=

# Network Swapping
swaphost=
swapport=

# Masqerading support ... Masquerade this network
# ex: 10.1.0.0/27
# Will Masquerade 10.1.0.0-10.1.0.31
# This assumes you've set up eth0 appropriately
# elsewhere
masq_net=


My single custom init scripts looks like this:

# set up wlan as station as if we're in RL2
echo "Setting up wlan0 for station mode"
/etc/rc.d/init.d/wlan0 2

# set up bridging as if we're in RL3
echo "Setting up br0 bridging interface"
/etc/rc.d/init.d/br0 3

# Set up primary as if we're in RL3, i.e. br0
/etc/rc.d/init.d/primary 3

# default router
echo "Setting up defaultrouter"
[ -f /etc/rw/netcfg ] && . /etc/rw/netcfg
route add default gw $router

# no need for serial console, but only iptables protects us
echo "Starting telnetd"
telnetd

# tweak stuff
if [ -x /etc/rw/rc.tweak ]
then
echo "Running the tweak script"
exec /etc/rw/rc.tweak
fi

My problem is this, that bridging isn't propagating properly:
pc1 - cable1 - bridge/ap1 ~wireless~ bridge/sta2 - cable - net2 - pc2

sta2 can ping pc2 and ap1 but not pc1.

pc1 can ping ap1 and sta2, pc2 can ONLY ping sta2. I have tried manually
adding arp table to pc2 so that it thinks ap1 is on the mac of sta2, but
no joy.

I *could*, I suppose, run in routed mode, but that means messing around
with static IPs and routes on the PCs, ideally I want to use dhcp and
"forget" the IP addresses of the wireless devices if at all possible.

thanks for any help
Paul
p.s other info (I tried adding the IP address to eth0 in vague hope):

# cat /proc/modules
hostap_cs 81460 2
ds 6412 0 [hostap_cs]
i82365 10884 1
pcmcia_core 33856 0 [hostap_cs ds i82365]

# cat /proc/meminfo
total: used: free: shared: buffers: cached:
Mem: 3002368 2777088 225280 0 253952 1019904
Swap: 0 0 0
MemTotal: 2932 kB
MemFree: 220 kB
MemShared: 0 kB
Buffers: 248 kB
Cached: 996 kB
SwapCached: 0 kB
Active: 936 kB
Inactive: 812 kB
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 2932 kB
LowFree: 220 kB
SwapTotal: 0 kB
SwapFree: 0 kB

# ifconfig
br0 Link encap:Ethernet HWaddr 00:90:D1:01:07:F1
inet addr:192.168.29.130 Bcast:192.168.29.255
Mask:255.255.255.128
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1853 errors:0 dropped:0 overruns:0 frame:0
TX packets:1450 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:130050 (127.0 kb) TX bytes:137325 (134.1 kb)

eth0 Link encap:Ethernet HWaddr 00:90:D1:01:07:F1
inet addr:192.168.29.130 Bcast:192.168.29.255
Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1853 errors:0 dropped:0 overruns:0 frame:0
TX packets:6931 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:155916 (152.2 kb) TX bytes:467019 (456.0 kb)
Interrupt:14 Base address:0x200

wlan0 Link encap:Ethernet HWaddr 00:90:D1:01:07:F1
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:184 errors:0 dropped:0 overruns:0 frame:0
TX packets:5526 errors:5332 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:9212 (8.9 kb) TX bytes:455476 (444.8 kb)
Interrupt:3 Base address:0x100

wlan0wds0 Link encap:Ethernet HWaddr 00:90:D1:01:07:F1
inet addr:192.168.29.130 Bcast:192.168.29.255
Mask:255.255.255.0
UP BROADCAST RUNNING 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:100
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:3 Base address:0x100

# iwconfig
lo no wireless extensions.

eth0 no wireless extensions.

wlan0 IEEE 802.11-DS ESSID:"EVERYTHING_IS_LOGGED"
Mode:Managed Frequency:2.462GHz Access Point:
00:03:2F:1D:48:E3
Bit Rate=11Mb/s Tx-Power=20 dBm Sensitivity=1/3
Retry min limit:8 RTS thr:off Fragment thr:off
Encryption key:****-****-****-****-****-****-** Encryption
mode:restricted
Power Management:off
Link Quality:0/92 Signal level:-82 dBm Noise level:-100 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:88 Invalid misc:861 Missed beacon:0

br0 no wireless extensions.

wlan0wds no wireless extensions.

Loading...