Ask Your Question

Revision history [back]

I tried this with a Juno devstack and a cirros instance.

Unlike your case, my instance has eth1 as expected, though it has no IP address. The latter is not surprising when you think where the IP address comes from: The instance must set it, OpenStack can't. OpenStack only makes a DHCP server available (at least, by default), but the instance must be configured to obtain the address. In my case, /etc/network/interfaces contains:

# Configure Loopback
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp

I need to add a paragraph for eth1 to get my IP address.

Now I don't have an explanation why you don't even see eth1. If you use KVM or another libvirt-based hypervisor, check whether the interface appears in the XML file for the instance. You can run virsh list to find the libvirt name for the instance, then virsh edit <instance name="">. Here is what it looks like on my system :

<interface type='bridge'>
  <mac address='fa:16:3e:0c:9d:61'/>
  <source bridge='qbr9d6fe0d3-ff'/>
  <target dev='tap9d6fe0d3-ff'/>
  <model type='virtio'/>
  <driver name='qemu'/>
  <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
<interface type='bridge'>
  <mac address='fa:16:3e:5d:f1:80'/>
  <source bridge='qbr69414b42-08'/>
  <target dev='tap69414b42-08'/>
  <model type='virtio'/>
  <driver name='qemu'/>
  <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>