[Openstack] br100 ip assigned problem

Vishvananda Ishaya vishvananda at gmail.com
Tue Sep 27 12:46:52 UTC 2011


the network host for a 'normal' network will always get the gateway ip, but it doesn't delete the existing ip.  It should also show the original ip if you do:
ip addr show

One thing to keep in mind though, you will need to mark that ip reserved in the database if don't want it assigned to the vm:
UPDATE fixed_ips set reserved=TRUE where address='192.168.200.20';

 A 'multi_host' network is a little bit different, it will give out a random ip from the vm network to the host machine.  You can pre-allocate a particular ip to a host if you want by manually setting the host field to a the hostname of the machine.  Something like:
UPDATE fixed_ips set host=$HOSTNAME where address='192.168.200.20';
UPDATE networks set multi_host=TRUE;

This will force nova-network to assign that ip to the host instead of trying to give out 200.1

Vish

On Sep 27, 2011, at 5:30 AM, Michael Basnight wrote:

> I typically go in to the db and delete the ips I don't need. The cidr mapping will insert all the ips in that range, so go clean them out in fixed_ips in the db. 
> 
> Sent from my iPhone
> 
> On Sep 27, 2011, at 1:08 AM, "DeadSun" <mwjpiero at gmail.com> wrote:
> 
>> Hi, erveryone:
>> 
>> I used FLATDHCP network. And I set br100 on eth0 only. The ip is 192.168.200.20. Then I assign the fixed_ips range "192.168.200.0/24".
>> But when nova-network restarted, br100 is assigned to 192.168.200.1. This is not what I want. 
>> 
>> Dose anyone can help me?
>> 
>> 2011.3 (2011.3-nova-milestone-tarball:tarmac-20110922115702-k9nkvxqzhj130av2)
>> 
>> -- 
>> 非淡薄无以明志,非宁静无以致远
>> _______________________________________________
>> Mailing list: https://launchpad.net/~openstack
>> Post to     : openstack at lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~openstack
>> More help   : https://help.launchpad.net/ListHelp
> This email may include confidential information. If you received it in error, please delete it.
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to     : openstack at lists.launchpad.net
> Unsubscribe : https://launchpad.net/~openstack
> More help   : https://help.launchpad.net/ListHelp

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20110927/184bbc7b/attachment.html>


More information about the Openstack mailing list