LAB Static Route
LAB Static Route
Routing
❖ Routing is the process of selecting paths in a network along which to send network traffic
1. Static Routing – This is the method by which an administrator manually adds routes to the
routing table of a router. This is a method for small networks but it is not scalable for larger
networks.
2. Dynamic Routing – This is the method where protocols and algorithms are used to
automatically propagate routing information. This is the most common method and most
+ exit-interface: the local interface of this router where the packets will go out.
▪ Now we consider a real-world example of static routing. Suppose that your company has
2 branches located in Tripoli and Benghazi. As the administrator of the network, you are
tasked to connect them so that employees in the two LANs can communicate with each
other. After careful consideration you decided to connect them via static route.
Scenario:
Configure static route on both R2 and R1 and verify connectivity using ping command.
Setup:
▪ On Router 1:
Router 1>enable
Router 1#config T
Router 1(config)#Hostname R1
R1(config)#exit
▪ On Router 2:
Router 2>enable
Router 2#config T
Router 2(config)#Hostname R2
R2(config)#exit
▪ R1:
R1#config t
R1(config)#interface fa0/0
R1(config-if)#ip address 192.168.20.1 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#interface serial 0/0/1
R1(config-if)#ip address 10.10.10.2 255.255.255.252
R1(config-if)#no shutdown
▪ R2:
R2#config t
R2(config)#interface fa0/0
R2(config-if)#ip address 192.168.10.1 255.255.255.0
R2(config-if)#no shutdown
R2(config-if)#exit
R2(config)#interface serial 0/0/0
R2(config-if)#ip address 10.10.10.1 255.255.255.252
R2(config-if)#no shutdown
R2(config-if)#exit
▪ PC1:
▪ PC2:
R1:
R1#config t
R2:
R2#config t
As show in the figure above, the R2 contains only directly connected networks.
After applying static route, the routing table contains one additional route.