Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

First of all, to have and idea about my network topology :

Network Topology

and the gateway of my external network is : 192.168.122.1

When I capture in the router namespace and I ping for the instance the gateway of the external network by using :

ip netns exec <router_namespace> tcpdump -i any icmp -nn

I got :

10:05:07.805982 IP 192.168.0.10 > 192.168.122.1: ICMP echo request, id 24321,                                                                                                                                   seq 0, length 64
10:05:08.808850 IP 192.168.0.10 > 192.168.122.1: ICMP echo request, id 24321, se                                                                                                                              q 1, length 64
10:05:09.810047 IP 192.168.0.10 > 192.168.122.1: ICMP echo request, id 24321, se                                                                                                                                  q 2, length 64
10:05:10.809102 IP 192.168.122.200 > 192.168.0.10: ICMP host 192.168.122.1 unrea                                                                                                                                  chable, length 92
10:05:10.809138 IP 192.168.122.200 > 192.168.0.10: ICMP host 192.168.122.1 unrea                                                                                                                                  chable, length 92
10:05:10.809147 IP 192.168.122.200 > 192.168.0.10: ICMP host 192.168.122.1 unrea                                                                                                                                  chable, length 92
10:05:10.810718 IP 192.168.0.10 > 192.168.122.1: ICMP echo request, id 24321, se                                                                                                                                  q 3, length 64
10:05:11.811284 IP 192.168.0.10 > 192.168.122.1: ICMP echo request, id 24321, se                                                                                                                                  q 4, length 64
10:05:12.812171 IP 192.168.0.10 > 192.168.122.1: ICMP echo request, id 24321, se                                                                                                                                  q 5, length 64
10:05:13.808613 IP 192.168.122.200 > 192.168.0.10: ICMP host 192.168.122.1 unrea                                                                                                                                  chable, length 92
10:05:13.808633 IP 192.168.122.200 > 192.168.0.10: ICMP host 192.168.122.1 unrea                                                                                                                                  chable, length 92
10:05:13.808637 IP 192.168.122.200 > 192.168.0.10: ICMP host 192.168.122.1 unrea                                                                                                                                  chable, length 92
10:05:13.812479 IP 192.168.0.10 > 192.168.122.1: ICMP echo request, id 24321, se                                                                                                                                  q 6, length 64
10:05:14.814060 IP 192.168.0.10 > 192.168.122.1: ICMP echo request, id 24321, se                                                                                                                                  q 7, length 64
10:05:15.815577 IP 192.168.0.10 > 192.168.122.1: ICMP echo request, id 24321, se                                                                                                                                  q 8, length 64
10:05:16.808625 IP 192.168.122.200 > 192.168.0.10: ICMP host 192.168.122.1 unrea                                                                                                                                  chable, length 92
10:05:16.808672 IP 192.168.122.200 > 192.168.0.10: ICMP host 192.168.122.1 unrea                                                                                                                                  chable, length 92
10:05:16.808676 IP 192.168.122.200 > 192.168.0.10: ICMP host 192.168.122.1 unrea                                                                                                                                  chable, length 92
10:05:16.820334 IP 192.168.0.10 > 192.168.122.1: ICMP echo request, id 24321, se                                                                                                                                  q 9, length 64
10:05:19.821120 IP 192.168.122.200 > 192.168.0.10: ICMP host 192.168.122.1 unrea                                                                                                                                  chable, length 92

And 192.168.122.200 is my instance's floating IP.

when I did : ip netns exec <router_namespace> route -n

here is what I've found :

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         192.168.122.1   0.0.0.0         UG    0      0        0 qg-a1f67ecf-85
192.168.0.0     0.0.0.0         255.255.255.0   U     0      0        0 qr-6547bbbf-f1
192.168.122.0   0.0.0.0         255.255.255.0   U     0      0        0 qg-a1f67ecf-85

Thnk you kuro, in advance :)