367
peer label-route-capability
Use
peer label-route-capability
to enable BGP to exchange labeled routes with a peer or peer group.
Use
undo peer label-route-capability
to disable BGP from exchanging labeled routes with a peer or peer
group.
Syntax
peer
{
group-name
|
ip-address
}
label-route-capability
undo peer
{
group-name
|
ip-address
}
label-route-capability
Default
BGP cannot exchange labeled routes with a peer or peer group.
Views
BGP IPv4 unicast address family view, BGP-VPN IPv4 unicast address family view, BGP IPv6 unicast
address family view
Predefined user roles
network-admin
Parameters
group-name
: Specifies a peer group by its name, a case-sensitive string of 1 to 47 characters. The peer
group must have been created.
ip-address
: Specifies a peer by its IP address. The peer must have been created.
Usage guidelines
In an inter-AS VPN Option C network, you must execute the
peer label-route-capability
command in BGP
IPv4 unicast address family view/BGP-VPN IPv4 unicast address family view to enable the local router
and the peer to assign labels to BGP IPv4 routes and exchange the labeled routes for establishing the
inter-AS public network LSPs.
In a 6PE network, you must execute the
peer label-route-capability
command in BGP IPv6 unicast
address family view to enable the local router and the peer to assign labels to BGP IPv6 routes and
exchange the labeled routes for forwarding IPv6 packets over an IPv4 network.
Examples
# In BGP IPv4 unicast address family view, enable BGP to exchange labeled IPv4 routes with peer
2.2.2.2.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] address-family ipv4
[Sysname-bgp-ipv4] peer 2.2.2.2 label-route-capability
# In BGP-VPN IPv4 unicast address family view, enable BGP to exchange labeled IPv4 routes with peer
2.2.2.2.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ip vpn-instance vpn1
[Sysname-bgp-vpn1] address-family ipv4 unicast
[Sysname-bgp-ipv4-vpn1] peer 2.2.2.2 label-route-capability