ipv6 address

Syntax

ipv6 address/no ipv6 address/

Description

Sets the local IP address of an IPv6 to IPv4 tunnel or of an IPv6 to IPv6 tunnel. This address identifies the tunnel interface for routing. It must be on the same subnet as the tunnel address assigned on the remote device.

Thenoform of this command deletes the local IP address assigned to an IPv6 to IPv4 tunnel.

Command context

config-ip-if

config-if

Parameters

指定tunnel IP address in IPv6 format (xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx), wherexis a hexadecimal number from 0 to F.

Specifies the number of bits in the address mask in CIDR format (x), wherexis a decimal number from 0 to 32.

Authority

Administrators or local user group members with execution rights for this command.

Examples

Defines the local IP address2001:DB8:5::1/64for tunnel8for an IPv6 to IPv6 tunnel.

switch(config)#接口ip 6 in6隧道8模式switch(config-ip-if)#ipv6 address 2001:DB8:5::1/64

Deletes the local IP address2001:DB8::1/32for tunnel8.

switch(config)#interface tunnel 8switch(config-ip-if)#no ipv6 address 2001:DB8:5::1/64