Ask Your Question

Issue with ip assignment in VM

asked 2016-02-23 01:02:37 -0500

Rahul gravatar image


I'm a newbie. I have implemented a open stack environment (Added one controller node and one compute node using Mirantis Fuel). Also, defined Neutron L3 internal ip range as and defined public floating IP range as which is mapped to internet.

-When I provision VMs (Cirros) using horizon by selecting internal network, it's getting IP automatically (192 range) and internet is up in VM as well.

-But when I select only public network, IP is not assigned automatically (10. series) and internet is not up also. When I assign IP manually, internet still not coming up.

Please help!

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2016-02-23 07:42:02 -0500

updated 2016-02-24 16:11:15 -0500

To answer your question of "Why IP is not assigned automatically " -

Check if you have enabled DHCP in the public network (Most probably you would not have)

1) "$ neutron net-list " and get the subnet IDs. 2) For each subnet do "$ neutron subnet-show <subnet-id>" and check if "enable_dhcp" field is True. (If it is False, it is working as expected and you will not get IP. If it is true, some thing is wrong)

If it is true -

3) Do "$ neutron dhcp-agent-list-hosting-net <public-net-id>" and find the net node in which the dhcp agent is hosted. 4) Log into the net node and type "ip netns | grep <public-net-id>"

If there are no output, something is wrong the way it is installed. If you can see the dhcp namespace, you need to check if the dnsmasq process is running , check syslogs, use tcpdump to capture DHCP packets to troubleshoot further.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2016-02-23 01:02:37 -0500

Seen: 184 times

Last updated: Feb 24 '16