Ask Your Question
0

How to exclude some IP's from vmnet

asked 2013-10-24 08:09:23 -0500

Dongjh gravatar image

Hello,

How can i exclude some IP's or some IP ranges from vmnet when creating the VM network ? Because some IP's are using by some other hosts and gateway/DNS servers.

# nova network-create vmnet --fixed-range-v4=192.168.11.0/24 --bridge-interface=br100 --multi-host=T --gateway=192.168.11.254 --dns1=192.168.11.36

For example, i want to exclude the controller's public IP 192.168.11.180, the IP's 192.168.11.182/183 for the bridges on the compute nodes, and two IP ranges(192.168.11.1~192.168.11.100 and 192.168.11.200~192.168.11.254) from 192.168.11.0/24 subnet.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2013-10-24 09:56:05 -0500

marcantonio gravatar image

updated 2013-10-24 12:41:00 -0500

It would be better to have the controller and compute nodes on a separate network than your VMs. However, you can manually set them as reserved in the database:

UPDATE fixed_ips SET reserved = 1 WHERE address IN ('192.168.11.180', '192.168.11.182');

I don't remember if dnsmasq will respect this as well, you should test to be sure. If not you can use the dhcp_start option.

__EDIT__: That's with nova-network. I'm not sure if/how that translates to neutron.

__UPDATE__: It looks like you can use nova fixed-ip-reserve too.

edit flag offensive delete link more

Comments

Thanks, issue resolved.

Dongjh gravatar imageDongjh ( 2013-10-25 00:05:21 -0500 )edit

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-24 08:09:23 -0500

Seen: 560 times

Last updated: Oct 24 '13