Statically configuring a global unicast address

Syntax

[no] ipv6 address [network-prefix interface-id/prefix-length ]

Syntax

[no] ipv6 address [network-prefix::/prefix-length ] eui-64

If IPv6 is not already enabled on a VLAN, either of these command options do the following:

  • Enable IPv6 on the VLAN

  • Configure a link-local address using the EUI-64 format

  • Statically configure a global unicast address

If IPv6 is already enabled on the VLAN, the above commands statically configure a global unicast address, but have no effect on the current link-local address.

After verification of uniqueness by DAD, the lifetime of a statically configured IPv6 address assigned to a VLAN is set to permanent and is configured as a preferred address.

The [no] form of the command erases the specified address and, if no other IPv6-enabling command is configured on the VLAN, disables IPv6 on the VLAN.

network-prefix



This includes the global routing prefix and the subnet ID for the address.

interface-id



Enters a user-defined interface identity.

prefix-length



Specifies the number of bits in the network prefix. If you are using the eui-64 option, this value must be 64.

eui-64



Specifies using the EUI format to create an interface identifier based on the VLAN MAC address.

Viewing the currently configured static IPv6 addresses per-VLAN

To view the currently configured static IPv6 addresses per-VLAN, use show run commands.

Syntax

show ipv6

Lists IPv6 addresses for all VLANs configured on the switch.

Syntax

show ipv6 vlan vid

Lists IPv6 addresses configured on VLAN vid.

Syntax

show ipv6 tunnel tunnel-id

Lists IPv6 addresses configured on tunnel tunnel-id.

For more information, see Viewing the current IPv6 addressing configuration.