ipv6 address

Configure an IPv6 address for an interface.

Syntax

ipv6 address pv6-prefix//prefix-length [ secondary ] [ anycast | eui-64 ]
no ipv6 address pv6-prefix//prefix-length [ secondary ] [ anycast | eui-64 ]
ipv6 address ipv6-address link-local
no ipv6 address ipv6-address link-local

Parameters

ipv6-address
Specifies the IPv6 address.
ipv6-prefix
Specifies the IPv6 prefix address in this format: X:X::X:X/M.
prefix-length
A decimal value specifying the length of the IPv6 prefix.
secondary

Specifies that the address is a secondary address. A maximum of 256 secondary addresses can be configured.

anycast
Configures an address as an anycast address.
eui-64
Configures the global address with an EUI-64 interface ID in the low-order 64 bits. The interface ID is automatically constructed in IEEE EUI-64 format using the interface's MAC address.

Modes

Interface configuration mode

Port-channel configuration mode

Usage Guidelines

A secondary address cannot be configured on an interface unless the primary address is configured first.

The primary address cannot be deleted on an interface unless the secondary addresses are deleted first.

This command is not supported on loopback or management interfaces.

Examples

This example shows how to configure a primary, secondary global, or unique local IPv6 unicast address, including a manually configured interface ID:

device(config)# configure terminal
device(config)# interface ethernet 3/1
device(conf-if-eth-2/3)# ipv6 address 2001:db8:12d:1300:240z:d0ff:fe48:4672/64

This example shows how to remove the IPv6 unicast address, including a manually configured interface ID from an interface:

device(conf-if-eth-2/3)# no ipv6 address 2001:db8:12d:1300:240z:d0ff:fe48:4672/64