Configure multi-vNICs for CentOS instances

For CentOS instances to use multiple vNICs, the network interfaces must be configured within the operating system.

Complete the following steps to configure the network interfaces:

  1. In the ThinkAgile CP Cloud Controller management console, go to the Profile tab of the instance. Make note of the MAC Addresses for each vNIC (in this example, B4:D1:35:00:03:6A for vNIC 0 and B4:D1:35:00:03:6B for vNIC 1).
  2. Log in to the CentOS instance.
  3. Run the following command:

    cd /etc/sysconfig/network-scripts

    and then:

    ls

    If there are no ifcfg-eth# files for all of the vNICs, those files will need to be created. For example, if two vNICs are attached, there should be ifcfg-eth0 and ifcfg-eth1.

  4. To create a copy of the ifcfg-eth0 file, run the following command:

    cp ifcfg-eth0 ifcfg-eth1

  5. Edit the ifcfg-eth0 files
    1. Run the following command:

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

    2. Type i to input data.
    3. Add the HWADDR={MAC Address} entry noted in the first step.
    4. Set ONBOOT=yes if it is not set already.
    5. Press ESC and type :wq to write the changes and exit.
    Figure 1. Updated ifcfg-eth0 file
    Updated ifcfg-eth0 file
  6. Edit the ifcfg-eth0 files
    1. Run the following command:

      vi /etc/sysconfig/network-scripts/ifcfg-eth1

    2. Type i to input data.
    3. Add the HWADDR={MAC Address} entry noted in the first step.
    4. Set ONBOOT=yes if it is not set already.
    5. Change DEVICE=eth0 to DEVICE=eth1
    6. Remove the UUID line so that it does not conflict with ETH0
    7. Press ESC and type :wq to write the changes and exit.
    Figure 2. Updated ifcfg-eth1 file
    Updated ifcfg-eth1 file
  7. Run the following commands to start the network interfaces:

    ifup eth0

    ifup eth1

Note:

These instructions will bring up the network interfaces and allow them to receive IPs. If additional networking configuration is required, refer to CentOS documentation.