Ask Your Question
0

Issue with ip assignment in VM

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

Rahul gravatar image

Hello,

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 192.168.111.0/24 and defined public floating IP range as 10.11.240.130-254/24 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
0

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

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

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

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: 2016-02-23 01:02:37 -0600

Seen: 140 times

Last updated: Feb 24 '16