CLI Guide

Table Of Contents
Switch Management Commands 2063
Default Configuration
There is no IPv6 address configured by default.
Command Mode
Interface Configuration mode (VLAN, tunnel, loopback)
User Guidelines
When setting the prefix length on an IPv6 address, no space can be present
between the address and the mask.
Multiple globally reachable addresses may be assigned to an interface.
Creation of a link local address is automatically performed by this command.
IPv6 addresses may be expressed in up to eight blocks. For simplification, the
leading zeros of each 16 bit block may be omitted. One sequence of 16 bit
blocks—containing only zeros—may be replaced by a double colon”::”, but
not more than one at a time.
Dropping zeros: 3ffe:ffff:100:f101:0:0:0:1 becomes 3ffe:ffff:100:f101:1
Local host: 0000:0000:0000:0000:0000:0000:0000:0001 becomes ::1
Any host: 0000:0000:0000:0000:0000:0000:0000:0000 becomes ::
The hexadecimal letters in IPv6 addresses are not case sensitive.
The optional eui64 parameter indicates that the IPv6 address is configured to
use the EUI-64 interface ID in the low order 64 bits of the address. If this
parameter is specified, the prefix-length must be 64.
Example
Configure IPv6 routing on vlan 10 and obtain an address via DHCP. Assumes
vlan 10 already exists.
console(config)#ip routing
console(config)#interface vlan 10
console(config-if-vlan10)#ipv6 enable
console(config-if-vlan10)#ipv6 address dhcp
Configure a default gateway on vlan 10
console(config)#no ipv6 address autoconfig
console(config)#no ipv6 address 2003::6/64
console(config)#no ipv6 address 2001::/64 eui64
console(config)#no ipv6 address