ipv6 address

Syntax

ipv6 address 
没有ipv6地址< global-unicast-address >

Description

Sets a global unicast address on the interface.

The没有form of this command removes the global unicast address on the interface.

NOTE:

This command automatically creates an IPv6 link-local address on the interface. However, it does not add theipv6 address link-localcommand to the running configuration. If you remove the IPv6 address, the link-local address is also removed. To maintain the link-local address, you must manually execute theipv6 address link-localcommand.

Command context

config-if

Authority

Operators or Administrators or local user group members with execution rights for this command. Operators can execute this command from the operator context (>) only.

Example

Enabling a global unicast address:

switch(config)#interface 1/1/1switch(config-if)#ipv6 address 3731:54:65fe:2::a7

Disabling a global unicast address:

switch(config)#interface 1/1/1switch(config-if)#没有ipv6 address 3731:54:65fe:2::a7