ipv6 address

Configures an IPv6 address for an interface.
Syntax
ipv6 address ipv6-prefix [ anycast | eui-64 ]
no ipv6 address ipv6-prefix [ anycast | eui-64 ]
ipv6 address ipv6-address link-local
no ipv6 address ipv6-address link-local
Command Default

An IPv6 address is not configured.

Parameters
ipv6-prefix
Specifies the IPv6 prefix address in the format X:X::X:X/M.
anycast
Configuresan 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.
ipv6-address
Specifies the IPv6 address.
link-local
Configures the address as a link-local address.
Modes

Interface configuration mode

Usage Guidelines

The eui-64 keyword is not available when assigning a 127-bit subnet mask to an IPv6 address.

The no form of the command removes the IPv6 address.

Examples

The following example configures an IPv6 address for the tunnel interface.

device# configure terminal
device(config)# interface tunnel 1
device(config-tnif-1)# ipv6 address 2001:DB8:384d:34::/64 eui-64

The following example assigns a 127-bit subnet mask to an IPv6 address on two devices.

device1# configure terminal
device1(config)# interface ethernet 1/1/5
device1(config-if-e1000-1/1/5)# ipv6 address 2001:1::0/127 

device2# configure terminal
device2(config)# interface ethernet 1/1/5
device2(config-if-e1000-1/1/5)# ipv6 address 2001:1::1/127
History
Release version Command history
08.0.92a Support was added for 127-bit subnet masks.