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

Rev 2.10
Mellanox Technologies
110
Mellanox Technologies Confidential
4.1.6.3 Routing
no ip route <network-prefix> <netmask> {<nexthop-address> | <ifname>}
Sets a static route for a given IP.
The no form of the command deletes the stati
c
route.
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 hop router for this
route.
ifname The interface name (e.g., mgmt0, mgmt1).
N/A
Config
3.1.0000
admin
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
show ip route
ip/ipv6 route
{ip | ipv6} route <network-prefix> <netmask> {<nexthop-address> | <ifname>}
Syntax Description
Default
Configuration Mode
History
Role
Example
Related Commands
Note