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.
ipv6 nd ra dns-server ipv6-address [ valid-lifetime ]
undo ipv6 nd ra dns-server [ ipv6-address [ valid-lifetime ] ]
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. |
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.