I have a server with two network adapters. I configured bonding and it works. Here's the working configuration:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet manual
bond-master bond0
bond-primary eth0
auto eth1
iface eth1 inet manual
bond-master bond0
auto bond0
iface bond0 inet static
bond-mode balance-rr
bond-miimon 100
bond-slaves none
address 192.168.1.2
gateway 192.168.1.1
netmask 255.255.255.0
dns-nameservers 192.168.1.13
I try to add a bridge, but then, the machine loses connectivity.
I tried:
To specify the same IP address, gateway, netmask and nameserver for both
bond0
andbr0
, or to specify ones forbr0
only,To add
post-up
/pre-down
tobond0
,To add
pre-up
/post-down
tobr0
,Clone the solution by Benjamin Franz (adjusting the IP addresses accordingly),
Clone the solution by Kendall Gifford (adjusting the IP addresses accordingly).
For example, the following configuration doesn't work:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet manual
bond-master bond0
auto eth1
iface eth1 inet manual
bond-master bond0
auto bond0
iface bond0 inet static
bond-mode balance-rr
bond-miimon 100
bond-slaves none
auto br0
iface br0 inet static
bridge_ports bond0
bridge_maxwait 0
bridge_fd 0
post-up ifup bond0
post-down ifdown bond0
address 192.168.1.2
gateway 192.168.1.1
netmask 255.255.255.0
dns-nameservers 192.168.1.13
What else can I try to make it work?