Ask Your Question

How to assign floating IP [closed]

asked 2014-12-16 03:35:34 -0600

teju gravatar image

I ran the below commands to create 2 instances in 2 different subnets

neutron net-create net1 neutron subnet-create net1 neutron net-create net2 neutron subnet-create net2 neutron router-create router1

neutron router-interface-add router1 SUBNET1_UUID neutron router-interface-add router1 SUBNET2_UUID

neutron port-create net1 --binding:profile type=dict vnic_type=hostdev neutron port-create net2 --binding:profile type=dict vnic_type=hostdev

nova boot --flavor 6 --image centos6.4_cloud-init centos6.4_1 --nic port-id=port1_UUID nova boot --flavor 6 --image centos6.4_cloud-init centos6.4_2 --nic port-id=port2_UUID

Both the instances are able to ping each other. Now, I ran the below commands to create floating IPs.

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

neutron subnet-create ext-net --name ext-subnet --allocation-pool start=,end= --disable-dhcp --gateway

neutron router-gateway-set router1 ext-net

neutron floatingip-create ext-net

nova floating-ip-associate centos6.4_1

Now, the instances are not able to ping each other.

I am not able to ping floating IP assigned to instance.

The status of the router's internal interfaces is ACTIVE, but the status of External Gateway is DOWN.

How to fix this?

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by teju
close date 2014-12-16 05:42:36.533065

1 answer

Sort by ยป oldest newest most voted

answered 2014-12-16 05:42:19 -0600

teju gravatar image

I am able to use the floating IP after including gateway_external_network_id = EXTERNAL_NTWK_UUID in the file /etc/neutron/l3_agent.ini and restarting l3 agent.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2014-12-16 03:35:34 -0600

Seen: 917 times

Last updated: Dec 16 '14