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