< Home

peer label-route-capability (BGP)

Function

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.

Format

peer { group-name | ipv4-address } label-route-capability [ check-tunnel-reachable ]

undo peer { group-name | ipv4-address } label-route-capability

Parameters

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. -

Views

BGP view, BGP-VPN instance IPv4 address family view, BGP-IPv4 unicast address family view, BGP-IPv6 unicast address family view

Default Level

2: Configuration level

Usage Guidelines

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.

Tunnel reachability checking can only be used to check tunnels on IPv4 public networks.
  • If tunnel reachability checking is enabled, BGP advertises IPv4 unicast routes to peers when routed tunnels are unreachable or advertises labeled routes to peers when routed tunnels are reachable. This eliminates the risk of establishing an MP-EBGP peer relationship between PEs over a faulty label switched path (LSP) because this will cause data forwarding failures.
  • If tunnel reachability checking is disabled, BGP advertises labeled routes to peers whether the tunnels for imported routes are reachable or not.

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.

Example

# 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
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >