Ask Your Question
0

multi-nic VMs come up with one interface

asked 2012-03-16 15:55:10 -0500

mb-s gravatar image

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.

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2012-03-16 21:30:03 -0500

mb-s gravatar image

Thank you very much.

edit flag offensive delete link more
0

answered 2012-03-16 20:59:01 -0500

darragh-oreilly gravatar image

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

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2012-03-16 15:55:10 -0500

Seen: 49 times

Last updated: Mar 16 '12