< Home

ipv6 nd ra dns-server

Function

The ipv6 nd ra dns-server command configures a DNS server address for RA packets.

The undo ipv6 nd ra dns-server command deletes the DNS server address configured for RA packets.

By default, RA packets do not contain a DNS server address.

Format

ipv6 nd ra dns-server ipv6-address [ valid-lifetime ]

undo ipv6 nd ra dns-server [ ipv6-address [ valid-lifetime ] ]

Parameters

Parameter Description Value
ipv6-address Specifies the IPv6 address of a DNS server.

The value consists of 128 octets, which are classified into 8 groups. Each group contains 4 hexadecimal numbers in the format X:X:X:X:X:X:X:X.

valid-lifetime Specifies a valid lifetime. The value is an integer ranging from 1 to 4294967295, in seconds. The default value is three times the maximum interval for advertising RA packets. The maximum interval for advertising RA packets can be configured using the ipv6 nd ra max-interval maximum-interval command.

Views

Interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

In a scenario where IPv6 ND stateless address auto-configuration is used or DHCPv6 is not configured, run the ipv6 nd ra dns-server command to configure a DNS server address for RA packets so that the host can implement the DNS service using the DNS server address in RA packets.

Prerequisites

The IPv6 function has been enabled on an interface using the ipv6 enable command in the interface view.

Precautions

A maximum of eight DNS server addresses can be configured for the RA packets transmitted on the same interface.

Example

# Configure a DNS server address for the RA packets transmitted on GE0/0/1.

<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] ipv6 enable
[HUAWEI-GigabitEthernet0/0/1] ipv6 nd ra dns-server 2001:db8:1::2 1000
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >