OpenWrt Forum Archive

Topic: WRT54G: Switch working as Repeater Hub?

The content of this topic has been archived on 1 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I have 2 machines 192.168.1.100 and 192.168.1.200 wired to wrt54g. When I capture the traffic in promiscuous mode at 192.168.1.100 by running ethereal, I see all the traffic between 192.168.1.200 and internet. That is to say that I observe packets of the following kind at 192.168.1.100:

192.168.1.200 -> www.google.com

I am not able to understand this behavior. IIRC, in a switched network packet should go to intended recepient only. So if 192.168.1.200 is sending a packet to www.google.com i.e. to 192.168.1.1, I shouldn't get that packet at 192.168.1.100.

Am I missing something?

Thanks,
Manu
----------
Manu Garg
http://manugarg.freezope.org
"Wake Up! Free yourself."

Hmmm... That's odd, it shouldn't happen indeed. Is there LED activity at the .100 port as you sniff?

I will try it myself later...

I checked it once again. Same results. And yes there is LED activity at .100 port. Did you find anything?

You might disable STP. Maybe the bridge ports are stuck in 'learning' mode instead of switching to 'forwarding' as they should after several seconds.

Assuming you have 255.255.255.0 as netmask, these computers are bound to see one another as they are on one and the same subnet. You'll even see all this traffic on the wireless link in the standard bridged lan/wireless configuration and therefor it is advisable not to use bridging but to have routing between lan, wan, and wifi. Moreover I have observed packet loss due to bridging and synchronisation issues which does not occur in routing mode.

Same subnet or not, in a switched environment, packets should only be sent out the port to which the destination computer exists unless the switch has yet to see any traffic to/from that host.

same problem here. openwrt does not work as a swicht environment. If I start an sniffing session with ethereal I can see all packets. And this is hub behavior.

kiki

Which model/version is your WRT and which version of OpenWrt? There are several people here that are trying to get that behavior and can't. Maybe this means there is a possibility of controlling it, unless it's a specific switch model that it happens on.

hi,

I'm using openwrt rc2 on a wrt54gs v1.1. If further Information is needed tell me and I will post it here.

thanks,
kiki

I am getting the same issue here with white russian RC5 on a WRT54GS v1.0 (uses adm6996 switch). All local machines on wired lan are seeing each others internet traffic as well as any traffic from other lan clients to the wrt itself. the traffic between hosts on the lan _is_ being switched correctly however, and is not seen by other hosts. seems the switching works when traffic is fully within the lan vlan (vlan0).

some of my nvram vlan settings:

lan_ifnames=eth2 eth3 vlan0 eth1
port0vlans=0 18 19
port1vlans=0
port2vlans=0
port3vlans=0
port4vlans=0
port5vlans=0 16
ppp_ifname=vlan1
vlan0hwname=et0
vlan0ports=1 2 3 4 5*
vlan1hwname=et0
vlan1ports=0 5
vlans=1
wan_device=vlan1
wan_iface=vlan1
wan_ifnames=vlan1

Maybe i have badly set nvram vars - im not sure what they all do hmm
don't know if this happened with original linksys fw as i didn't sniff it before openwrt got flashed.

Maybe this is a bug with the switch itself? Anyone have a working admcfg ipkg available? - cant find it anywhere sad

(Last edited by bobski on 9 Sep 2006, 01:02)

Nothing like bring back old threads.  Would it be possible to break up all the ports into vlans as well as destroying the bridge and use iptables to rectify the behavior?

Thanks for your time.

The discussion might have continued from here.