You have a network topology with three separate machines on two different networks:
- leaf-01 connected to network net-1 (
192.168.178.10/24
) - leaf-02 connected to network net-2 (
10.0.0.20/16
) - router acting as a gateway between networks net-1 and net-2 (
192.168.178.2/24
and10.0.0.2/16
respectively)
The network topology looks as follows:

Currently, the two leaf nodes cannot reach each other because they are on different networks and don't know how to route traffic between them. You need to solve this fundamental networking problem.
Your mission: Configure basic routing so that leaf-01 and leaf-02 can communicate with each other through the router.
Configure the routing on leaf-01:
Hint 1 💡
The leaf-01 machine needs to know where to send traffic destined for networks it's not directly connected to. Look into configuring a default route that points to the router.
The ip route
command is your friend here. Check man ip-route
for syntax details.
Configure the routing on leaf-02:
Hint 2 💡
Similar to leaf-01, the leaf-02 machine also needs to know how to reach networks it's not directly connected to. The same concept applies, but pay attention to which gateway IP address to use for this network.
Configure the router to forward packets:
Hint 3 💡
By default, Linux systems don't forward packets between network interfaces of the same machine. The router needs to be explicitly configured to forward packets from one network to another.
Look into the net.ipv4.ip_forward
kernel parameter. You can control it via /proc/sys/
or using the sysctl
command.
Test connectivity from leaf-01 to leaf-02:
Test connectivity from leaf-02 to leaf-01:
Understanding Routing 💡
Computers can only directly talk to other computers on the same subnet (via the bridge or switch that connects them).
Routing is about telling machines where to send packets they can't deliver directly. When a machine doesn't know how to reach a destination, it:
- Checks its routing table for specific routes
- If no specific route exists, uses the default route (if configured)
- The default route typically points to a gateway node that is connected to the machine's subnet and one or more other subnets and can forward packets between them
Think about what each machine needs to know to reach the other networks in the given topology.

Troubleshooting 💡
If connectivity isn't working, verify:
- Each leaf node knows how to reach networks it's not directly connected to
- The router is configured to forward packets between interfaces
- You're working on the correct machine (check with
hostname
)
Useful commands for debugging:
ip route show
- displays the routing tableip addr show
- shows interface configurationping <ip>
- tests network connectivitytraceroute <ip>
- shows the path packets take
Level up your Server Side game — Join 10,500 engineers who receive insightful learning materials straight to their inbox