Verify the vhost0 interface on a compute node

Verify the vhost0 interface on a compute nodeΒΆ

If you have connectivity failures from a VM to the Internet, it may be caused by issues with the vhost0 interface on a compute node.

To verify the vhost0 interface on a compute node:

  1. Log in to the OpenStack compute node with a failed VM.

  2. Verify the status of the vhost0 interface:

    ifconfig vhost0
    

    Example of system response:

    vhost0    Link encap:Ethernet  HWaddr 0c:c4:7a:15:f8:f9
              inet addr:10.167.4.101  Bcast:10.167.4.255  Mask:255.255.255.0
              inet6 addr: fe80::ec4:7aff:fe15:f8f9/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:9000  Metric:1
              RX packets:45371419 errors:0 dropped:0 overruns:0 frame:0
              TX packets:11440313 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:4598915477 (4.5 GB)  TX bytes:13876287735 (13.8 GB)
    
  3. If the interface does not exist:

    1. Verify the settings of the vhost0 interface in /etc/network/interfaces.

    2. Verify the vRouter kernel modules that are currently being used:

      lsmod | grep -i -e contrail -e router
      
  4. If the interface does not have an IP address:

    1. Verify the settings of the vhost0 interface in /etc/network/interfaces.

    2. Run the following command:

      ifconfig vhost0 down && ifconfig vhost0 up