Environment
Novell openSUSE
Novell Open Enterprise Server 11 (OES 11) Linux
Novell Open Enterprise Server 2 (OES 2) Linux
Novell Open Enterprise Server 1 (OES 1) Linux
SUSE Linux
Novell Open Enterprise Server 11 (OES 11) Linux
Novell Open Enterprise Server 2 (OES 2) Linux
Novell Open Enterprise Server 1 (OES 1) Linux
SUSE Linux
Situation
How to designate a NIC to be primary when creating a bonded network
Primary NIC in bonded environment
Linux bond
Bonded network interface cards
When creating an active-failover bond, it is sometimes desired that one particular interface be designated as primary.
Primary NIC in bonded environment
Linux bond
Bonded network interface cards
When creating an active-failover bond, it is sometimes desired that one particular interface be designated as primary.
Resolution
To accomplish this, complete the following steps:
1. From a terminal, execute the following command:
vi /etc/sysconfig/network/ifcfg-bondX
2. Modify the line that says:
BONDING_MODULE_OPS='mode=active-backup miimon=100'
to
BONDING_MODULE_OPS='mode=active-backup miimon=100 primary=ethX'
<where ethX is the interface you'd like to make primary>
3. Restart the network
rcnetwork restart
4. Verify the change took:
cat /proc/net/bonding/bondX
1. From a terminal, execute the following command:
vi /etc/sysconfig/network/ifcfg-bondX
2. Modify the line that says:
BONDING_MODULE_OPS='mode=active-backup miimon=100'
to
BONDING_MODULE_OPS='mode=active-backup miimon=100 primary=ethX'
<where ethX is the interface you'd like to make primary>
3. Restart the network
rcnetwork restart
4. Verify the change took:
cat /proc/net/bonding/bondX