< Home

ipv6 nd ra dns-suffix

Function

The ipv6 nd ra dns-suffix command sets a DNS suffix in RA packets.

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

By default, RA packets do not contain a DNS suffix.

Format

ipv6 nd ra dns-suffix domain-suffix [ valid-lifetime ]

undo ipv6 nd ra dns-suffix [ domain-suffix [ valid-lifetime ] ]

Parameters

Parameter Description Value
domain-suffix Specifies a DNS suffix.

The value is a string of 1 to 64 characters and can contain digits, letters, hyphens (-), underscores (_), and periods (.), but not spaces.

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

To allow a host use a DNS domain name with a suffix upon receipt of RA packets, run the ipv6 nd ra dns-suffix command to configure a DNS suffix for RA packets.

Prerequisites

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

Precautions

Only one DNS suffix can be configured for the RA packets transmitted on the same interface. If the ipv6 nd ra dns-suffix command is run more than once for the same interface, the latest configuration overrides the previous one.

Example

# Configure a DNS suffix 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-suffix huawei.com 1000
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >