IPv4 Static Routing
In this section:
- Overview of Static RoutingStatic routes are manually configured entries in the IP routing table.
- Configuring a basic IP static route
- Adding Metrics to a Static RouteYou can influence route preference by adding a cost metric or an administrative distance to a static route.
- Naming an IP static routeIPv4 static route names are optional and non-unique. You can give a group of static routes the same name to help identify them.
- Removing a name or a static route
- Configuring a physical interface as next hop
- Configuring a virtual interface as next hop
- Configuring a tunnel as next hop
- Configuring a static route for use with a route mapYou can configure a static route with a tag that can be referenced in a route map.
- Configuring a Null RouteYou can configure a null static route to drop packets to a certain destination. This is useful when the traffic should not be forwarded if the preferred route is unavailable.
- Configuring a default static routeYou can manually create a default static route that the router uses if there are no other default routes to a destination.
- Resolving a Static Route Using Other Static
RoutesYou can use next-hop recursive lookup to resolve a static route.
- Resolving the Next Hop Through a
ProtocolYou can use routes from a specific protocol to resolve a configured static route.
- Creating an IP Static Route in a Non-Default
VRFYou can configure an IP static route in a non-default VRF. If the VRF is not named, the default VRF is used.
- Inter-VRF Route Leaking Using Static
RoutesVRF route leaking between different VRFs allows you to share selective route information between different VRFs. Inter-VRF route leaking allows leaking of route prefixes from one VRF instance to another VRF instance on the same physical router, which eliminates the need for external routing. This is useful in cases where multiple VRFs share the same path to reach an external domain, while maintaining the internal routing information limited to an individual VRF.
- Static routes between VRFsYou can configure a static route next hop to be in a different VRF.
- Configuring Load Sharing and
RedundancyYou can configure multiple IP static routes to the same destination to set up load sharing or backup routes.
- Determining maximum static routesYou can modify the maximum number of static routes.
- Displaying IPv4 static routesYou can check configured IPv4 routes, static routes, directly connected routes, routes configured for different protocols, the cost associated with each route, and the time the route has been available.