Account Links: Cart | Your Account | Logout

Skip to content

Red Hat Knowledgebase

Red Hat Knowledgebase Search:

Updated Within the Last:

New Solutions within the last day New Solutions within the last week New Solutions within the last month

Browse by topics:


Click to View a Topic
Red Hat Enterprise Linux > Red Hat Enterprise Linux 5 > Issue <<  278 of 364 >>

Solution Tools:


Email a Solution Postcard Printer version Submit a comment on this answer Update notifications Request an answer Back

Article Reference

Article ID: 12707
Last update: 05-13-08
Issue:
How do I configure Multiple Bonds in Red Hat Enterprise Linux 5 with different bonding modes?
Resolution:

The following example illustrates the steps to setup multiple bonds in Red Hat Enterprise Linux 5 with different bonding modes.

  1. Edit /etc/modprobe.conf
    /etc/modprobe.conf

    alias bondX bonding
    options bonding max_bonds=X

  2. Edit/Create the file /etc/sysconfig/network-scripts/ifcfg-bondX and mention the bonding options using the directive

    DEVICE=eth2

    ONBOOT=yes

    MASTER=bond1

    SLAVE=yes



    DEVICE=eth3

    ONBOOT=yes

    MASTER=bond1

    SLAVE=yes BONDING_OPTS=""



  3. If the requirement is to configure 2 bonds; bond0 and bond1 and each with two pairs of Slaves

     

    /etc/modprobe.conf

    alias bond0 bonding
    alias bond1 bonding
    options bonding max_bonds=2


  4. Edit/Create the file /etc/sysconfig/network-scripts/ifcfg-bond0 and mention the bonding options
    DEVICE=bond0
    ONBOOT=yes
    BOOTPROTO=dhcp
    USERCTL=no
    BONDING_OPTS="mode=1 miimon=100 primary=eth0"


  5. Edit/create the file /etc/sysconfig/network-scripts/ifcfg-bond1 and mention the bonding options

    DEVICE=bond1
    ONBOOT=yes
    BOOTPROTO=dhcp
    USERCTL=no
    BONDING_OPTS="mode=0 miimon=100 "


  6. For bond0, slave interfaces /etc/sysconfig/network-scripts/ifcfg-eth[0,1]
    DEVICE=eth0
    MASTER=bond0
    SLAVE=yes
    ONBOOT=yes

    DEVICE=eth1
    ONBOOT=yes
    MASTER=bond0
    SLAVE=yes



  7. For bond1, slave interfaces /etc/sysconfig/network-scripts/ifcfg-eth[2,3]
    DEVICE=eth2
    ONBOOT=yes
    MASTER=bond1
    SLAVE=yes

    DEVICE=eth3
    ONBOOT=yes
    MASTER=bond1
    SLAVE=yes

     

  8. Reboot the system or reload the bonding modules to load the changes.


How well did this entry answer your question?


good wrong incomplete out of date
Red Hat Enterprise Linux > Red Hat Enterprise Linux 5 > Issue <<   278  of  364  >>