The peer label-route-capability command enables a BGP device to exchange labeled routes with a specified peer.
The undo peer label-route-capability command disables this function.
By default, this function is disabled.
Usage Scenario
The peer label-route-capability command is applicable to the scenario where labeled IPv4 routes need to be exchanged between the local end and the specified peer.
Configuring the check-tunnel-reachable parameter can only be used to check tunnels on IPv4 public networks.Prerequisites
The peer as-number command has been run to create a peer.
Configuration Impact
If the peer label-route-capability command is run multiple times, the latest configuration overwrites the previous one.
Precautions
When the capability of sending labeled routes is enabled or disabled, BGP connection is automatically closed and the capability of the neighbor is re-negotiated, and then the BGP connection is automatically established.
If the peer label-route-capability command is run in the IPv4 unicast address family view to enable the device to send labeled routes to a specified peer, the function takes effect only after the apply mpls-label command is run in the view of the export route-policy that is applied to routes to be sent to the peer. To configure a 6PE device to send labeled routes, specify an IPv4 unicast address for the peer of the device in the IPv6 unicast address family view.<HUAWEI> system-view [~HUAWEI] bgp 100 [*HUAWEI-bgp] peer 10.1.1.2 as-number 100 [*HUAWEI-bgp] ipv4-family unicast [*HUAWEI-bgp-af-ipv4] peer 10.1.1.2 label-route-capability check-tunnel-reachable
<HUAWEI> system-view [~HUAWEI] bgp 100 [*HUAWEI-bgp] peer 10.1.1.2 as-number 100 [*HUAWEI-bgp] ipv4-family unicast [*HUAWEI-bgp-af-ipv4] peer 10.1.1.2 label-route-capability