Configuring the tcp template – H3C Technologies H3C S6300 Series Switches User Manual

Page 148

Advertising
background image

135

In DNS template view, you can specify the address expected to be returned. If the returned IP addresses

include the expected address, the DNS server is valid and the operation succeeds. Otherwise, the
operation fails.
Create a mapping between the domain name and an address before you perform the DNS operation.

For information about configuring the DNS server, see Layer 3—IP Services Configuration Guide.
To configure the DNS template:

Step Command

Remarks

1.

Enter system view.

system-view

N/A

2.

Create a DNS template and
enter DNS template view.

nqa template dns name N/A

3.

(Optional.) Specify the
destination IPv4 or IPv6

address of DNS packets.

IPv4 address:

destination ip ip-address

IPv6 address:

destination ipv6 ipv6-address

By default, no destination IP
address is specified.

4.

(Optional.) Configure the
destination port number for the

operation.

destination port port-number

By default, the destination port
number is 53.

5.

Specify the domain name that

needs to be translated.

resolve-target domain-name

By default, no domain name is
specified.

6.

Configure the domain name
resolution type.

resolve-type { A | AAAA }

By default, the type is type A.
A type A query resolves a
domain name to a mapped IPv4

address, and a type AAAA
query to a mapped IPv6 address.

7.

(Optional.) Specify the source
IPv4 or IPv6 address for the

probe packets.

IPv4 address:
source ip ip-address

IPv6 address:

source ipv6 ipv6-address

By default, no source IP address
is specified.
The 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.

8.

(Optional.) Configure the
source port for probe packets. source port port-number

By default, no source port
number is configured.

9.

(Optional.) Specify the IPv4 or

IPv6 address that is expected
to be returned.

IPv4 address:

expect ip ip-address

IPv6 address:

expect ipv6 ipv6-address

By default, no expected IP
address is specified.

Configuring the TCP template

A feature that uses the TCP template creates and starts the TCP operation to determine whether the NQA

client can establish a TCP connection to a specific interface on the server, and whether the service on the

interface of the server is available.
In TCP template view, you can specify the expected data to be returned. If you do not specify the
expected data, the TCP operation only tests whether the client can establish a TCP connection to the

server.

Advertising