How to setup internet access for VMs using one shared public IP?

asked 2015-01-05 15:05:48 -0500

CrestHawk gravatar image

updated 2015-01-05 21:12:01 -0500

smaffulli gravatar image

I was wondering if anyone knows how I can get internet access on a (home) hosted OpenStack VM with only one public IP. With VM-Ware it's very simple, why is it so complicated with OpenStack?

OpenStack Icehouse on Ubuntu Server 14.04.1 LTS

My real internet settings:

Range: 192.168.1.0/24 Computer with openstack: 192.168.1.16 Gateway: 192.168.1.1 Public IP: 12.34.5.67 (Fake) Subnet Mask: 255.255.254.0 DNS 1: 76.76.76.76 DNS 2: 76.76.75.75

Openstack Settings:

On openstack the private network with a range of 10.0.0.0/24, linked to a virtual router as a port interface on one end. On the other end that virtual router is the gateway which leads to the (virtual) public IP range which is 172.24.4.0/24. That virtual IP range is linked to my openstack pc with static routing. However, the (REAL) private IP range is 192.168.1.0/24. The VM's do not have internet access to the outside world, they only have access to the other Private VM's. At one point they could actually ping other computers on my REAL network but still had no internet access, after a power outage they don't even have access to my real private net anymore.

Should I use my real physical subnet? (I tried and it didn't work) How will my openstack send the VM IP's to my router? If its with a bridge how do I correctly configure one?

edit retag flag offensive close merge delete

Comments

Ever find resolution to this? I am have a similar, I am starting to think I need to use static MAC binding for those external and bind them to the br-ex address

ethode gravatar imageethode ( 2015-04-11 16:13:49 -0500 )edit