Alcatel-Lucent 6850-48 Reference Guide
IP Commands
OmniSwitch CLI Reference Guide
September 2009
page 32-11
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.
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.
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 6400, 6850, 6855, 9000, 9000E
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.
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.1; command was introduced.
parameter
default
metric
1