ipv6 address

Configures the IPv6 address for the interfaces.

Syntax

ipv6 address A:B::C:D/M
no ipv6 address A:B::C:D/M
ipv6 address dhcp
no ipv6 address dhcp

Parameters

A:B::C:D/M
Specifies the IPv6 address configuration.
dhcp
Specifies the DHCP IPv6 address.

Modes

Interface config mode

Usage Guidelines

This command is available only to users with the admin role.

This command is supported on management interfaces.

Only valid unicast IP addresses are supported. Multicast IP addresses are not supported.

The command no ipv6 address removes the IPv6 address configured on the interface.

The command no ipv6 address dhcp removes the DHCP IPv6 address configured on the interface.

Examples

The following example configures the IPv6 address.

device# configure terminal 
device(config)# interface management 0 
device(config-if-mgmt-0)# ipv6 address 2001:db8:fe::100/120

device# show running interface management 0 
interface management 0 
ipv6 address 2001:db8:fe::100/120 
shutdown

The following example configures the DHCP IPv6 address.

device# configure terminal 
device(config)# interface management 0 
device(config-if-mgmt-0)# ipv6 address dhcp

device# show running interface management 0 
interface management 0 
ipv6 address dhcp 
shutdown