multi-nic VMs come up with one interface

Asked by Mohammad Banikazemi

When I create a second network for my project and then create a VM, on the dashboard screen I see two IP addresses have been assigned to the VM one from each network that the project can see. I can also see that two tap devices are created.

However, when I log into the VM I see only one interface (rather than two) is created as shown by ifconfig.
Has there been a change or again I am missing something? Thanks.

Question information

Language:
English Edit question
Status:
Solved
For:
neutron Edit question
Assignee:
No assignee Edit question
Solved by:
Darragh O'Reilly
Solved:
Last query:
Last reply:
Revision history for this message
Best Darragh O'Reilly (darragh-oreilly) said :
#1

with this cirros image you need to pass -a to see all interfaces. Also its dhcp client is setup only for eth0

$ ifconfig -a
eth0 Link encap:Ethernet HWaddr 02:16:3E:09:60:DC
          inet addr:10.0.1.3 Bcast:10.0.1.255 Mask:255.255.255.0
          inet6 addr: fe80::16:3eff:fe09:60dc/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
          RX packets:101 errors:0 dropped:0 overruns:0 frame:0
          TX packets:93 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:11492 (11.2 KiB) TX bytes:10865 (10.6 KiB)
          Interrupt:10 Base address:0x8000

eth1 Link encap:Ethernet HWaddr 02:16:3E:40:62:DE
          BROADCAST MULTICAST MTU:1500 Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
          Interrupt:11 Base address:0xc100

$ ps -ef | grep dhcp
  142 root udhcpc -R -n -p /var/run/udhcpc.eth0.pid -i eth0

$ sudo udhcpc -R -n -p /var/run/udhcpc.eth1.pid -i eth1
udhcpc (v1.18.5) started
Sending discover...
Sending select for 10.0.2.3...
Lease of 10.0.2.3 obtained, lease time 120
deleting routers
route: SIOCDELRT: No such process
adding dns 10.0.2.1

$ ps -ef | grep dhcp
  142 root udhcpc -R -n -p /var/run/udhcpc.eth0.pid -i eth0
  206 root udhcpc -R -n -p /var/run/udhcpc.eth1.pid -i eth1

$ ifconfig -a
eth0 Link encap:Ethernet HWaddr 02:16:3E:09:60:DC
          inet addr:10.0.1.3 Bcast:10.0.1.255 Mask:255.255.255.0
          inet6 addr: fe80::16:3eff:fe09:60dc/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
          RX packets:230 errors:0 dropped:0 overruns:0 frame:0
          TX packets:177 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:21064 (20.5 KiB) TX bytes:22629 (22.0 KiB)
          Interrupt:10 Base address:0x8000

eth1 Link encap:Ethernet HWaddr 02:16:3E:40:62:DE
          inet addr:10.0.2.3 Bcast:10.0.2.255 Mask:255.255.255.0
          inet6 addr: fe80::16:3eff:fe40:62de/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
          RX packets:3 errors:0 dropped:0 overruns:0 frame:0
          TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:726 (726.0 B) TX bytes:1166 (1.1 KiB)
          Interrupt:11 Base address:0xc100

Revision history for this message
Mohammad Banikazemi (mb-s) said :
#2

Thank you very much.