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.
- Enter the following command to open the network-scripts folder:
cd /etc/sysconfig/network-scripts/
- Enter the following command to create the front-end bond network file:
vi ifcfg-bond0
-
Press I to edit the file.
- 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"
-
Press Esc.
- Enter the following command to save and exit the file:
:wq
- Enter the following command to create the back-end bond network file:
vi ifcfg-bond1
-
Press I to edit the file.
- 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"
-
Press Esc.
- Enter the following command to save and exit the file:
:wq