Ask Your Question

Adding Additional Fixed and Floating IPs

asked 2013-07-30 22:43:37 -0600

greysquirrel gravatar image

updated 2013-07-30 23:25:40 -0600

3 node (1 control/network and 2 compute) CentOS test install running Grizzly.

I am attempting to add an additional Fixed IP and an additional Floating IP to an instance. I would like the new Fixed IP to NAT to the new Floating IP.

I have determined how to do both using Nova but I cannot figure out how to get the NAT set up without attempting to directly modify the nova-networking nat rules. I have used the following commands thus far:

nova add-fixed-ip <instance uuid> <network uuid>
nova add-floating-ip <instance uuid> <floating-ip>

The first command does add a new Fixed IP to the instance. The second command does add a new Floating IP to the instance but the NAT rules are setup to point to the original Fixed IP and not the one I recently added. I feel like I am close here and I just seem to be missing one last step.

If this is somehow easier accomplished using Neutron instead of Nova-Networking then I am open to switching over. Any help would be greatly appreciated! :D

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2014-10-02 22:24:40 -0600

jtaguinerd gravatar image

You can use the "--fixed-address" argument to map it to the fixed ip.

nova add-floating-ip --fixed-address <fixed_address> <instance uuid> <floating-ip>

If that didn't work you can also force it by updating the value in mysql table.

edit flag offensive delete link more

answered 2014-10-03 06:18:12 -0600

Manoj Krishnan gravatar image

Try this I think this will work for your scenario.

Consider you are having eth0 with a fixed IP with a floating-ip associated. Will add a new interface with specified fixed-IP to the existing instance.

nova interface-attach --net-id <network uuid> --fixed-ip <fixed_address> <instance uuid>

--fixed-ip = Fixed IP from private network to be used

To associate a Floating IP to the above IP (new nic).

nova floating-ip-associate --fixed-address <fixed_address> <instance uuid> <floating-ip>
edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools



Asked: 2013-07-30 22:43:37 -0600

Seen: 873 times

Last updated: Oct 03 '14