Tags

,

 

In order for network 8.8.7.0/24 and 8.8.9.0/24 to have connectivity, we need to create static routes on R1 and R2 so that R1 will know about the 8.8.9.0/24 network on R2 and R2 will know about the 8.8.7.0/24 on R1.

To create a static route, we use the command ip route on the global config mode. The command’s format is something like this.

# ip route (destination address) (destination subnet mask) (forwarding router's address)

 

For the scenario above.

R1# conf t
R1# ip route 8.8.9.0 255.255.255.0 8.8.8.2
R2# conf t
R2# ip route 8.8.7.0 255.255.255.0 8.8.8.1

 

To test.

R1# ping 8.8.9.1 source 8.8.7.1 R2# ping 8.8.7.1 source 8.8.9.1

 

To create a default route, simply set the destination address and subnet mask as 0.0.0.0.

R1# conf t
R1# ip route 0.0.0.0 0.0.0.0 8.8.9.2
R2# conf t
R2# ip route 0.0.0.0 0.0.0.0 8.8.8.1
Advertisements