Ipv6 dns configuration examples, Network requirements, Configuration procedure – H3C Technologies H3C S7500E Series Switches User Manual

Page 104

Advertising
background image

10-3

To do…

Use the command…

Remarks

Clear the information of dynamic IPv6

domain name cache

reset dns ipv6 dynamic-host

Available in user view

IPv6 DNS Configuration Examples

Static Domain Name Resolution Configuration Example

Network requirements

As shown in

Figure 10-1

, static domain name resolution is configured on the Switch and thus the

Switch can use the domain name host.com to access the host whose IPv6 address is 1::2.

Figure 10-1 Network diagram for static domain name resolution

Configuration procedure

# Configure a mapping between host name host.com and IPv6 address 1::2.

<Switch> system-view

[Switch] ipv6 host host.com 1::2

# Enable IPv6 packet forwarding.

[Switch] ipv6

# Use the ping ipv6 host.com command to verify that the Switch can use static domain name

resolution to resolve domain name host.com into IPv6 address 1::2.

[Switch] ping ipv6 host.com

PING host.com (1::2):

56 data bytes, press CTRL_C to break

Reply from 1::2

bytes=56 Sequence=1 hop limit=128 time = 3 ms

Reply from 1::2

bytes=56 Sequence=2 hop limit=128 time = 1 ms

Reply from 1::2

bytes=56 Sequence=3 hop limit=128 time = 1 ms

Reply from 1::2

bytes=56 Sequence=4 hop limit=128 time = 2 ms

Reply from 1::2

bytes=56 Sequence=5 hop limit=128 time = 2 ms

--- host.com ping statistics ---

5 packet(s) transmitted

5 packet(s) received

0.00% packet loss

round-trip min/avg/max = 1/1/3 ms

Advertising