ip static-route
IP Commands
page 10-12
OmniSwitch CLI Reference Guide
March 2011
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|follows ip_address [metric metric]
no ip static-route ip_address [mask mask] gateway ip_address|follows 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.
follows
ip_address
The recursive static route follows this IP address. The recursive route
will use the same gateway/nexthop that is used to reach this host
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 10K
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
-> ip static-route 171.11.0.0 follows 192.168.10.1
parameter
default
metric
1
Содержание 060321-10, Rev. B
Страница 1: ...Part No 060321 10 Rev B March 2011 OmniSwitch CLI Reference Guide www alcatel lucent com...
Страница 36: ...Technical Support About This Guide page xxxvi OmniSwitch CLI Reference Guide March 2011...
Страница 108: ...show udld status port UDLD Commands page 2 22 OmniSwitch CLI Reference Guide March 2011...
Страница 142: ...show vlan members VLAN Management Commands page 4 16 OmniSwitch CLI Reference Guide March 2011...
Страница 324: ...show linkagg range Link Aggregation Commands page 6 66 OmniSwitch CLI Reference Guide March 2011...
Страница 418: ...show lldp remote system med 802 1AB Commands page 9 40 OmniSwitch CLI Reference Guide March 2011...
Страница 922: ...show ip ospf restart OSPF Commands page 17 88 OmniSwitch CLI Reference Guide March 2011...
Страница 968: ...show ipv6 ospf interface OSPFv3 Commands page 18 46 OmniSwitch CLI Reference Guide March 2011...
Страница 1258: ...show ip slb probes Server Load Balancing Commands page 20 50 OmniSwitch CLI Reference Guide March 2011...
Страница 1414: ...show ip dvmrp tunnel DVMRP Commands page 22 34 OmniSwitch CLI Reference Guide March 2011...
Страница 1535: ...PIM Commands show ipv6 pim groute OmniSwitch CLI Reference Guide March 2011 page 23 121 alaPimStarGIAssertWinnerMetric...
Страница 1540: ...show ipv6 pim sgroute PIM Commands page 23 126 OmniSwitch CLI Reference Guide March 2011...
Страница 1814: ...show policy validity period QoS Policy Commands page 26 174 OmniSwitch CLI Reference Guide March 2011...
Страница 1830: ...show policy server events Policy Server Commands page 27 16 OmniSwitch CLI Reference Guide March 2011...
Страница 1853: ...AAA Commands password OmniSwitch CLI Reference Guide March 2011 page 28 23 aaauPassword aaauOldPassword...
Страница 1877: ...AAA Commands show aaa accounting OmniSwitch CLI Reference Guide March 2011 page 28 47 aaacsName4...
Страница 1888: ...show aaa priv hexa AAA Commands page 28 58 OmniSwitch CLI Reference Guide March 2011...
Страница 1902: ...show port mapping Port Mapping Commands page 29 14 OmniSwitch CLI Reference Guide March 2011...
Страница 1942: ...show port monitoring file Port Mirroring and Monitoring Commands page 31 18 OmniSwitch CLI Reference Guide March 2011...
Страница 1960: ...show sflow poller sFlow Commands page 32 18 OmniSwitch CLI Reference Guide March 2011...
Страница 2014: ...show ethernet service sap profile VLAN Stacking Commands page 34 46 OmniSwitch CLI Reference Guide March 2011...
Страница 2114: ...show mac range alloc Chassis MAC Server CMS Commands page 39 8 OmniSwitch CLI Reference Guide March 2011...
Страница 2188: ...show command log status Session Management Commands page 41 36 OmniSwitch CLI Reference Guide March 2011...
Страница 2226: ...ftp File Management Commands page 42 38 OmniSwitch CLI Reference Guide March 2011...
Страница 2252: ...write terminal Configuration File Manager Commands page 44 18 OmniSwitch CLI Reference Guide March 2011...
Страница 2284: ...show snmp trap config SNMP Commands page 45 32 OmniSwitch CLI Reference Guide March 2011...
Страница 2294: ...show dns DNS Commands page 46 10 OmniSwitch CLI Reference Guide March 2011...
Страница 2350: ...OmniSwitch CLI Reference Guide March 2011 page 22 DNS Commands...