PING To floating IP failed from ext network

asked 2016-02-01 00:28:05 -0500

os_newbie gravatar image

updated 2016-02-01 12:57:58 -0500

Hi,

We have launched VM and trying to associate a floating IP to it. As part of this, I have created ext-net, subnet etc.. as shown below, but ping failed.

Can any one guide me through the troubleshooting to make it successful.

My setup is two node setup. Controller+Neutron on one node and Compute on anothe node.

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


subnet creation  :-  neutron subnet-create ext-net 10.130.98.0/24 --name ext-subnet --allocation-pool start=10.130.98.244,end=10.130.98.249 --disable-dhcp --gateway 10.130.98.95
====================

Attaching the tenant network router to ext network :- neutron router-gateway-set demo-router ext-net  (demo-net is tenant network 172.168.2.0/24, management network is 192.168.1.0/24)
====================================================

Demo-router interfaces :-
==========================

[root@controller ~]# ip netns exec qrouter-449299aa-e74c-401e-8b2f-114306f08818 ifconfig

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 0  (Local Loopback)
        RX packets 99  bytes 11088 (10.8 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 99  bytes 11088 (10.8 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

qg-93d8f2c3-16: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.130.98.244  netmask 255.255.255.0  broadcast 10.130.98.255
        inet6 fe80::f816:3eff:fe64:70ea  prefixlen 64  scopeid 0x20<link>
        ether fa:16:3e:64:70:ea  txqueuelen 0  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 13  bytes 1074 (1.0 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

qr-e2ac8c0d-e0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 172.168.2.1  netmask 255.255.255.0  broadcast 172.168.2.255
        inet6 fe80::f816:3eff:fe61:743f  prefixlen 64  scopeid 0x20<link>
        ether fa:16:3e:61:74:3f  txqueuelen 0  (Ethernet)
        RX packets 92  bytes 7720 (7.5 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 24  bytes 2016 (1.9 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
[root@controller ~]#




Tried ping to external network gatway from this router :-
==========================================================

[root@controller ~]# ip netns exec qrouter-449299aa-e74c-401e-8b2f-114306f08818 ping 10.130.98.95

PING 10.130.98.95 (10.130.98.95) 56(84) bytes of data.
From 10.130.98.244 icmp_seq=1 Destination Host Unreachable
From 10.130.98.244 icmp_seq=2 Destination Host Unreachable



[root@controller ~]# ifconfig (required output is printed here)
==============================================================================
br-ex: flags=4419<UP,BROADCAST,RUNNING,PROMISC,MULTICAST>  mtu 1500
        inet 10.130.98.84  netmask 255.255.255.0  broadcast 10.130.98.255
        inet6 fe80::7610:91ff:fe17:49e  prefixlen 64  scopeid 0x20<link>
        ether 74:10:91:17:04:9e  txqueuelen 0  (Ethernet)
        RX packets 136413  bytes 11646294 (11.1 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 44297  bytes 7060216 (6.7 MiB)
        TX errors 0  dropped 0 ...
(more)
edit retag flag offensive close merge delete

Comments

Could you correctly ping ext-net gw from your Controller/Network node?

Antonio G. gravatar imageAntonio G. ( 2016-02-01 13:02:23 -0500 )edit

ping to ext-net gw from controller/netw [root@controller ~]# ip netns exec qrouter-978a3266-a7f3-4ef3-9585-95f6cf0396fd ping 10.130.98.95 PING 10.130.98.95 (10.130.98.95) 56(84) bytes of data. From 10.130.98.246 icmp_seq=1 Destination Host Unreachable

os_newbie gravatar imageos_newbie ( 2016-02-02 01:04:08 -0500 )edit

10.130.98.95 is gw ip given during ext-subnet creation. this is not IP of the phy router in our lab. So ping to this IP from controller instead of tenant network router (demo-router) will fail.

os_newbie gravatar imageos_newbie ( 2016-02-02 01:15:47 -0500 )edit
1

GW IP given during ext-subnet creation should be a REAL GW !!! You must check that from your Controller/Network node you could ping it!!!

Antonio G. gravatar imageAntonio G. ( 2016-02-05 10:51:32 -0500 )edit