04-Layer 3 Command Reference

HomeSupportReference GuidesCommand ReferencesH3C Access Controllers Command References(E3703P61 R2509P61 R3709P61 R2609P61 R3509P61)-6W10204-Layer 3 Command Reference
06-IPv6 DNS Commands
Title Size Download
06-IPv6 DNS Commands 63.56 KB

IPv6 DNS configuration commands

display dns ipv6 server

Use display dns ipv6 server to display IPv6 DNS server information.

Syntax

display dns ipv6 server [ dynamic ] [ | { begin | exclude | include } regular-expression ]

Views

Any view

Default command level

1: Monitor level

Parameters

dynamic: Displays IPv6 DNS server information acquired dynamically through DHCP or other protocols.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Examples

# Display IPv6 DNS server information.

<Sysname> display dns ipv6 server

 Type:

  D:Dynamic    S:Static

 

DNS Server  Type  IPv6 Address                             (Interface Name)

    1       S     1::1

    2       S     FE80::1                                  Vlan999

Table 1 Command output

Field

Description

DNS Server

Sequence number.

Type

Type of the DNS server:

·     SA manually configured DNS server.

·     DA DNS server obtained dynamically through DHCP or other protocols.

IPv6 Address

IPv6 address of the DNS server.

Interface Name

Interface name, available only for a DNS server with an IPv6 link-local address configured.

 

display ipv6 host

Use display ipv6 host to display the mappings between host names and IPv6 addresses in the static domain name resolution table.

Syntax

display ipv6 host [ | { begin | exclude | include } regular-expression ]

Views

Any view

Default command level

1: Monitor level

Parameters

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Examples

# Display the mappings between host names and IPv6 addresses in the static domain name resolution table.

<Sysname> display ipv6 host

Host                 Age           Flags           IPv6Address

aaa                  0             static           2002::1

bbb                  0             static           2002::2

Table 2 Command output

Field

Description

Host

Host name.

Age

Time for the entry to live. 0 is displayed in the case of static configuration.

Flags

Mapping type. Static indicates a static mapping.

IPv6Address

IPv6 address of a host.

 

Related commands

ipv6 host

dns server ipv6

Use dns server ipv6 to specify a DNS server.

Use undo dns server ipv6 to remove the specified DNS server.

Syntax

dns server ipv6 ipv6-address [ interface-type interface-number ]

undo dns server ipv6 ipv6-address [ interface-type interface-number ]

Default

No DNS server is configured.

Views

System view

Default command level

2: System level

Parameters

ipv6-address: Specifies the IPv6 address of a DNS server.

interface-type interface-number: Specifies an interface. When the IPv6 address of the DNS server is a link-local address, the two arguments must be specified.

Usage guidelines

You can configure a maximum of six DNS servers, including those with IPv4 addresses.

Examples

# Specify a DNS server at 2002::1.

<Sysname> system-view

[Sysname] dns server ipv6 2002::1

ipv6 host

Use ipv6 host to configure a mapping between a host name and an IPv6 address.

Use undo ipv6 host to remove a mapping between a host name and an IPv6 address.

Syntax

ipv6 host hostname ipv6-address

undo ipv6 host hostname [ ipv6-address ]

Default

No mappings are created.

Views

System view

Default command level

2: System level

Parameters

hostname: Specifies the host name, a string of up to 255 characters. The character string can contain letters, numbers, underscores (_), hyphens (-), or dots (.), and must contain at least one letter.

ipv6-address: Specifies the IPv6 address.

Usage guidelines

Each host name can correspond to only one IPv6 address. If you use the command multiple times, the most recent configuration takes effect.

Examples

# Configure the mapping between a host name and an IPv6 address.

<Sysname> system-view

[Sysname] ipv6 host aaa 2001::1

Related commands

display ipv6 host

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Intelligent Storage
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
  • Technical Blogs
All Support
  • Become A Partner
  • Partner Policy & Program
  • Global Learning
  • Partner Sales Resources
  • Partner Business Management
  • Service Business
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网