peer check-tunnel-reachable (BGP-labeled VPN instance IPv4 address family view)

Function

The peer check-tunnel-reachable command enables a peer in a labeled address family to check the reachability of a tunnel between the BGP peers.

The undo peer check-tunnel-reachable command disables a peer in a labeled address family from checking the reachability of a tunnel between BGP peers.

By default, a peer in a labeled address family is not enabled to check the reachability of a tunnel between BGP peers.

Format

peer group-name check-tunnel-reachable

undo peer group-name check-tunnel-reachable

Parameters

Parameter Description Value
group-name

Specifies the name of a peer group.

The name is a string of 1 to 47 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.

check-tunnel-reachable

Checks the tunnel reachability before an imported route functions as a labeled route.

-

Views

BGP-labeled VPN instance IPv4 address family view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bgp write

Usage Guidelines

Usage Scenario

To enable a peer in a labeled address family to check reachability of a tunnel between the BGP peers, run the peer check-tunnel-reachable command.

Precautions

After the command is run, the device advertises the routes imported in the labeled address family to the specified peer only when the tunnel to the peer is up. There is no limit on the tunnel type.

Example

# Enable BGP to send labeled routes and check the reachability of the tunnel between BGP peer group.
<HUAWEI> system-view
[~HUAWEI] ip vpn-instance vpna
[*HUAWEI-vpn-instance-vpna] ipv4-family
[*HUAWEI-vpn-instance-vpna-af-ipv4] route-distinguisher 100:1
[*HUAWEI-vpn-instance-vpna-af-ipv4] quit
[*HUAWEI-vpn-instance-vpna] quit
[*HUAWEI] bgp 100
[*HUAWEI-bgp] vpn-instance vpna
[*HUAWEI-bgp-instance-vpna] group test
[*HUAWEI-bgp-instance-vpna] quit
[*HUAWEI-bgp] ipv4-labeled-unicast vpn-instance vpna
[*HUAWEI-bgp-labeled-vpna] peer test enable
[*HUAWEI-bgp-labeled-vpna] peer test check-tunnel-reachable
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >