Skip to main content
  • Place orders quickly and easily
  • View orders and track your shipping status
  • Create and access a list of your products
  • Manage your Dell EMC sites, products, and product-level contacts using Company Administration.

How to create a NIC Channel Bonding in Linux (in het Engels)

Summary: Dit artikel bevat informatie over het maken van een NIC Channel Bonding in RHEL 5.x\6.x.

This article applies to   This article does not apply to 

Symptoms

 

Cause

 

Resolution

Omgeving: RHEL 5.x/6.x

Door het onderstaande voorbeeld te volgen, wordt een NIC Channel Bonding gemaakt met behulp van eth0-, eth1- en round-robin-beleid voor fouttolerantie en werklastverdeling:

  1. Maak als root een Bond0-configuratiebestand: # vi /etc/sysconfig/network-scripts/ifcfg-bond0
     
  2. Voeg de volgende regels toe aan het Bond0-configuratiebestand:

    DEVICE=bond0
    , IPADDR=192.168.1.10
    , NETWORK=192.168.1.0
    , NETMASK=255.255.255.0
    , USERCTL=no
    BOOTPROTO=none
    ONBOOT=yes
    BONDING_OPTS="mode=0, miimon=100"
Opmerking: Vervang de IP-adres-, netwerk- en netwerkmaskerinstellingen dienovereenkomstig.
Opmerking: Een gedetailleerde beschrijving van de bonding-opties vindt u in de implementatiehandleiding van Red Hat.
  1. Open het configuratiebestand voor eth0:

    # vi /etc/sysconfig/network-scripts/ifcfg-eth0

     
  2. Bewerk het eth0-configuratiebestand door de parameters "MASTER" en "SLAVE" toe te voegen:

    DEVICE=eth0
    , USERCTL=no
    ONBOOT=yes
    , MASTER=bond0
    , SLAVE=yes
    , BOOTPROTO=none

     
  3. Herhaal stap #3 en #4 voor eth1.
     
  4. Open het configuratiebestand van de kernelmodules:

    RHEL5 # vi /etc/modprobe.conf

    RHEL6 # vi /etc/modprobe.d/modprobe.conf
     
Opmerking: het bestand modprobe.conf bestaat niet op RHEL6. Door de bovenstaande stap te volgen, wordt het bestand gemaakt.
  1. Voeg de volgende regel toe aan het modprobe.conf bestand:

    alias bond0 bonding
    opties bond0 mode=balance-rr miimon=100

     
  2. Laad de bondingmodule:

    # modprobe bonding

     
  3.  Start de netwerkservice opnieuw:

    # Service Network restart

     
  4. Controleer of de bonding-interface is gemaakt door te kijken naar de uitvoer van de opdracht ifconfig:

    # ifconfig

     
De output moet bond0 vermelden als master en eth0\eth1 up and running als slaves.

  

Affected Products

Servers, PowerEdge, Red Hat Enterprise Linux Version 5, Red Hat Enterprise Linux Version 6
Article Properties
Article Number: 000177048
Article Type: Solution
Last Modified: 08 Oct 2021
Version:  5
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.
Article Properties
Article Number: 000177048
Article Type: Solution
Last Modified: 08 Oct 2021
Version:  5
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.