The destination protocol command adds detection nodes for health check.
The undo destination protocol command deletes detection nodes of health check.
destination ip-address [ interface interface-type interface-number [ next-hop next-hop-ip-address ] ] protocol { icmp | { dns | http | radius } [ destination-port port-number ] | { tcp | tcp-simple } destination-port port-number }
destination ipv6-address [ interface interface-type interface-number [ next-hop next-hop-ipv6-address ] ] protocol icmp6
undo destination ip-address [ interface interface-type interface-number [ next-hop next-hop-ip-address ] ] protocol { icmp | { dns | http | radius } [ destination-port port-number ] | { tcp | tcp-simple } destination-port port-number }
undo destination ipv6-address [ interface interface-type interface-number [ next-hop next-hop-ipv6-address ] ] protocol icmp6
| Parameter | Description | Value |
|---|---|---|
| ip-address | Specifies the destination IP address for health check. |
- |
| ipv6-address | Specifies the destination IPv6 address for health check. |
- |
| interface-type interface-number | Specifies an interface type and interface number. Probe packets are sent from the interface specified by the parameter. |
- |
| next-hop next-hop-ip-address | Specifies a next-hop IPv4 address. |
- |
| next-hop next-hop-ipv6-address | Specifies a next-hop IPv6 address. |
- |
| icmp | Sends ICMP probe packets. |
- |
| dns | Sends DNS probe packets. |
- |
| http | Sends HTTP probe packets. |
- |
| radius | Sends RADIUS probe packets. |
- |
| port-number | Specifies the destination port number for health check. |
The value is an integer ranging from 1 to 65535. |
| tcp | Sends TCP probe packets. |
- |
| tcp-simple | Indicates that TCP packets are used to check network connectivity. A link is considered available upon the reply to the first detection packet by the destination device, not completion of the three-way handshake. |
- |
| icmp6 | Sends ICMPv6 probe packets. |
- |
A detection node is the device on the other end of a link. Use appropriate protocols for probe packets based on service types of the devices.
To apply health check on an interface, you must use the interface interface-type interface-number parameter to set the interface as the outbound interface of health detection packets when adding a health detection node.
A maximum of 16 detection nodes can be added to a health check task.
When configuring the protocol and port for health check, ensure that the protocol and port have been enabled on the peer. Otherwise, the check will fail. If the peer is a network device, ICMP is recommended.
# Add a detection node for health check hchk1, and set the destination address to 10.1.1.10, port number to 10020, probe protocol to tcp-simple, and outbound interface to GigabitEthernet 0/0/2.
<sysname> system-view
[sysname] healthcheck name hchk1
[sysname-healthcheck-hchk1] destination 10.1.1.10 interface GigabitEthernet 0/0/2 protocol tcp-simple destination-port 10020