ipv6 address
Syntax
ipv6 address <IPV6-ADDR>/<MASK>
no ipv6 address <IPV6-ADDR>/<MASK>
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.
The
no
form of this command deletes the local IP address assigned to an IPv6 to IPv4 tunnel.
Command context
config-ip-if
config-if
Parameters
<IPV6-ADDR>
Specifies the tunnel IP address in IPv6 format (
xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx
), wherex
is a hexadecimal number from 0 to F.<MASK>
Specifies the number of bits in the address mask in CIDR format (
x
), wherex
is 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 address 2001:DB8:5::1/64 for tunnel 8 for an IPv6 to IPv6 tunnel.
switch(config)# interface tunnel 8 mode ip 6in6 switch(config-ip-if)# ipv6 address 2001:DB8:5::1/64
Deletes the local IP address 2001:DB8::1/32 for tunnel 8.
switch(config)# interface tunnel 8 switch(config-ip-if)# no ipv6 address 2001:DB8:5::1/64