2.1.15. ipv6 address

Syntax

ipv6 address X:X::X:X prefix <0-128>

Parameter


address X:X::X:X Specify IPv6 address for switch

prefix <0-128> Specify IPv6 prefix length for switch


Default

No default ipv6 address on the switch.

Mode

Global Configuration

Usage

Use ipv6 address command to specify static IPv6 address.

Example

This example shows how to add static ipv6 address of the switch.

Switch(config)# ipv6 address fe80::20e:2eff:fef1:4b3c prefix 128

This example shows how to show current ipv6 address of the switch.

Switch# show ipv6
IPv6 DHCP Configuration : Disabled
IPv6 DHCP DUID :
IPv6 Auto Configuration : Enabled
IPv6 Link Local Address : fe80::dcad:beff:feef:102/64
IPv6 static Address : fe80::20e:2eff:fef1:4b3c/128
IPv6 static Gateway Address : :
IPv6 in use Address : fe80::dcad:beff:feef:102/64
IPv6 in use Gateway Address : :