SUSE Support

Here When You Need Us

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
SUSE Linux Enterprise Server 11 Service Pack 1

Situation

Automatic creation of network bond devices when AutoYaST is used for installation.

Bond devices are used for network link aggregation and fail-over.

Resolution

Configuring The Component Devices

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

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com

tick icon

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

tick icon

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.

tick icon

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.