Table of Content

I created instance in centos7 openstack, associated floating ip to instance but cannot ping and ssh to it.

Finally found out I have to give network name space to it, more detail about network namespace here.

network namespce

[vagrant@ctopenstack ~(keystone_demo)]$ ip netns list
qrouter-6d768792-a449-40dd-b124-c2daba753cfd
qdhcp-9200eb14-5004-4e94-a7e0-1a62f32e96a4

ping instance

[vagrant@ctopenstack ~(keystone_demo)]$ sudo ip netns exec qrouter-6d768792-a449-40dd-b124-c2daba753cfd ping 172.24.4.10
PING 172.24.4.10 (172.24.4.10) 56(84) bytes of data.
64 bytes from 172.24.4.10: icmp_seq=1 ttl=64 time=6.66 ms
64 bytes from 172.24.4.10: icmp_seq=2 ttl=64 time=0.622 ms

ssh to instance

[vagrant@ctopenstack ~(keystone_demo)]$ sudo ip netns exec qrouter-6d768792-a449-40dd-b124-c2daba753cfd ssh -i ~/.ssh/demo-key cirros@172.24.4.10
The authenticity of host '172.24.4.10 (172.24.4.10)' can't be established.
RSA key fingerprint is SHA256:QbUxArkd+d/RWXRv1Znp4lBIOdmx+cisXI3tmVWFFFQ.
RSA key fingerprint is MD5:52:22:d0:19:89:bd:40:0c:80:68:bf:f5:22:8c:cf:3e.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '172.24.4.10' (RSA) to the list of known hosts.
$