Designating a primary NIC when creating a network bond
This document (7010254) is provided subject to the disclaimer at the end of this document.
Environment
Situation
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
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
Additional Information
Disclaimer
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:7010254
- Creation Date: 05-Mar-2012
- Modified Date:12-Mar-2021
-
- SUSE Linux Enterprise Server
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com