ipv6 default-gateway
ipv6 default-gateway {<ip-address> | <ifname>}
no ipv6 default-gateway
Sets a static default gateway.
The no form of the command deletes the default gateway.
Syntax Description
ip address
ifname
Default
N/A
Modes/Context
Config
History
3.1.0000
3.2.0500
Role
admin
Example
switch (config) # ip default-gateway ::1
switch (config) # show ip default-gateway static
Configured default gateways:
switch (config) #
Related Commands
show ip route
Note
•
•
::1
The configured default gateway will not be used if DHCP is enabled.
In order to configure ipv4 default-gateway use 'ip route' command.
The default gateway IP address (IPv4 or IPv6).
The interface name (e.g., mgmt0, mgmt1).
Initial version
removed IPv4 configuration option
Mellanox Technologies
Rev 1.6.2
50