Instance not able to ping to external IP

asked 2016-03-26 05:54:28 -0600

Ray gravatar image

updated 2016-03-26 22:45:24 -0600

Bipin gravatar image

Hello everybody,

I followed the installation guide to install Openstack: http://docs.openstack.org/icehouse/install-guide/install/apt/content/

But I am stucked at the point, where I am supposed to "create initial network": http://docs.openstack.org/icehouse/install-guide/install/apt/content/nova-network-initial-network.html

My System is configured as the following:

Ubuntu Server with IP 192.168.1.xx and virtual bridge to 192.168.122.xx network and with Internet connection.
Ubuntu Server is running Openstack compute node with IP 192.168.122.31 and with internet connection.
Ubuntu Server is running Openstack controller node with IP 192.168.122.11 and with internet connection.

Now I dont know how I have to "create initial network" due to the installation guide. Can I use any random IP as NETWORK_CIDR? Do I need to chose an 192.168.122.xx IP? Do I need an 192.168.1.xx IP?

I tried either ways to launch instances with the mentioned IP´s, but I could not ping to anywhere except to localhost from my running instances in my nova-network.

Has anybody an idea???

Thanks in advance.

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
0

answered 2016-03-29 08:18:25 -0600

Gnan gravatar image

Hey,

Delete the existing subnets and networks and you can create the initial networking using below steps:

neutron router-create router1 neutron net-create private neutron subnet-create private 10.0.0.0/24 --name private_subnet neutron router-interface-add router1 private_subnet neutron net-create public --router:external=True neutron subnet-create public 192.0.0.1/24 --name public_subnet --enable_dhcp=False --allocation-pool start=192.0.0.51,end=192.0.0.99 --gateway=192.0.0.1 neutron router-gateway-set router1 public

After creating the networks run this command on eth0(public network) - iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2016-03-26 05:54:28 -0600

Seen: 573 times

Last updated: Mar 29 '16