On 5/24/11 3:06 PM, Matt Ryanczak wrote: > On 05/24/2011 05:15 AM, Lars Noodén wrote: >> On 5/24/11 11:29 AM, Luc Michel wrote: >>> If you only want the internal interfaces acting like a switch, you can >>> bridge them together: >>> $ brctl addbr br0 >>> $ brctl addif br0 eth0 >>> $ brctl addif br0 eth1 >>> ... >>> Then use the br0 interface instead of the ethx ones, put an IP address on it >>> and modify your iptables rules to refer to br0... >> >> That sounds like what I want. What I've tried so far does not work. >> >> I'd like the soekris box to allow four other computers to connect to the >> built-in ethernet ports and be able to connect to each other as well as >> the outside world via the ADSL modem. To the attached computers, the >> soekris box should appear under one single IP address. > > > Assuming you have eth0,1,2,3,4,5 and eth0 is the external interface you > would something like this: > > brctl addbr br0 > brctl addif br0 eth1 > brctl addif br0 eth2 > brctl addif br0 eth3 > brctl addif br0 eth4 > > ifconfig br0 192.168.1.1 netmask 255.255.255.0 > ifconfig br0 up > > enabling forwarding: > > echo 1 > /proc/sys/net/ipv4/ip_forward > or > sysctl -w net.ipv4.conf.all.forwarding="1"
Thanks. > I'll assume you have NAT or direct routing in mind > Yes. > and know how to do that... No. Not yet. /Lars _______________________________________________ Soekris-tech mailing list [email protected] http://lists.soekris.com/mailman/listinfo/soekris-tech
