Network without DHCP... still assigns IPs?

asked 2016-02-25 09:15:45 -0600

ICBeter gravatar image

I have created two networks in my tenant and have two instances attachted to both (eth0 and eth1). Both networks have a subnet, because instance creation would fail else. On the second subnet I have disabled DHCP, because I want to configure static IPs on eth1 inside the instances.

Now... if I launch a new instance, it is assigned an IP address from the subnet. Horizon shows that IP immediately after the initial launch of the instance.

How can I launch an instance attached to a network without being assigned an IP?

edit retag flag offensive close merge delete


IP allocation and DHCP are separate things. You want to stop allocation on that subnet. Maybe reducing the subnets alloacation pools to nothing to stop auto allocate, but still, I don't it it would be possible to create a port with a blank fixed_ips field.

darragh-oreilly gravatar imagedarragh-oreilly ( 2016-02-25 13:05:06 -0600 )edit

So there is no way for me to decide which IP is assigned to which instance?

ICBeter gravatar imageICBeter ( 2016-02-25 15:17:41 -0600 )edit

Yes, you can, check option v4-fixed-ip=ip-addr,v6-fixed-ip=ip-addr,port-id=port-uuid> from nova help boot command, or check this article

Eduardo Gonzalez gravatar imageEduardo Gonzalez ( 2016-02-25 15:33:40 -0600 )edit