IPv6 Addressing Commands

This chapter contains the following sections:

ipv6 default-gateway

To define an IPv6 default gateway, use the ipv6 default-gateway Global Configuration mode command.

Syntax

ipv6 default-gateway ipv6-address

Parameters

ipv6-address—The IPv6 address of the next hop that can be used to reach the required network.

Default Configuration

No default gateway is defined.

Command Mode

Global Configuration mode

User Guidelines

Configuring a new default gateway without deleting the previous configured information overwrites the previous configuration.

A configured default gateway has a higher precedence over an automatically advertised by using a router advertisement message.

Precedence takes effect after the configured default gateway is reachable.

Reachability state is not verified automatically by the neighbor discovery protocol. Router reachability can be confirmed by either receiving a Router Advertisement message or containing the router's MAC address. Another option to force the reachability confirmation is to ping the router link-local address (this will initiate the neighbor discovery process).

If the egress interface is not specified, the default interface is selected. Specifying interface zone=0 is equal to not defining an egress interface.

Example

switchxxxxxx(config)# ipv6 default-gateway fe80::abcd

management vlan ipv6-address

To configure an IPv6 address for the management VLAN, use the management vlan ipv6-address Global Configuration mode command.

Syntax

management vlan ipv6-address ipv6-address prefix-length prefix-length

Parameters

ipv6-address—The IPv6 network assigned to the interface. This argument must be in the form documented in RFC 2373 where the address is specified in hexadecimal using 16-bit values between colons.

prefix-length prefix-length—Specifies the length of the IPv6 prefix. A decimal value that indicates how many of the high-order contiguous bits of the address comprise the prefix (the network portion of the address). (Range: 0 to 128)

Default Configuration

No IPv6 address is defined for the management VLAN.

Command Mode

Global Configuration mode

User Guidelines

If the value specified for the prefix-length argument is greater than 64 bits, the prefix bits have precedence over the interface ID.

Example

switchxxxxxx(config)# management vlan ipv6-address 3000::123 prefix-length  64

management vlan ipv6-address-autoconfig

To enable IPv6 address autoconfiguration on the switch, use the management vlan ipv6-address-autoconfig Global Configuration mode command. Addresses are configured depending on the prefixes received in the Router Advertisement messages.

To disable IPv6 address autoconfiguration on the switch, use the no form of this command.

Syntax

management vlan ipv6-address-autoconfig

no management vlan ipv6-address-autoconfig

Parameters

N/A

Default Configuration

IPv6 address autoconfiguration is enabled on the switch. No IPv6 address is assigned by default.

Command Mode

Global Configuration mode

User Guidelines

When IPv6 address autoconfiguration is enabled, the router solicitation ND procedure is initiated to discover a router and assign IP addresses to the switch, based on the advertised on-link prefixes.

When disabling IPv6 address autoconfiguration, automatically generated addresses that were assigned to the switch are removed.

The default state of IPv6 address autoconfiguration is enabled.

Example

switchxxxxxx(config)# management vlan ipv6-address-autoconfig

management vlan ipv6-address-dhcp

To acquire an IPv6 address on an interface from the DHCPv6 server, use the management vlan ipv6-address-dhcp Global Configuration mode command.

To remove the IPv6 address from the interface, use the no form of this command.

Syntax

management vlan ipv6-address-dhcp

no management vlan ipv6-address-dhcp

Parameters

N/A

Default Configuration

N/A

Command Mode

Global Configuration mode

User Guidelines

The management vlan ipv6-address-dhcp Global Configuration command allows the switch to dynamically learn its IPv6 address by using DHCP.

Example

switchxxxxxx(config)# management vlan ipv6-address-dhcp

show ipv6

To display the IPv6 configuration of the switch, use the show ipv6 Privileged EXEC mode command.

Syntax

show ipv6

Parameters

N/A

Default Configuration

N/A

Command Mode

Privileged EXEC mode

Example

switchxxxxxx# show ipv6
IPv6 DHCP Configuration     : Disabled
IPv6 DHCP DUID              :
IPv6 Auto Configuration     : Enabled
IPv6 Link Local Address     : fe80::2e36:f8ff:fe4b:e227/64
IPv6 static Address         : ::/0
IPv6 static Gateway Address : ::
IPv6 in use Address         : fe80::2e36:f8ff:fe4b:e227/64

show ipv6 dhcp

To display the IPv6 DHCP parameters configured on the switch, use the show ipv6 dhcp Privileged EXEC mode command.

Syntax

show ipv6 dhcp

Parameters

N/A

Command Mode

Privileged EXEC mode

Example

switchxxxxxx(config)# show ipv6 dhcp
DHCPv6 Status : enabled