Ask Your Question
0

cant reach internet from instances in icehouse

asked 2014-12-26 18:55:47 -0500

beinghuman gravatar image

Hi Everyone, I am having issues in reaching the internet from any of the instacnes created on the open-stack dashboard. Below are additional details

I have created 2 instances with following IP's. Instance1 - 10.0.0.2(Floating IP: 192.168.2.2) Instance2- 10.0.0.3(Floating IP: 192.168.2.3)

Host IP: 192.168.2.50

I can ping the GW 192.168.2.1 or the floating IP's 192.168.2.2/3 from the instances but i cant ping the host IP or the internet from instances. Same applies from host side as i cant ping any of the floating IP's from the host.

I currently do not have any FW rules on host and on the instances i am allowing all traffic.

Can someone please help me with this issue. Any help is appreciated.

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
1

answered 2014-12-29 13:50:31 -0500

beinghuman gravatar image

Hi Teju, Thanks for replying to my thread. I am getting following error when i run your commands,

stack@openstack:~$ neutron net-create ext-net --shared --router:external=True --os-stack You must provide a username or user ID via --os-username, env[OS_USERNAME] or --os-user_id, env[OS_USER_ID] stack@openstack:~$ neutron net-create ext-net --shared --router:external=True --os-username stack OS Password: You must provide a project_id or project_name (with project_domain_name or project_domain_id) via --os-project-id (env[OS_PROJECT_ID]) --os-project-name (env[OS_PROJECT_NAME]), --os-project-domain-id (env[OS_PROJECT_DOMAIN_ID]) --os-project-domain-name (env[OS_PROJECT_DOMAIN_NAME])

Can we not do this from the openstack dashboard?

Thanks again for your reply.

edit flag offensive delete link more

Comments

You need to give credentials of the user. Make changes according to your set up info export OS_USERNAME=admin export OS_PASSWORD=ADMIN_PASS export OS_TENANT_NAME=admin export OS_AUTH_URL=http://controller:35357/v2.0 docs.openstack.org/havana/install-guide/install/apt/content/keystone-verify.html

rajiv-kumar gravatar imagerajiv-kumar ( 2014-12-30 07:31:00 -0500 )edit
1

answered 2014-12-29 02:26:07 -0500

teju gravatar image

updated 2014-12-29 02:28:30 -0500

Hi.Below are the instructions I followed. Hope this helps

  1. Create external network

    neutron net-create ext-net --shared --router:external=True

  2. Set the gateway_external_network_id and external_network_bridge in /etc/neutron/l3_agent.ini gateway_external_network_id = EXTERNAL_NTWK_UUID

    external_network_bridge = br-ex

  3. Restart l3 agent

service neutron-l3-agent restart

  1. Create subnet in the external network

neutron subnet-create ext-net --name ext-subnet \ --allocation-pool start=FLOATING_IP_START,end=FLOATING_IP_END \ --disable-dhcp --gateway EXTERNAL_NETWORK_GATEWAY EXTERNAL_NETWORK_CIDR

  1. Set the external network as gateway to the router

    neutron router-gateway-set ROUTER_NAME EXTERNAL_NETWORK_NAME

  2. Get a floating IP from the floating IP pool

    neutron floatingip-create ext-net

  3. Associate the floating IP to an instance

    nova floating-ip-associate INSTANCE_NAME FLOATING_IP

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-12-26 18:55:47 -0500

Seen: 417 times

Last updated: Dec 29 '14