You must create two interface
configuration bridge files, one for the front end and one for the back end, to connect
the virtual HCP VM network
to the KVM host network. In this example, the front-end bridge network file is named
ifcfg-front-end, and the back-end bridge network file is named
ifcfg-back-end.
- 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-front-end
-
Press I to edit the file.
- Enter the following text:
DEVICE="Device-Name"
ONBOOT="yes"
TYPE="Bridge"
BOOTPROTO="none"
IPADDR="Node-IP-Address"
NETMASK="Netmask-IP-Address"
GATEWAY="Gateway-IP-Address"
IPV6INIT="yes"
IPV6_AUTOCONF="no"
DHCPV6C="no"
STP="on"
DELAY="0.0"
Here is an example of the completed file:
DEVICE="front-end"
ONBOOT="yes"
TYPE="Bridge"
BOOTPROTO="none"
IPADDR="192.168.210.16"
NETMASK="255.255.254.0"
GATEWAY="192.168.210.254"
IPV6INIT="yes"
IPV6_AUTOCONF="no"
DHCPV6C="no"
STP="on"
DELAY="0.0"
-
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"
STP="on"
TYPE="Bridge"
BOOTPROTO="none"
IPV4_FAILURE_FATAL="no"
NAME="Bridge-Name"
ONBOOT="yes"
DELAY="0.0"
Here is an example of the completed file:
DEVICE="Back-End"
STP="on"
TYPE="Bridge"
BOOTPROTO="none"
IPV4_FAILURE_FATAL="no"
NAME="back-end"
ONBOOT="yes"
DELAY="0.0"
-
Press Esc.
- Enter the following command to save and exit the file:
:wq