Mellanox MLNX-OS®Command Reference Guide for SX1018HP Ethernet Managed Blade Switch

Rev 1.6.2
Mellanox Technologies
50
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 The default gateway IP address (IPv4 or IPv6).
ifname The interface name (e.g., mgmt0, mgmt1).
Default N/A
Modes/Context Config
History 3.1.0000 Initial version
3.2.0500 removed IPv4 configuration option
Role admin
Example
switch (config) # ip default-gateway ::1
switch (config) # show ip default-gateway static
Configured default gateways:
::1
switch (config) #
Related Commands show ip route
Note
The configured default gateway will not be used if DHCP is enabled.
In order to configure ipv4 default-gateway use ‘ip route’ command.