[Bug 823366] Re: bond_primary is ignored in /etc/network/interfaces
Steve Langasek
steve.langasek at canonical.com
Sat Nov 5 16:36:35 UTC 2011
I think you are trying to use a deprecated and unsupported means of
bringing up the bonded interface in /etc/network/interfaces. As
explained in /usr/share/doc/ifenslave-2.6/README.Debian.gz, the bonding
interface needs to be brought up via stanzas for each of the physical
interfaces. For example:
iface bond0 inet static
bond_slaves none
bond_primary eth2
bond_mode 1
bond_arp_interval 2000
bond_arp_ip_target 192.168.100.1
address 192.168.100.50
netmask 255.255.255.192
gateway 192.168.100.1
auto eth0
iface eth0 inet manual
bond_primary eth2
bond_master bond0
auto eth2
iface eth2 inet manual
bond_primary eth2
bond_master bond0
If the example you provided was working before as a complete
/etc/network/interfaces, I think it did so by chance alone.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ifenslave-2.6 in Ubuntu.
https://bugs.launchpad.net/bugs/823366
Title:
bond_primary is ignored in /etc/network/interfaces
Status in “ifenslave-2.6” package in Ubuntu:
Incomplete
Bug description:
The bond_primary declaration in /etc/network/interfaces is not working anymore in 10.04.3.
Setting this value has no influence, it's always set to the lower interface number or none
Workaround:
iface bond0 inet static
bond_slaves eth2 eth0
bond_primary eth2
bond_mode 1
bond_arp_interval 2000
bond_arp_ip_target 192.168.100.1
#bond_num_grat_arp 10
up echo eth2 > /sys/class/net/bond0/bonding/primary
up echo 10 > /sys/class/net/bond0/bonding/num_grat_arp
address 192.168.100.50
netmask 255.255.255.192
gateway 192.168.100.1
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ifenslave-2.6/+bug/823366/+subscriptions
More information about the foundations-bugs
mailing list