How to configure Static Routes
A static route is a route that is created manually by a network administrator. Static routes are typically used in smaller networks.
Static Route can be configured by the following 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.
How to configure Default Routes
A default route is a special type of static route. Where a static route specifies a path a router should use to reach a specific destination, a default route specifies a path the router should use if it doesn’t know how to reach the destination.
• Router(config)#ip route 0.0.0.0 0.0.0.0 default_gateway [administrative_distance] [permanent]
OR
• Router(config)# ip route 0.0.0.0 0.0.0.0 interface_to_exit [administrative_distance] [permanent]
|