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

Rev 1.6.2
Mellanox Technologies
49
Syntax Description network-prefix IPv4 or IPv6 network prefix.
netmask IPv4 netmask formats are:
/24
255.255.255.0
IPv6 netmask format is:
/48 (as a part of the network prefix)
nexthop-address The IPv4 or IPv6 address of the next hope router for
this route.
ifname The interface name (e.g., mgmt0, mgmt1).
Default N/A
Modes/Context Config
History 3.1.0000
Role admin
Example
switch (config) # ip route 20.20.20.0 255.255.255.0 mgmt0
switch (config) # show ip route
Destination Mask Gateway Interface Source
default 0.0.0.0 172.30.0.1 mgmt0 DHCP
10.10.10.10 255.255.255.255 0.0.0.0 mgmt0 static
20.10.10.10 255.255.255.255 172.30.0.1 mgmt0 static
20.20.20.0 255.255.255.0 0.0.0.0 mgmt0 static
172.30.0.0 255.255.0.0 0.0.0.0 mgmt0 interface
Related Commands show ip route
Note