You may want to read this page:
http://www.linuxfoundation.org/colla...working/bridge
# ifconfig eth0 0.0.0.0
# brctl addbr mybridge
# brctl addif mybridge eth1
# dhclient mybridge
I got the eth1 using static IP while the bridge using dynamic ip.
You should do this at the console or connect via eth0 if you have one.
The only thing is mybridge got the IP but when I tried to ping the router/dhcp server - I get timeout. I've checked the route table and it does have correct default gateway.
any ideas
I'm a super power user
This is my interface file.
I have two bridge interfaces - br0 and br1. I use them for virtualisation not for VPN. However it would be the same. I will run a firewall as a guest inside a ubuntu host. The firewall itself will also have it own bridges.
I still leave the old IP addresses for eth0 and eth1 on there but once the bridges are active, the IP addresses for eth0 and eth1 no longer active/needed.
I will remove the IP addresses later when I have a bit of time.
However, the configuration works.
If you do this, please make sure you are at the console because eth0 and eth1 will go down when you restart the network.
I can connect to the bridges remotely without any issue. If you get disconnected then you may try to connect using the IP addresses of the bridges.
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo eth0 eth1 br0 br1
iface lo inet loopback
# The primary network interface
iface eth0 inet static
address 192.168.0.7
netmask 255.255.255.0
network 192.168.0.0
post-up iptables-restore < /etc/iptables.up.rules
iface eth1 inet static
address 10.1.1.2
netmask 255.255.255.0
network 10.1.1.0
iface br0 inet static
address 192.168.0.10
network 192.168.0.0
netmask 255.255.255.0
broadcast 192.168.0.255
bridge_ports eth0
bridge_fd 9
bridge_hello 2
bridge_maxage 12
bridge_stp off
iface br1 inet static
address 10.1.1.10
network 10.1.1.0
netmask 255.255.255.0
broadcast 10.1.1.255
bridge_ports eth1
bridge_fd 9
bridge_hello 2
bridge_maxage 12
bridge_stp off
gateway 10.1.1.1
Bookmarks