Creating the bond network files

Deploying an HCP VM System on KVM

Version
9.6.x
Audience
anonymous
Part Number
MK-94HCP009-07
You must create two interface configuration bond files to bond the two KVM host front-end physical NIC ports together and bond the two KVM host back-end physical NIC ports together. In this example, the front-end bond network file is named ifcfg-bond0, and the back-end bond network file is named ifcfg-bond1.
  1. Enter the following command to open the network-scripts folder:
    cd /etc/sysconfig/network-scripts/
  2. Enter the following command to create the front-end bond network file:
    vi ifcfg-bond0
  3. Press I to edit the file.
  4. Enter the following text:
    DEVICE=Device-Name
    NAME=Front-End-Bond-File-Name
    TYPE=Bond
    BONDING_MASTER=yes
    BOOTPROTO=none
    ONBOOT=yes
    BONDING_OPTS="primary=Interface-Configuration-File1 \
      mode=active-backup miimon=100 updelay=3000 downdelay=500"
    BRIDGE="Front-End-Bridge-Device"
    
    Here is an example of the completed file:
    DEVICE=bond0
    NAME=bond0
    TYPE=Bond
    BONDING_MASTER=yes
    BOOTPROTO=none
    ONBOOT=yes
    BONDING_OPTS="primary=eno1 mode=active-backup miimon=100
    updelay=3000 downdelay=500"
    BRIDGE="front-end"
    
  5. Press Esc.
  6. Enter the following command to save and exit the file:
    :wq
  7. Enter the following command to create the back-end bond network file:
    vi ifcfg-bond1
  8. Press I to edit the file.
  9. Enter the following text:
    DEVICE=Device-Name
    NAME=Back-End-Bond-File-Name
    TYPE=Bond
    BONDING_MASTER=yes
    BOOTPROTO=none
    ONBOOT=yes
    BONDING_OPTS="primary=Interface-Configuration-File1 \
      mode=active-backup miimon=100 updelay=3000 downdelay=500"
    BRIDGE="Back-End-Bridge-Device"
    
    Here is an example of the completed file:
    DEVICE=bond1
    NAME=bond1
    TYPE=Bond
    BONDING_MASTER=yes
    BOOTPROTO=none
    ONBOOT=yes
    BONDING_OPTS="primary=eno2 mode=active-backup miimon=100
    updelay=3000 downdelay=500"
    BRIDGE="back-end"
    
  10. Press Esc.
  11. Enter the following command to save and exit the file:
    :wq