Mellanox MLNX-OS User Manual for SX1018HP Ethernet Managed Blade Switch

Rev 2.10
Mellanox Technologies
113
Mellanox Technologies Confidential
show ip/ipv6 default-gateway
show {ip | ipv6} default-gateway [static]
Displays the default gateway.
Syntax Description static Displays the static configuration of the default gateway.
Default N/A
Configuration Mode Any Command Mode
History 3.1.0000
Role admin
Example
switch (config) # ip default-gateway 10.10.10.10
switch (config) # show ip default-gateway
Active default gateways:
172.30.0.1 (interface: mgmt0)
switch (config) # show ip default-gateway static
Configured default gateway: 10.10.10.10
Related Commands show ip default-gateway
Note The configured IPv4 default gateway will not be used if DHCP is enabled.