HP Mellanox SX1018 Mellanox MLNX-OS®Command Reference Guide for SX101 - Page 50
Routing, ip/ipv6 route, Routing
View all HP Mellanox SX1018 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 50 highlights
Rev 1.6.9 2.1.3 Routing ip/ipv6 route {ip | ipv6} route { | } no ip route { | } Sets a static route for a given IP. The no form of the command deletes the static route. 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 hop router for this route. ifname The interface name (e.g., mgmt0, mgmt1). Default N/A Configuration Mode 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 default 0.0.0.0 172.30.0.1 mgmt0 10.10.10.10 255.255.255.255 0.0.0.0 mgmt0 20.10.10.10 255.255.255.255 172.30.0.1 mgmt0 20.20.20.0 255.255.255.0 0.0.0.0 mgmt0 172.30.0.0 255.255.0.0 0.0.0.0 mgmt0 Source DHCP static static static interface Related Commands show ip route Note Mellanox Technologies 50 Mellanox® Technologies Confidential