Applicability
This example applies to all versions and AR routers.
Networking Requirements
Static routes need to be configured to ensure that any two hosts can communicate with each other. Figure 7-1 shows the IP addresses and masks of hosts and routers' interfaces.
Procedure
- Configure RouterA.
# interface GigabitEthernet1/0/0 ip address 10.1.1.1 255.255.255.0 # interface GigabitEthernet2/0/0 ip address 10.1.4.1 255.255.255.252 # ip route-static 10.1.2.0 255.255.255.0 10.1.4.2 ip route-static 10.1.3.0 255.255.255.0 10.1.4.2 //Configure static routes on Router A. # return
- Configure RouterB.
# interface GigabitEthernet1/0/0 ip address 10.1.2.1 255.255.255.0 # interface GigabitEthernet2/0/0 ip address 10.1.4.2 255.255.255.252 # interface GigabitEthernet3/0/0 ip address 10.1.4.5 255.255.255.252 # ip route-static 10.1.1.0 255.255.255.0 10.1.4.1 ip route-static 10.1.3.0 255.255.255.0 10.1.4.6 //Configure static routes on Router B. # return
- Configure RouterC.
# interface GigabitEthernet1/0/0 ip address 10.1.3.1 255.255.255.0 # interface GigabitEthernet2/0/0 ip address 10.1.4.6 255.255.255.252 # ip route-static 10.1.1.0 255.255.255.0 10.1.4.5 ip route-static 10.1.2.0 255.255.255.0 10.1.4.5 //Configure static routes on Router C. # return
- Configure hosts.
Set the default gateway of hosts in VLAN 10 to 10.1.1.1, default gateway of hosts in VLAN 20 to 10.1.3.1, and default gateway of VLAN 30 to 10.1.2.1.
- Configure switches.
Configure switches to allow hosts to communicate with their respective gateways.
- Verify the configuration.
- Run the display ip routing-table command to view the IP routing table.
- Run the ping command to verify the router connectivity.
Configuration Notes
-
Configure IPv4 addresses for routers' interfaces correctly.
-
Configure IP addresses on the same network segment for the interfaces connecting two routers together.
-
Configure default gateways for hosts.


