The peer label-route-capability command enables BGP to send labeled routes to the specified peer or the peer group.
The undo peer label-route-capability command disables this function.
By default, this function is disabled.
peer { group-name | ipv4-address } label-route-capability [ check-tunnel-reachable ]
undo peer { group-name | ipv4-address } label-route-capability
| Parameter | Description | Value |
|---|---|---|
| group-name | Specifies the name of the peer group. | The name is a string of 1 to 47 characters without any space. It is case-sensitive. |
| ipv4-address | Specifies the IPv4 address of the peer. | - |
| check-tunnel-reachable | Checks tunnel reachability when imported routes are sent as labeled routes. | - |
BGP view, BGP-VPN instance IPv4 address family view, BGP-IPv4 unicast address family view, BGP-IPv6 unicast address family view
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.
In the BGP-IPv6 unicast address family view, only ipv4-address is supported.
To configure IPv6 provider edge (6PE), specify the peer as an IPv4 unicast address in the IPv6 unicast address family view.
To disable tunnel reachability checking, run the peer { group-name | ipv4-address } label-route-capability command, not the undo peer label-route-capability command.
Before you run the peer label-route-capability command, the peer as-number command should be used to create a peer or peer group.
# Enable BGP to send the labeled routes.
<sysname> system-view
[sysname] bgp 100
[sysname-bgp] peer 1.1.1.2 as-number 100
[sysname-bgp] ipv4-family unicast
[sysname-bgp-af-ipv4] peer 1.1.1.2 label-route-capability
# Enable BGP IPv6 to send the labeled routes.
<sysname> system-view
[sysname] bgp 100
[sysname-bgp] peer 1.1.1.2 as-number 100
[sysname-bgp] ipv6-family unicast
[sysname-bgp-af-ipv6] peer 1.1.1.2 enable
[sysname-bgp-af-ipv6] peer 1.1.1.2 label-route-capability
# Enable BGP to send labeled routes, and enable tunnel reachability checking.
<sysname> system-view
[sysname] bgp 100
[sysname-bgp] peer 1.1.1.2 as-number 100
[sysname-bgp] ipv4-family unicast
[sysname-bgp-af-ipv4] peer 1.1.1.2 label-route-capability check-tunnel-reachable