A.3.4 Configure Networking for OpenStack Instance

To verify or configure the network interface, perform the following steps:
  1. Verify if the interface is configured automatically.
    If DHCP is enabled on Neutron subnet, VM configures the VNIC with the IP address. To verify, ping the XMI IP address provided with the nova boot command:
    $ ping <XMI-IP-Provided-During-Nova-Boot>
    If the ping is successful, ignore the next part to configure the interface manually.
  2. Manually configure the interface, if not already done.
    1. Log into the Horizon GUI as the DSR tenant user.
    2. Navigate to the Compute/Instances section.
    3. Click Name field of the newly created instance.
    4. Select Console tab.
    5. Login as the admusr user.
    6. Configure the network interfaces, conforming with the OCDSR Network to Device Assignments as defined in Appendix A Creating an XML file for Installing SDS Network Elements.
      $ sudo netAdm add --onboot=yes --device=eth0 --address=<xmi ip> --netmask=<xmi net mask>
      $ sudo netAdm add --route=default --device=eth0 --gateway=<xmi gateway ip>
    Under some circumstances, it may be necessary to configure as many as 6 or more interfaces.
    If netAdm fails to create the new interface (ethX) because it already exists in a partially configured state, perform the following actions:
    $ cd /etc/sysconfig/network-scripts
    $ sudo mv ifcfg-ethX /tmp
  3. To create and configure the interface in one action, re-run the netAdm command.
  4. Reboot the VM. It takes approximately 5 minutes for the VM to complete rebooting.
    $ sudo init 6
    The new VM should now be accessible using both network and Horizon console.