The ip route recursive-lookup bgp-vpnv4-route enable command enables a static route to be iterated to a cross route on the remote VPN.
The ip route recursive-lookup bgp-vpnv4-route disable command disables a static route from being iterated to a cross route on the remote VPN.
The undo ip route recursive-lookup bgp-vpnv4-route disable command enables a static route to be iterated to a cross route on the remote VPN.
By default, a static route can be iterated to a cross route on the remote VPN.
Only the S5720-EI, S5720-HI, S5730-HI, S5731-H, S5731S-H, S5732-H, S6720-EI, S6720-HI, S6720S-EI, S6730S-H, and S6730-H support this command.
ip route recursive-lookup bgp-vpnv4-route { enable | disable }
undo ip route recursive-lookup bgp-vpnv4-route disable
Parameter | Description | Value |
---|---|---|
enable |
Enables a static route to be iterated to a cross route on the remote VPN. |
- |
disable |
Disables a static route from being iterated to a cross route on the remote VPN. |
- |
Usage Scenario
A static route needs to be iterated if its next hop is not directly reachable. You can run the ip route recursive-lookup bgp-vpnv4-route enable command to enable the static route to be iterated to a cross route on the remote VPN. The static route can then inherit the Label and Token information about the cross route. The device can forward data through the tunnel to which the static route is iterated.
Precautions
The ip route recursive-lookup bgp-vpnv4-route enable command and the undo ip route recursive-lookup bgp-vpnv4-route disable command have the same function and do not generate configurations in the configuration file.
This command allows IPv4 static routes to be iterated to VPN remote cross routes, not applicable to IPv6 static routes.
# Enable a static route to be iterated to a cross route on the remote VPN.
<HUAWEI> system-view
[HUAWEI] ip route recursive-lookup bgp-vpnv4-route enable
# Disable a static route from being iterated to a cross route on the remote VPN.
<HUAWEI> system-view
[HUAWEI] ip route recursive-lookup bgp-vpnv4-route disable
# Enable a static route to be iterated to a cross route on the remote VPN.
<HUAWEI> system-view
[HUAWEI] undo ip route recursive-lookup bgp-vpnv4-route disable