12 ipv6 default-gateway, 12 ipv6 default-gateway -12 – PLANET WGSW-52040 User Manual

Page 401

Advertising
background image

23-12

IPv6 address prefix can not be multicast address or any other specific IPv6 address, and different layer 3 interfaces

can not 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

23.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

Advertising