Ask Your Question
0

can't ping external g/w

asked 2019-03-16 02:00:45 -0600

ahmedmmm gravatar image

updated 2019-03-16 05:16:26 -0600

Hi, i can't ping instance or ssh from outside,after tshoot i find router ip [10.252.12.57]can't reach it's external gw [10.252.12.33] External subnet: 10.252.12.32/27

1-tcpdump of pining external interface 10.252.12.33

[root@os ~(keystone_admin)]# ip netns exec qrouter-e5a061c1-6612-4c60-8066-927c0751f53f  tcpdump -i any icmp -nn
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on any, link-type LINUX_SLL (Linux cooked), capture size 262144 bytes
08:09:17.110553 IP 10.252.12.57 > 10.252.12.57: ICMP host 10.252.12.33 unreachable, length 92
08:09:17.110563 IP 10.252.12.57 > 10.252.12.57: ICMP host 10.252.12.33 unreachable, length 92
08:09:17.110570 IP 10.252.12.57 > 10.252.12.57: ICMP host 10.252.12.33 unreachable, length 92

2-ifconfig from router

[root@os ~(keystone_admin)]# ip netns exec qrouter-e5a061c1-6612-4c60-8066-927c0751f53f 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 1000  (Local Loopback)
        RX packets 100  bytes 9800 (9.5 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 100  bytes 9800 (9.5 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

qg-3cbaae0b-e4: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1450
        inet 10.252.12.57  netmask 255.255.255.224  broadcast 10.252.12.63
        inet6 fe80::f816:3eff:fe38:4f76  prefixlen 64  scopeid 0x20<link>
        ether fa:16:3e:38:4f:76  txqueuelen 1000  (Ethernet)
        RX packets 39  bytes 2068 (2.0 KiB)
        RX errors 0  dropped 2  overruns 0  frame 0
        TX packets 184  bytes 9104 (8.8 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

qr-78dba6f1-fe: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1450
        inet 10.0.0.1  netmask 255.255.255.0  broadcast 10.0.0.255
        inet6 fe80::f816:3eff:fe98:5cdf  prefixlen 64  scopeid 0x20<link>
        ether fa:16:3e:98:5c:df  txqueuelen 1000  (Ethernet)
        RX packets 1332  bytes 136500 (133.3 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 1662  bytes 164677 (160.8 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

3-route -n from router

[root@os ~(keystone_admin)]# ip netns exec qrouter-e5a061c1-6612-4c60-8066-927c0751f53f route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         10.252.12.33    0.0.0.0         UG    0      0        0 qg-3cbaae0b-e4
10.0.0.0        0.0.0.0         255.255.255.0   U     0      0        0 qr-78dba6f1-fe
10.252.12.32    0.0.0.0         255.255.255.224 U     0      0        0 qg-3cbaae0b-e4

4-ping instance ip [10.252.12.59] from router namespace[10.252.12.57] working fine

[root@os ~(keystone_admin)]# ip netns exec qrouter-e5a061c1-6612-4c60-8066-927c0751f53f ping 10.252.12.59
PING 10.252.12.59 (10.252.12.59 ...
(more)
edit retag flag offensive close merge delete

Comments

How did you deploy your cloud? In particular, is this a single or multi-host cloud? Is your router distributed or centralized?

Also share the [ovs] section from the openvswitch_agent.ini file, and the command you used to set up the external network. Confirm that 10.242.12.33 is configured on br-ex.

Bernd Bausch gravatar imageBernd Bausch ( 2019-03-16 02:52:52 -0600 )edit

deployed by packstack,AOI server.

[root@os ~]# ifconfig
br-ex: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.252.12.60  netmask 255.255.255.224  broadcast 10.252.12.63
        inet6 fe80::ac9e:64ff:fe1d:cd44  prefixlen 64  scopeid 0x20<link>
        ether
ahmedmmm gravatar imageahmedmmm ( 2019-03-16 02:58:53 -0600 )edit

I would have expected br-ex to have the external gateway address. Why is it 10.252.12.60? Or: From where did you get 10.252.12.33?

Can you share the command you used to deploy the cloud? And if you configured the answer file, what did you configure?

Bernd Bausch gravatar imageBernd Bausch ( 2019-03-16 05:17:42 -0600 )edit

external subnet 10.252.12.32/27 and gw is 10.252.12.33 openstack 10.252.12.60 so br-ex: 10.252.12.60 router interface :10.252.12.57

i deploy using this command packstack --allinone --provision-demo=n --os-neutron-ovs-bridge-mappings=extnet:br-ex --os-neutron-ovs-bridge-interfaces=br-ex:eth0

ahmedmmm gravatar imageahmedmmm ( 2019-03-16 06:17:52 -0600 )edit

note: openstack AIO hosted as VM over ESXI host,and i configure virtual switch in esxi for this vSwitch in ESXi. openstack eth0 connected to this virtual switch that have vlan 10 because external subnet 10.252.12.32/27 should be exist in vlan 10.

from openstack side i should also tagged?

ahmedmmm gravatar imageahmedmmm ( 2019-03-16 06:22:20 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2019-03-17 09:41:23 -0600

ahmedmmm gravatar image

anyone know how to solve this issue?

edit flag offensive delete link more

Comments

I've the same issue.....I've opened this https://ask.openstack.org/en/question/119783/no-route-to-instance-ssh-and-ping-no-route-to-host/ (post), and until now I have not found yet a solution to solve that.

d@kj gravatar imaged@kj ( 2019-03-18 10:43:18 -0600 )edit

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: 2019-03-16 02:00:45 -0600

Seen: 56 times

Last updated: Mar 16