Thursday, September 3, 2015

How to configure Static Routes

Static Route can be configured by the following IOS commands. 
• Router(config)#ip route destination_network subnet_mask default_gateway [administrative_distance] [permanent]
OR
• Router(config)# ip route destination_network subnet_mask interface_to_exit [administrative_distance] [permanent]
The permanent keyword will keep the static route in the routing table even when the interface the router uses for the static route fails.




R1(config)#ip route 192.168.2.0 255.255.255.0 10.10.12.2
R1(config)#ip route 192.168.3.0 255.255.255.0 10.10.13.3

R2(config)#ip route 192.168.1.0 255.255.255.0 10.10.12.1
R2(config)#ip route 192.168.3.0 255.255.255.0 10.10.12.1

R3(config)#ip route 192.168.1.0 255.255.255.0 10.10.13.1
R2(config)#ip route 192.168.2.0 255.255.255.0 10.10.13.1

No comments:

Post a Comment