On Fri, Dec 05, 2008 at 05:39:16PM +0100, stef wrote: > ------------------------------------------------------------------- > >> first test : work well > [ home PC] ---- eth0 [ net5501] > 192.168.10.1 192.168.10.50 > > soekris:/etc# ping -I eth0 192.168.10.1 > > soekris:/etc# route -n > Kernel IP routing table > Destination Gateway Genmask Flags Metric Ref Use > Iface > 192.168.10.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 > 192.168.10.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1 > 192.168.10.0 0.0.0.0 255.255.255.0 U 0 0 0 eth2 > 192.168.10.0 0.0.0.0 255.255.255.0 U 0 0 0 eth3 > 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo > 0.0.0.0 192.168.10.9 0.0.0.0 UG 0 0 0 eth0 > >
Yeah, I think you want bridge-utils. Here's one way to set this up, but you'll probably have to do this from the serial console. brctl addbr br0 ifconfig eth0 down ifconfig eth1 down ifconfig eth2 down ifconfig eth3 down brctl addif br0 eth0 brctl addif br0 eth1 brctl addif br0 eth2 brctl addif br0 eth3 ifconfig br0 192.168.10.50 ifconfig eth0 0.0.0.0 up ifconfig eth1 0.0.0.0 up ifconfig eth2 0.0.0.0 up ifconfig eth3 0.0.0.0 up # you'll need to assign your gateway here # I'm just guessing it's 192.168.10.1 GATEWAY=192.168.10.1 route add default gw $GATEWAY br0 # For testing, take down the firewall iptables -F # If you need firewall on bridge here is an example. # You'll need to check that bridge module for iptables is loaded #iptables -A INPUT -i br0 -p tcp --dport 111 -d 192.168.1.120 -m physdev --physdev-is-in -j DROP I think there are also some notes on (TIP 263) in the following link. Plus there may be some notes simple traffic shaping. http://souptonuts.sourceforge.net/how_to_linux_and_open_source.htm Hope this helps. Regards, Mike Chirico _______________________________________________ Soekris-tech mailing list [email protected] http://lists.soekris.com/mailman/listinfo/soekris-tech
