ipv6 gateway

Configures IPv6 gateway for the interfaces.

Syntax

ipv6 gateway A:B::C:D
no ipv6 gateway A:B::C:D

Parameters

A:B::C:D
Specifies the ipv6 gateway configuration.

Modes

Interface config mode

Usage Guidelines

This command is available only to users with admin role.

This command is supported on management interfaces.

Only valid unicast IP addresses are supported, multicast IP addresses are not supported.

The no ipv6 gateway command removes the IP gateway configured on the interface.

Table 1. Error messages
Invalid IP Address Ill-formed or invalid IPv6 address.

Examples

The following example configures ipv6 gateway.

device# configure terminal 
device(config)# interface management 0 
device(config-if-mgmt-0)# ipv6 gateway 2001:db8:fe::2

device# show running interface management 0 
interface management 0 
ipv6 gateway 2001:db8:fe::2 
shutdown 

device(config-if-mgmt-0)# ipv6 gateway ff00:0:0:0:0:0:0:0   
Error: Invalid IP Address