Ask Your Question
0

Create another private network on devstack single node ?

asked 2013-10-30 08:32:12 -0500

Anand gravatar image

updated 2013-10-30 09:13:14 -0500

darragh-oreilly gravatar image

Hi,

I want to boot a VM with multi-NIC on single node OpenStack. I have installed OpenStack Single using devstack and I am using the OVS plugin.

By default, there are two networks created by devstack: Private and Public.

I created another network called Private2 and when I launched an instance I assigned both the networks, Private and Private2, to the instance. The Private network is allocated to nic1 and Private2 to nic2. The Private2 network assigns an IP address to the virtual machine but when i do an ifconfig inside the virtual machine I am not able to see an interface with IP address allocated from Private2. There is only one interface that is shown and it belongs to the Private network not Private2. Also, ping and ssh does not work with IP address allotted from Private2 network.

The url http://goo.gl/6DwndU shows the snapshot of my network topology. The admin status is up for the Interfaces for both the routers. Neutron net-list shell command also lists the Private2 network. Other than that, the ovs-vsctl show command also displays an interface corresponding to the IP allotted to the instance from the Private2 subnet.

The machine that i use to run OpenStack has a single physical NIC. Could that be the issue ?

Any suggestion or help in this regard would be appreciated. Thank you.

edit retag flag offensive close merge delete

Comments

eth1 would be shown by running "ifconfig -a" Just execute "dhclient eth1" to configure it.

laboshinl gravatar imagelaboshinl ( 2013-10-31 15:40:15 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
2

answered 2013-10-30 09:09:44 -0500

darragh-oreilly gravatar image

ifconfig is deprecated and does not always work. Use ip from iproute2 instead:

$ ip address

The Cirros image is configured to run a DHCP client on eth0 only (see ps -ef | grep dhcp). Try this:

$ sudo udhcpc -i eth1
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: 2013-10-30 08:32:12 -0500

Seen: 716 times

Last updated: Oct 30 '13