Associating Track with static routing
A static route is a manually configured route to route packets. For more information about static route configuration, see Layer 3—IP Routing Configuration Guide.
Static routes cannot adapt to network topology changes. Link failures or network topological changes can make the routes unreachable and cause communication interruption.
To resolve this problem, configure another route to back up the static route. When the static route is reachable, packets are forwarded through the static route. When the static route is unreachable, packets are forwarded through the backup route.
To check the accessibility of a static route in real time, associate the Track module with the static route.
If you specify the next hop but not the output interface when configuring a static route, you can configure the static routing-Track-detection module collaboration. This collaboration enables you to verify the accessibility of the static route based on the track entry state.
If the track entry is in positive state, the following conditions exist:
The next hop of the static route is reachable.
The configured static route is valid.
If the track entry is in negative state, the following conditions exist:
The next hop of the static route is not reachable.
The configured static route is invalid.
If the track entry is in NotReady state, the following conditions exist:
The accessibility of the next hop of the static route is unknown.
The static route is valid.
When you associate Track with static routing, follow these restrictions and guidelines:
In static routing-Track-NQA collaboration, you must configure the same VPN instance name for the NQA operation and the next hop of the static route. Otherwise, the accessibility detection cannot operate correctly.
If a static route needs route recursion, the associated track entry must monitor the next hop of the recursive route. The next hop of the static route cannot be monitored. Otherwise, a valid route might be considered invalid.
To associate Track with static routing:
Step | Command | Remarks |
---|---|---|
1. Enter system view. | system-view | N/A |
2. Associate a static route with a track entry to check the accessibility of the next hop. |
| By default, Track is not associated with static routing. |