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