< Home

dns server ipv6 unnumbered

Function

The dns server ipv6 unnumbered command configures the device to use the IPv6 address of the DNS server obtained from a specified interface.

The undo dns server ipv6 unnumbered restores the default setting.

By default, the IPv6 address of the DNS server obtained from a specified interface cannot be directly used.

Format

dns server ipv6 unnumbered interface interface-type interface-number { dhcpv6 | nd-ra }

undo dns server ipv6 unnumbered interface interface-type interface-number { dhcpv6 | nd-ra }

Parameters

Parameter

Description

Value

interface interface-type interface-number
Specifies the interface from which the IPv6 address of the DNS server is obtained.
  • interface-type indicates the interface type.
  • interface-number indicates the interface number.

-

dhcpv6

Specifies DHCPv6 information of an interface from which the IPv6 address of the DNS server is obtained.

-

dn-ra Specifies ND information of an interface from which the IPv6 address of the DNS server is obtained.

-

Views

System view

Default Level

2: Configuration level

Usage Guidelines

The IPv6 address of the DNS server can be specified using a command and obtained from the DHCPv6 or ND messages. However, the IPv6 address of the DNS server obtained from the DHCPv6 or ND messages cannot be directly used, and you must run the dns server ipv6 unnumbered interface interface-type interface-number { dhcpv6 | nd-ra } command to specify the interface from which the IPv6 address of the DNS server is obtained, namely, to specify the interface functioning as the DHCPv6 client or the interface to be enabled with the RA packet advertisement function on the device. The IPv6 address of the DNS server obtained from the specified interface can be used by the device only after this command is run.

Example

# Configure the FW to obtain the IPv6 address of the DNS server from VLANIF100.

<sysname> system-view
[sysname] dns server ipv6 unnumbered interface vlanif 100
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >