< Home

ipv6 address

Function

The ipv6 address command configures a global unicast address for an interface.

The undo ipv6 address command deletes all the configured address on the interface. If no IPv6 address or prefix length is specified in this command, this command, by default, deletes all the configured except the automatically configured link-local address.

Format

ipv6 address [ dhcpv6-pd-prefix-name ] { ipv6-address prefix-length | ipv6-address/prefix-length }

undo ipv6 address [dhcpv6-pd-prefix-name | ipv6-address prefix-length | ipv6-address/prefix-length ]

Parameters

Parameter Description Value

dhcpv6-pd-prefix-name

Specifies the IPv6 address prefix name of the DHCPv6 PD client.

The value is a string of 1 to 63 case-sensitive characters without spaces.

ipv6-address

Specifies the IPv6 address.

-

prefix-length

Specifies the prefix length.

It is an integer ranging from 1 to 128.

Views

Ethernet interface view, Eth-Trunk interface view, Tunnel interface view, Loopback interface view, BDIF interface view, Dialer interface view, or VLANIF interface view

Default Level

2: Configuration level

Usage Guidelines

A maximum of 10 global unicast address can be configured for one interface.

The IPv6 addresses that cannot be assigned to an interface include:
  • Loopback address (::1/128)
  • Unspecified address (::/128)
  • Multicast address

Example

# Configure a global unicast address for the GE interface.

<sysname> system-view
[sysname] interface GigabitEthernet 0/0/1
[sysname-GigabitEthernet 0/0/1] ipv6 enable
[sysname-GigabitEthernet 0/0/1] ipv6 address 2001::1/64
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >