I have two physical NICs (eth2 & eth3) with eth2 connecting to the home router/dhcp server and eth3 connecting to another machine which needs access to the internet.
I'm trying to create a bridge so that the second machine on eth3 can be connected on the lan. I've tried the following, however it hangs when attempting to get an IP address from the router. Likewise, attempting to give it a static route doesn't seem to work either.
$ sudo aptitude install bridge-utils $ sudo ifconfig eth2 down $ sudo ifconfig eth3 down $ sudo brctl addbr br0 $ sudo brctl addif br0 eth2 eth3 $ sudo dhclient br0 # this hangs and fails to get a dhcp address
I've tried to ensure my routing table mimics what it looks like when using eth2 normally, I cannot hit the gateway at all.
$ route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.0.0 0.0.0.0 255.255.255.0 U 2 0 0 br0 0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 br0
I attempted an 'arping' to the MAC address of the router while I had eth2/3 bridged, but it failed to obtain it's IP address as well.
One interesting thing I noticed was that attempting to bring down the bridge & reactivate my internet on eth2, I was having trouble pinging the gateway. It turned out 'ipmasq' had been installed and was running causing odd problems. When I stopped the ipmasq service, my internet started working properly again. I removed the 'ipmasq' package entirely and tried bridging the NICs again thinking it may have been causing problems, but it still failed.
Any suggestions as to how to resolve this?? Any fool-proof method to get this to work??