I have two network cards in my pc, eth0 and eth1, both connected to a router/DHCP server. I'm using the following commands to set up a network bridge between eth1 and tap0 (openvpn device).
Starting with all interfaces down:
I run the following commands
Code:
openvpn --mktun --dev tap0
brctl addbr br0
brctl addif br0 eth1
brctl addif br0 tap0
ifconfig tap0 0.0.0.0 promisc up
ifconfig eth1 0.0.0.0 promisc up
ifconfig br0 192.168.17.146 netmask 255.255.255.0 broadcast 192.168.17.155
This bit works fine but it seems like the bridge isn't working, basically I can't ping anything.
Now for the strange bit

If I bring up eth0 with ifup eth0 everything starts working fine, even if I bring eth0 back down and pull the cable out of the network card everything continues to work!
My theory is that when I bring up eth0 using the DHCP server in the router it gets extra information gateway etc.. that isn't present when I just bring the bridge up with
Code:
ifconfig br0 192.168.17.146 netmask 255.255.255.0 broadcast 192.168.17.155
Does this make sense? Does anyone have any ideas how I can get around this problem?
Paddy