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.
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] ipv4-labeled-unicast vpn-instance vpna [*HUAWEI-bgp-labeled-vpna] peer 10.1.1.1 enable [*HUAWEI-bgp-labeled-vpna] peer 10.1.1.1 check-tunnel-reachable