North-South router can't connect to external network

asked 2018-07-04 00:06:31 -0500

johnpham gravatar image

I'm not able to ping external ip address from inside the network namespace of the router.

I'm able to ping the ip address of the router's external interface, 10.204.36.101 from the controller node. Hence, there is a connection between tap-2 and qr.

However when i ping the default gateway 10.204.36.1 from inside the network namespace I get destination unreachable response:

Command: ip netns exec qrouter.... ping 10 .204.36.1

There are 2 possibilities I can think of:

  1. The router external interface is not connected correctly to an external interface, I used tcpdump to capture the packets going through tap-2 while ping 10.204.36.1 from inside the namespace and got nothing!!

  2. The router is trying to send the package to a destination that doesn't exist. I'm not sure what this means also Bcast:10.204.36.255

Here is the output of ip a from inside the router network's namespace:

root@controller:~# ip netns exec qrouter-7ed15053-83a8-4166-ba73-0bf0c8e7af53 ifconfig -a                                                                          
lo        Link encap:Local Loopback                                               
      inet addr:127.0.0.1  Mask:255.0.0.0                                     
      inet6 addr: ::1/128 Scope:Host                                          
      UP LOOPBACK RUNNING  MTU:65536  Metric:1                                
      RX packets:4814 errors:0 dropped:0 overruns:0 frame:0                   
      TX packets:4814 errors:0 dropped:0 overruns:0 carrier:0                 
      collisions:0 txqueuelen:1                                               
      RX bytes:539168 (539.1 KB)  TX bytes:539168 (539.1 KB)                  

qr-611a94d2-59 Link encap:Ethernet  HWaddr fa:16:3e:03:fa:df                      
      inet addr:10.204.36.101  Bcast:10.204.36.255  Mask:255.255.255.0        
      inet6 addr: fe80::f816:3eff:fe03:fadf/64 Scope:Link                     
      UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1                      
      RX packets:26748 errors:0 dropped:0 overruns:0 frame:0                  
      **TX packets:4861 errors:0 dropped:0 overruns:0 carrier:0                 
      collisions:0 txqueuelen:1000                                            
      RX bytes:2867414 (2.8 MB)  TX bytes:243414 (243.4 KB)                   

qr-a72dc808-18 Link encap:Ethernet  HWaddr fa:16:3e:ff:f2:12                      
      inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0          
      inet6 addr: fe80::f816:3eff:feff:f212/64 Scope:Link                     
      UP BROADCAST RUNNING MULTICAST  MTU:1450  Metric:1                      
      RX packets:3612 errors:0 dropped:0 overruns:0 frame:0                   
      TX packets:3461 errors:0 dropped:0 overruns:0 carrier:0                 
      collisions:0 txqueuelen:1000                                            
      RX bytes:343135 (343.1 KB)  TX bytes:417974 (417.9 KB)**

Output from ip -d link list:

root@controller:~# ip netns exec qrouter-7ed15053-83a8-4166-ba73-0bf0c8e7af53 ip -d link list
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1
   link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 promiscuity 0 addrgenmode eui64
2: qr-a72dc808-18@if6: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1450 qdisc noqueue state UP mode DEFAULT group 
  default qlen 1000
    link/ether fa:16:3e:ff:f2:12 brd ff:ff:ff:ff:ff:ff link-netnsid 0 promiscuity 0
    veth addrgenmode eui64
13: qr-611a94d2-59 ...
(more)
edit retag flag offensive close merge delete