Using AutoYaST To Create And Configure Network Bond Devices
This document (7005464) is provided subject to the disclaimer at the end of this document.
Environment
SUSE Linux Enterprise Server 11 Service Pack 1
Situation
Bond devices are used for network link aggregation and fail-over.
Resolution
When creating bond devices, it is important to ensure that the network devices used for the bond device won't be
set to start at boot time and have their boot protocol set to "none". An example of the AutoYaST configuration for
doing so for eth0 is:
<interface>
<bootproto>none</bootproto>
<device>eth0</device>
<name>Virtual Ethernet Card 0</name>
<startmode>off</startmode>
</interface>
This is required for each network device that will be a component of a bond device.
Configuring The Bond Device
In addition to the standard configuration requirements for a network interface, the configuration of
the bond device itself must designate the device as the bonding master, specify the name of the device
(typically bond<x>, where <X> is the number of the bond device), provide the bonding options to be
used, and list the network devices to bond.
An example configuration of a bond device composed of eth0 and eth1 is :
<interface>
<bonding_master>yes</bonding_master>
<bonding_module_opts>mode=balance-rr miimon=100</bonding_module_opts>
<bonding_slave0>eth0</bonding_slave0>
<bonding_slave1>eth1</bonding_slave1>
<device>bond0</device>
<bootproto>dhcp</bootproto>
<startmode>auto</startmode>
<usercontrol>no</usercontrol>
</interface>
A complete example of the network interface section of the AutoYaST configuration for a bond device would look like:
<interfaces config:type="list">
<interface>
<bonding_master>yes</bonding_master>
<bonding_module_opts>mode=balance-rr miimon=100</bonding_module_opts>
<bonding_slave0>eth0</bonding_slave0>
<bonding_slave1>eth1</bonding_slave1>
<device>bond0</device>
<bootproto>dhcp</bootproto>
<startmode>auto</startmode>
<usercontrol>no</usercontrol>
</interface>
<interface>
<bootproto>none</bootproto>
<device>eth0</device>
<name>Virtual Ethernet Card 0</name>
<startmode>off</startmode>
</interface>
<interface>
<bootproto>none</bootproto>
<device>eth1</device>
<name>Virtual Ethernet Card 1</name>
<startmode>off</startmode>
</interface>
</interfaces>
Details of bond options
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:7005464
- Creation Date: 09-Mar-2010
- Modified Date:04-Oct-2022
-
- SUSE Linux Enterprise Server
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com