<aside> 💡
This is a follow-up to the previous article, 04. Understand Linux Routing System , presenting two interesting hands-on experiments. Through these experiments, we will attempt to interact with targets outside the Network Namespace, such as the eth0 interface on the local host, or external network services like Google DNS.
</aside>
<aside> 💡
In Experiment 2, we will initiate a ping command from the eth0 interface inside the network namespace ns1 to the Host eth0 interface. Since these two interfaces belong to different subnets, they cannot communicate directly. Therefore, we will explore how, by interacting with the Routing Table and utilizing the bridge br0, we can eventually succeed in pinging the Host eth0.
During the experiment, we will observe two interesting issues, and we will leave one additional question for the reader to ponder.
In addition, this environment does not have any default routing rules and does not use a gateway. Instead, it adopts a Direct Routing approach.
The architectural diagram is shown below.
</aside>
<aside> 💡
This environment uses the Ubuntu 24.04 server provided by iximiuz Labs, which offers a fast and convenient online practice environment.
Reference: https://labs.iximiuz.com/
</aside>
Host eth0 from ns1
First, let’s check the routing table of ns1. At the moment, it contains only one entry:
10.22.33.0/24 dev eth0 proto kernel scope link src 10.22.33.4
Next, when we issue a ping command from ns1 to the Host, we can observe that it results in a “Network is unreachable” status.
ns1's routing table
Since that’s the case, let’s try adding the Host’s **eth0** to ns1’s routing table.
Step 1: Add the route with the command
ip route add 172.16.0.2/32 dev eth0
Step 2: Issue the ping command to the Host again
Result: We get a different outcome — it’s no longer “Network is unreachable”, but the ping command becomes stuck (hangs)…
Why is that? Let’s debug it step by step.

ns1. We can observe an interesting phenomenon:
ns1’s ARP table show the IP address of the Host’s eth0 interface, but the MAC address recorded is that of the br0 interface?tcpdump to listen for packets traversing the br0 interface.ns1 and issue the ping to the Host again.Question 2: At this point we observe that br0 receives the ICMP Request packets but no ICMP Reply packets. Why is that?

Let’s answer Question 2 first.
Step 1: Check the Host’s routing table.
default route and a 172.16.0.0/24 … route. That means the Host does not know how to deliver packets to ns1.Step 2: Therefore, we manually add a route to ns1:
$ sudo ip route add 10.22.33.0/24 dev br0

After adding the route, we issue the ping command again — and this time, it succeeds. We can also observe that the br0 interface now carries both ICMP Request and ICMP Reply packets.
<aside> 💡
Through this small experiment, we learned that in order to successfully send and receive packets, every point the packet passes through must have the appropriate routing in place.
</aside>