By default, non-labeled public BGP routes can recurse to outbound interfaces and next hops, but not to LSPs. You can configure the system to be able to recurse non-labeled public BGP routes to LSPs.
If an Internet user uses a carrier network that performs IP forwarding to access the Internet, core carrier devices on the forwarding path need to learn many Internet routes. This imposes a heavy load on core carrier devices and affects their performance. To solve this problem, configure the corresponding access device to be able to recurse non-labeled public BGP routes to LSPs, so that packets can be forwarded over a tunnel. This configuration frees core carrier devices from learning Internet routes, saving their routing table entries and CPU resources.
Before configuring the device to be able to recurse non-labeled public BGP routes to LSPs, complete the following tasks:
Configure the routing protocol or static routes.
Establish an MPLS LSP, BGP LSP, or MPLS local IfNet tunnel.
Configure an IP prefix list, tunnel selector or tunnel policy to allow only desired non-labeled public BGP routes to recurse to the LSP.
Run system-view
The system view is displayed.
Run route recursive-lookup tunnel [ ip-prefix ip-prefix-name ] [ tunnel-policy policy-name ]
The system is configured to be able to recurse non-labeled public BGP routes and static routes to LSPs for MPLS forwarding.
LDP LSP: Non-labeled public BGP routes and static routes can recurse to LDP LSPs, supporting the bearer of unicast and multicast services.
BGP LSP: Non-labeled public BGP routes and static routes can recurse to BGP LSPs, supporting the bearer of unicast services but not multicast services.
MPLS local IfNet tunnel: Only non-labeled public BGP routes can recurse to MPLS local IfNet tunnels, supporting the bearer of unicast and multicast services.
If neither ip-prefix ip-prefix-name or tunnel-policy policy-name is specified, all static routes and non-labeled public BGP routes preferentially recurse to LSPs.
Run commit
The configuration is committed.
Run system-view
The system view is displayed.
Run ip route-static recursive-lookup tunnel [ ip-prefix ip-prefix-name ] [ tunnel-policy policy-name ]
The system is configured to be able to recurse static routes to LSPs for MPLS forwarding.
Run commit
The configuration is committed.
Run system-view
The system view is displayed.
Run bgp { as-number-plain | as-number-dot }
The BGP view is displayed.
Run unicast-route recursive-lookup tunnel [ tunnel-selector tunnel-selector-name ]
The system is configured to be able to recurse non-labeled public BGP routes to LSPs for MPLS forwarding.
Run commit
The configuration is committed.
The ip route-static recursive-lookup tunnel and unicast-route recursive-lookup tunnel commands are mutually exclusive with the route recursive-lookup tunnel command. The ip route-static recursive-lookup tunnel and unicast-route recursive-lookup tunnel commands are not mutually exclusive.
After configuring the system to be able to recurse non-labeled public BGP routes to LSPs, run the display bgp routing-table network command to view route recursion information.