Release : 1.1f 485 / 985
Super Micro Intelligent Switch Command Line Interface User Guide
18.3 ip route
This command adds a static route and the no form of the command deletes a static route.
ip route <prefix> <mask> {<next-hop> | Vlan <vlan-id (1-4069)> |
<interface-type> <interface-id> | null0 } [<distance (1-255)>] [
private ]
no ip route <prefix> <mask> { <next-hop> | Vlan <vlan-id(1-4069)> |
<interface-type> <interface-id> | null0 } [private]
Syntax Description
prefix - IP route prefix for the destination. (Destination IP address)
mask - Subnet mask for the destination
next-hop - IP address or IP alias of the next hop that can be used to reach that network
Vlan - VLAN ID
interface-type - Interface type, can either be a gi, ex or qx ethernet interfaces
interface-id - Physical interface ID including slot and port number
null0 – Null0 routes make the switch drop all the packets matching this route entry
distance - Administrative distance
private – Private routes are not distributed to other routers through routing protocols
Mode
Global Configuration Mode
Defaults
distance - 1
Example
SMIS(config)# ip route 30.0.0.2 255.255.255.255 Vlan 1
When the next-hop object is unknown or not relevant its value must be set to zero.
Physical Interface must be a router port.
Related Commands
show ip route – Displays the IP routing table
no switchport – Configures the port as a router port