How to set up bonding with YaST2

  • 3815448
  • 11-Jan-2008
  • 10-Oct-2014

Environment

SUSE Linux Enterprise Server 10
SUSE Linux Enterprise Server 11

Situation

Network bonding needs to be configured with YaST2.

Resolution

  1. Start YaST2:
    yast2 lan
  2. For the network interfaces intended to be used as bond slaves, ensure they are configured with the following parameters:
    • Traditional method with ifup
    • Click "Edit" to get to the "Addresses" section and chose: "No IP address (for bonding devices)" or "No Link and IP Setup (Bonding Slaves)".
    • For SLES 11 SP1 and prior, under the "General" section choose Device activation "Never".  SLES11 SP1 can also be set to "On Hotplug".  With SLES 11 SP2 and later, Device activation should be set to "On Hotplug"
    • Click "Next" to exit the interface configuration screen
  3. Click "Add" => Device type "Bond network" => "Next".
  4. Under "Address" choose "Automatic Address Setup" for DHCP or "Static Address Setup" for static IP address configuration
  5. Now the previously configured network will be marked as ready for "Bond Slaves". Mark here all the network cards which should be bonded.
  6. Choose "Bond Driver Options" and configure the preferred bonding method
  7. Finish the setup by clicking "Next"

Additional Information

If the bonding configuration is correct, the command /sbin/ifconfig should look similar to this:


bond0 Link encap:Ethernet HWaddr 00:0C:F6:0B:65:5B
inet addr:192.168.1.100 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::20c:f6ff:fe0b:655b/64 Scope:Link
UP BROADCAST NOTRAILERS RUNNING MASTER MULTICAST MTU:1500 Metric:1
RX packets:195481 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:70 dropped:0 overruns:0 carrier:135
collisions:0 txqueuelen:0
RX bytes:20100809 (19.1 Mb) TX bytes:0 (0.0 b)

eth0 Link encap:Ethernet HWaddr 00:0C:F6:0B:65:5B
UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1
RX packets:146 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:17363 (16.9 Kb) TX bytes:0 (0.0 b)
Interrupt:169

eth1 Link encap:Ethernet HWaddr 00:0C:F6:0B:65:5B
UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1
RX packets:195335 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:70 dropped:0 overruns:0 carrier:135
collisions:0 txqueuelen:1000
RX bytes:20083446 (19.1 Mb) TX bytes:0 (0.0 b)
Interrupt:225 Base address:0xdc00

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:227 errors:0 dropped:0 overruns:0 frame:0
TX packets:227 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:19314 (18.8 Kb) TX bytes:19314 (18.8 Kb)

If you want to set up bonding on Novell Linux products without using YaST or if you need additional information about bonding, please read TID 3929220 - How To Configure Bonding on Novell Linux products.

Change Log

Added to the section about Device Activation: Never Vs. Hot Plug on SLES 1 or 2 for SR#10902897331.