Using NAT to assign external IP to floating IP

asked 2015-04-10 23:22:18 -0600

ethode gravatar image

We're running Juno on Ubuntu 14.04

Many of the instances on our stack are dev only and only will be accessible via VPN on our network, so for those VM's it's no big deal that the floating IP is using the subnet

However for the few that we need to have public static IP's for we need to be able to add NAT forwarding from our router so that <public ip=""> forwards to <floating ip="">. We have a lot of NAT happening with physical dedicated servers but for some reason we can't get it to work for the VM's.

I was curious if perhaps the problem is that the neutron DHCP agent isn't registering the IP's it's using with our router, and so the only reason we can access them is that we're on the same switch which uses the same subnet, but I have my doubts that the router even know's those floating IP's exist.

With all this said, if the router doesn't have a clue that (for example) has been leased out via neutron and not the routers' DHCP agent then there's no way for NAT to route to it. Any ideas would be helpful

edit retag flag offensive close merge delete


what we do is have 2 floating pools. 1 has 10/8, the other is public (and smaller).

don gravatar imagedon ( 2015-04-12 12:41:47 -0600 )edit

I wound up doing that very thing yesterday... I setup a DHCP server in my router for those external IP addresses, and then I setup another external networking in Nuetron to use the public IP's instead of the subnet. Still not working for me but I think it's a step in the right direction

ethode gravatar imageethode ( 2015-04-12 12:59:53 -0600 )edit