Configuring the ICMP template
A feature that uses the ICMP template performs the ICMP operation to measure the reachability of a destination device. The ICMP template is supported in both IPv4 and IPv6 networks.
To configure the ICMP template:
Step | Command | Remarks |
---|---|---|
1. Enter system view. | system-view | N/A |
2. Create an ICMP template and enter its view. | nqa template icmp name | By default, no ICMP templates exist. |
3. (Optional.) Specify the destination IP address of the operation. |
| By default, no destination IP address is configured. |
4. (Optional.) Set the payload size for each ICMP request. | data-size size | The default setting is 100 bytes. |
5. (Optional.) Specify the payload fill string for requests. | data-fill string | The default payload fill string is the hexadecimal string 00010203040506070809. |
6. (Optional.) Specify the source IP address for ICMP echo requests. |
| By default, the requests take the primary IP address of the output interface as their source IP address. If you execute the source interface, source ip, and source ipv6 commands multiple times, the most recent configuration takes effect. The specified source interface must be up. The specified source IP address must be the IP address of a local interface, and the interface must be up. Otherwise, no probe packets can be sent out. |
7. (Optional.) Specify the next hop IP address for ICMP echo requests. |
| By default, no IP address of the next hop is configured. |
8. (Optional.) Configure the probe result sending on a per-probe basis. | reaction trigger per-probe | By default, the probe result is sent to the feature that uses the template after three consecutive failed or successful probes. If you execute the reaction trigger per-probe and reaction trigger probe-pass commands multiple times, the most recent configuration takes effect. If you execute the reaction trigger per-probe and reaction trigger probe-fail commands multiple times, the most recent configuration takes effect. |