Deploying Routing
IP Static Route
Example for Configuring IPv4
Static Routes
Applicability
This example applies to all models of AR routers in all versions.
Networking Requirements
In Figure 8-1, users on an enterprise network are divided into different subnets and these users
need to communicate with each other. The enterprise network is not large in scale and requires
simple, secure, reliable, and efficient traffic forwarding. In this case, static routes can be
configured to enable any two hosts on the network to communicate with each other.
Before configuring IPv4 static routes, configure link layer protocol parameters and IP addresses
for interfaces to ensure that neighbouring nodes are reachable at the network layer.
Figure 8-1 Networking diagram of configuring static routes
Procedure
Configure RouterA.
1. #
2. interface GigabitEthernet1/0/0
3. ip address [Link] [Link]
4. #
5. interface GigabitEthernet2/0/0
6. ip address [Link] [Link]
7. #
8. ip route-static [Link] [Link] [Link]
ip route-static [Link] [Link] [Link] //Configure static
routes on RouterA.
9. #
10. return
Configure RouterB.
11. #
12. interface GigabitEthernet1/0/0
13. ip address [Link] [Link]
14. #
15. interface GigabitEthernet2/0/0
16. ip address [Link] [Link]
17. #
18. interface GigabitEthernet3/0/0
19. ip address [Link] [Link]
20. #
21. ip route-static [Link] [Link] [Link]
ip route-static [Link] [Link] [Link] //Configure static
routes on RouterB.
22. #
23. return
Configure RouterC.
24. #
25. interface GigabitEthernet1/0/0
26. ip address [Link] [Link]
27. #
28. interface GigabitEthernet2/0/0
29. ip address [Link] [Link]
30. #
31. ip route-static [Link] [Link] [Link]
ip route-static [Link] [Link] [Link] //Configure static
routes on RouterC.
32. #
33. return
Configure hosts.
Set the default gateway of hosts in VLAN 10 to [Link], default gateway of hosts in VLAN 20 to
[Link], and default gateway of VLAN 30 to [Link].
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 IPv4 default gateways for hosts.