
IP Commands
OmniSwitch 6250 CLI Reference Guide
November 2009
page 29-9
ip static-route
Creates/deletes an IP static route. Static routes are user-defined; they carry a higher priority than routes
created by dynamic routing protocols. That is, static routes always have priority over dynamic routes,
regardless of the metric value.
ip static-route ip_address [mask mask] gateway gateway [metric metric]
no ip static-route ip_address [mask mask] gateway ip_address [metric metric]
Syntax Definitions
ip_address
Destination IP address of the static route.
mask
Subnet mask corresponding to the destination IP address.
gateway ip_address
IP address of the next hop used to reach the destination IP address.
metric
Metric or cost (hop count) for the static route. You can set a priority for
the static route by assigning a metric value. The lower the metric value,
the higher the priority. Valid range is 1–15.
Defaults
Platforms Supported
OmniSwitch 6250
Usage Guidelines
•
Static routes do not age out of the routing tables; however, they can be deleted. Use the
no
form of this
command to delete a static route.
•
A static route is not active unless the gateway it is using is active.
•
The subnet mask is not required if you want to use the natural subnet mask. By default, the switch
imposes a natural mask on the IP address.
•
Use the
ip static-route
command to configure default route. For example, to create a default route
through gateway 171.11.2.1, you would enter:
ip static-route
0.0.0.0
mask
0.0.0.0
gateway
171.11.2.1.
Examples
-> ip static-route 171.11.1.1 gateway 171.11.2.1
-> ip static-route 0.0.0.0 mask 0.0.0.0 gateway 171.11.2.1
Release History
Release 6.6.1; command was introduced.
parameter
default
metric
1
Summary of Contents for OmniSwitch 6250
Page 140: ...Power over Ethernet PoE Commands page 4 18 OmniSwitch 6250 CLI Reference Guide November 2009...
Page 212: ...Session Management Commands page 6 52 OmniSwitch 6250 CLI Reference Guide November 2009...
Page 270: ...File Management Commands page 7 58 OmniSwitch 6250 CLI Reference Guide November 2009...
Page 280: ...Web Management Commands page 8 10 OmniSwitch 6250 CLI Reference Guide November 2009...
Page 328: ...SNMP Commands page 10 32 OmniSwitch 6250 CLI Reference Guide November 2009...
Page 338: ...DNS Commands page 11 10 OmniSwitch 6250 CLI Reference Guide November 2009...
Page 392: ...Link Aggregation Commands page 12 54 OmniSwitch 6250 CLI Reference Guide November 2009...
Page 440: ...802 1Q Commands page 15 8 OmniSwitch 6250 CLI Reference Guide November 2009...
Page 628: ...Loopback Detection Commands page 17 12 OmniSwitch 6250 CLI Reference Guide November 2009...
Page 768: ...Ethernet Port Commands page 20 96 OmniSwitch 6250 CLI Reference Guide November 2009...
Page 826: ...VLAN Management Commands page 22 26 OmniSwitch 6250 CLI Reference Guide November 2009...
Page 968: ...Ethernet OAM Commands page 25 56 OmniSwitch 6250 CLI Reference Guide November 2009...
Page 1014: ...LINK OAM Commands page 26 46 OmniSwitch 6250 CLI Reference Guide November 2009...
Page 1036: ...UDLD Commands page 27 22 OmniSwitch 6250 CLI Reference Guide November 2009...
Page 1048: ...Port Mapping Commands page 28 12 OmniSwitch 6250 CLI Reference Guide November 2009...
Page 1256: ...IPv6 Commands page 30 90 OmniSwitch 6250 CLI Reference Guide November 2009...
Page 1276: ...RDP Commands page 31 20 OmniSwitch 6250 CLI Reference Guide November 2009...
Page 1372: ...RIP Commands page 33 32 OmniSwitch 6250 CLI Reference Guide November 2009...
Page 1702: ...QoS Policy Commands page 39 206 OmniSwitch CLI Reference Guide November 2009...
Page 1718: ...Policy Server Commands page 40 16 OmniSwitch 6250 CLI Reference Guide November 2009...
Page 2018: ...Index Index 6 OmniSwitch 6250 CLI Reference Guide November 2009...