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

Page 97: Dhcp relay agent configuration examples, Dhcp relay agent configuration example

Advertising
background image

86

IPv6 DNS configuration examples

Static domain name resolution configuration example

Network requirements

As shown in

Figure 35

, the device wants to access the host by using an easy-to-remember domain name

rather than an IPv6 address. Configure static domain name resolution on the device so that the device
can use the domain name host.com to access the host whose IPv6 address is 1::2.

Figure 35 Network diagram

Configuration procedure

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

<Device> system-view

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

# Use the ping ipv6 host.com command to verify that the device can use static domain name resolution
to resolve domain name host.com into IPv6 address 1::2.

[Sysname] ping ipv6 host.com

Ping6(56 data bytes) 1::1 --> 1::2, press CTRL_C to break

56 bytes from 1::2, icmp_seq=0 hlim=128 time=1.000 ms

56 bytes from 1::2, icmp_seq=1 hlim=128 time=0.000 ms

56 bytes from 1::2, icmp_seq=2 hlim=128 time=1.000 ms

56 bytes from 1::2, icmp_seq=3 hlim=128 time=1.000 ms

56 bytes from 1::2, icmp_seq=4 hlim=128 time=0.000 ms

--- Ping6 statistics for host.com ---

5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss

round-trip min/avg/max/std-dev = 0.000/0.600/1.000/0.490 ms

Dynamic domain name resolution configuration example

Network requirements

As shown in

Figure 36

, the device wants to access the host by using an easy-to-remember domain name

rather than an IPv6 address. The IPv6 address of the DNS server is 2::2/64, and the server has a com
domain, which stores the mapping between domain name host and IPv6 address 1::1/64.
Configure dynamic domain name resolution and the domain name suffix com on the device that serves

as a DNS client so that the device can use domain name host to access the host with the domain name

host.com and the IPv6 address 1::1/64.

Advertising
This manual is related to the following products: