ipv6 default-gateway

Configures the IPv6 address of the default gateway.

Syntax

ipv6 default-gateway ipv6-address
no ipv6 default-gateway

Parameters

ipv6-address
The IPv6 address of the default gateway.

Modes

Global configuration mode

Usage Guidelines

A device should have an IPv6 default gateway, for the following reasons:
  • Although IPv6 discovers neighbors and routes dynamically, in some cases Router Advertisement (RA) and Router Solicitation (RS) operations are disabled and a default gateway is required to send traffic.
  • Management devices (for example, TFTP servers, Telnet or SSH clients) are not members of the same subnet as the management IPv6 address.

If a management VLAN is not configured, the device can have only one IPv6 default gateway in the global configuration.

NOTE
If a management VLAN is configured (by means of the default-ipv6-gateway command in VLAN configuration mode), the device can have a maximum of 5 IPv6 default gateways with a metric (1 through 5) under the management VLAN.

Configured gateway addresses and the default gateway address must be in same subnet.

Use the no form of the command to remove the IPv6 address and disable the default gateway.

Examples

The following example configures the IPv6 address of the IPv6 default gateway without a management VLAN configuration.

device# configure terminal
device(config)# ipv6 default-gateway 2001:DB8::/32

The following example removes and disables the IPv6 default gateway.

device(config)# no ipv6 default-gateway 2001:DB8::/32

History

Release version Command history
8.0.50 This command was introduced.