Lab #3
Two LANs connected by two routers
The purpose of this lab is to show how two LANs can be connected by means of two routers.
This situation happens, for instance, when two LANs are located in two geographically separated sites.
Preparation steps
This lab requires the GNS3 VM to instantiate a Docker container of a Linux-based router.
In particular, it requires that you have already executed once the preparation steps described for Lab #2.
Experiment steps
- Recreate the following topology in GNS3. Choose the "GNS3 VM" server to instantiate all the devices of this lab.
- When the devices are still inactive, right-click on the frr-routing-1 router icon and select the Configure option.
- Press Edit to modify the router's network configuration.
- Modify the router's interfaces configuration as illustrated in the following picture.
- Subsequently, right-click on the frr-routing-2 router icon and select the Configure option.
- Press Edit to modify the router's network configuration.
- Modify the router's interfaces configuration as illustrated in the following picture.
- Start all devices.
- Open PC1 terminal and execute the following commands:
ip 192.168.10.2/24 192.168.10.1
save
- Open PC2 terminal and execute the following commands:
ip 192.168.20.2/24 192.168.20.1
save
- Start capture on link connecting frrouting-frr-2 to PC2.
- In PC1 terminal execute the command:
ping 192.168.10.1
and verify that answers are received from the default gateway.
Press ctrl-C at any time to stop ping.
- In PC1 terminal execute the command:
ping 192.168.20.2
and verify that answers are NOT received from PC2.
Press ctrl-C at any time to stop ping.
- Right-click on the frr-routing-2 router icon and select the Auxiliary console option.
- In frr-routing-2 terminal, type the command:
route add -net 192.168.10.0/24 gw 10.10.10.1
- In PC1 terminal execute again the command:
ping 192.168.20.2
and verify that answers from PC2 are now received.
Press ctrl-C at any time to stop ping.
- Likewise, in PC2 terminal execute the command:
ping 192.168.10.2
and verify that answers are NOT received from PC1.
Press ctrl-C at any time to stop ping.
- Right-click on the frr-routing-1 router icon and select the Auxiliary console option.
- In frr-routing-1 terminal, type the command:
route add -net 192.168.20.0/24 gw 10.10.10.2
- In PC2 terminal execute again the command:
ping 192.168.10.2
and verify that answers from PC1 are now received.
Press ctrl-C at any time to stop ping.
Return to list of labs
Copyright (c) 2024 - Roberto Canonico
Last updated: October 3, 2024 by Roberto Canonico