The bestroute nexthop-resolved ip command configures the labeled routes that recurse to IP addresses to participate in route selection.
The bestroute nexthop-resolved tunnel command configures the labeled routes that recurse to LSPs to participate in route selection.
The undo bestroute nexthop-resolved command restores the default configuration.
By default, the unicast labeled routes whose next hops recurse to LSPs participate in route selection.
Parameter | Description | Value |
---|---|---|
ip |
Allows labeled routes that recurse to IP addresses to participate in route selection. |
- |
tunnel |
Allows labeled routes that recurse to LSPs to participate in route selection. |
- |
inherit-ip-cost |
Allows the labeled routes that recurse to IP addresses to inherit the cost values of corresponding IP routes during route selection. |
- |
Usage Scenario
In non-RR networking, or RR networking where the BGP next hop is changed, BGP needs to check whether there is an LSP destined for the next hop. If such an LSP is unavailable, BGP needs to establish one. If the default setting is adopted, a labeled BGP IPv4 unicast route may be selected prior to LSP establishment. As a result, services are incorrectly switched before LSP establishment, packet loss may occur, which affects service stability. The bestroute nexthop-resolved tunnel command can be run to allow route selection only after the labeled BGP IPv4 route recurses to an LSP.
In RR networking, if a router only transmits routing information and other routes forwards traffic, you can configure labeled BGP IPv6 unicast routes that recurse to IP addresses to participate in route selection. The bestroute nexthop-resolved command is not applied to the unlabeled routes in the IPv6 unicast address family. If the device is an ASBR, the optimal route must have recursed to an LSP; if load balancing or FRR is configured on the ASBR, the non-optimal routes must recurse to LSPs so that these routes can participate in load balancing or FRR. The bestroute nexthop-resolved tunnel command can be run to allow route selection only after the BGP VPNv4/6 routes recurse to LSPs. By default, BGP EVPN routes can participate in route selection only when their next hops recurse to IP addresses. Before an ASBR sends a preferred route, ensure that the next hop of the preferred route can recurse to an LSP. However, if load balancing or FRR is configured on an ASBR, non-preferred routes that are used for load balancing or FRR may not recurse to LSPs, causing load balancing or FRR to fail. To resolve this problem, enable only BGP EVPN routes whose next hops recurse to LSPs to participate in route selection.Configuration Impact
The bestroute nexthop-resolved ip command is mutually exclusive with the bestroute nexthop-resolved tunnel command.
The bestroute nexthop-resolved tunnel command is mutually exclusive with the bestroute nexthop-resolved tunnel inherit-ip-cost command.Precautions
By default, unicast labeled routes in the BGP-labeled address family can participate in route selection only when their next hops recurse to LSPs. Unicast non-labeled routes in the BGP-labeled address family can participate in route selection only when their next hops recurse to IP addresses. This command applies only to unicast labeled routes in the BGP-labeled address family.