mac
Commands for Layer 3 Management
272
Function: Configure aggregately global unicast address, site-local address and
link-local address for the interface.
Parameter: Parameter <ipv6-address> is the prefix of IPv6 address, parameter
<prefix-length> is the prefix length of IPv6 address, which is between 3-128, eui-64
means IPv6 address is generated automatically based on eui64 interface identifier of the
interface.
Command Mode: Interface Configuration Mode.
Default: None.
Usage Guide: IPv6 address prefix cannot be multicast address or any other specific
IPv6 address, and different layer 3 interfaces cannot configure the same address prefix.
For global unicast address, the length of the prefix must be greater than or equal to 3.
For site-local address and link-local address, the length of the prefix must be greater
than or equal to 10.
Example: Configure an IPv6 address on VLAN1 Layer 3 interface: the prefix is
2001:3f:ed8::99 and the length of the prefix is 64.
Switch(Config-if-Vlan1)#ipv6 address 2001:3f:ed8::99/64
21.2.12 ipv6 default-gateway
Command: ipv6 default-gateway <X:X::X:X>
no ipv6 default-gateway <X:X::X:X>
Function: Configure IPv6 default gateway of the router. The no command cancels the
configuration.
Parameter: < X:X::X:X > is IPv6 address of the gateway, for example 2002:100::1.
Default: Do not configure IPv6 default gateway of the router.
Command mode: Global mode.
Usage Guide: Configure IPv6 default gateway of the router to specify the default next hop
IPv6 address to which the packets will be sent.
Example:
Specify an IPv6 default gateway:
Switch(config)# ipv6 default-gateway 2002:100::1
Cancel the setting of IPv6 default gateway:
Switch(config)# no ipv6 default-gateway 2002:100::1
21.2.13 ipv6 route
This command is not supported by the switch.
21.2.14 ipv6 redirect










