Configuration procedure, Dns template configuration example, Network requirements – H3C Technologies H3C MSR 5600 User Manual
Page 68
55
Configuration procedure
# Assign each interface an IP address. (Details not shown.)
# Configure static routes or a routing protocol to make sure the devices can reach each other. (Details not
shown.)
# Create ICMP template icmp and specify 10.2.2.2 as the destination IP address.
[DeviceA] nqa template icmp icmp
[DeviceA-nqatplt-icmp-icmp] destination ip 10.2.2.2
# Set the probe timeout time for the ICMP operation to 500 milliseconds, and configure the operation to
repeat at an interval of 3000 milliseconds.
[DeviceA-nqatplt-icmp-icmp] probe timeout 500
[DeviceA-nqatplt-icmp-icmp] frequency 3000
# If the number of consecutive successful probes reaches 2, the operation succeeds.
[DeviceA-nqatplt-icmp-icmp] reaction trigger probe-pass 2
# If the number of consecutive probe failures reaches 2, the operation fails.
[DeviceA-nqatplt-icmp-icmp] reaction trigger probe-fail 2
DNS template configuration example
Network requirements
As shown in
, configure a DNS template for a feature to perform the DNS operation to test
whether Device A can translate the domain name host.com into an IP address through the DNS server.
Figure 21 Network diagram
Configuration procedure
# Assign each interface an IP address. (Details not shown.)
# Configure static routes or a routing protocol to make sure the devices can reach each other. (Details not
shown.)
# Create DNS template dns.
[DeviceA] nqa template dns dns
# Specify the IP address of the DNS server 10.2.2.2 as the destination address, the domain name to be
translated as host.com, the domain name resolution type as type A, and the expected IP address as
3.3.3.3.
[DeviceA-nqatplt-dns-dns] destination ip 10.2.2.2
[DeviceA-nqatplt-dns-dns] resolve-target host.com
[DeviceA-nqatplt-dns-dns] resolve-type A
[DeviceA-nqatplt-dns-dns] expect ip 3.3.3.3
# If the number of consecutive successful probes reaches 2, the operation succeeds.