DELL 8132 ユーザーズマニュアル
![DELL](https://files.manualsbrain.com/attachments/2e2ed634a275b6b98ad69257c58632e179ac1658/common/fit/150/50/0b94a25108df4a3b962d3b8aa65fc4eda1ead8e68832a26b3f5ed6aa6a0b/brand_logo.png)
IP Routing Commands
1063
ip route
Use the ip route command in Global Configuration mode to configure a
static route. Use the no form of the command to delete the static route. The
IP route command sets a value for the route preference. Among routes to the
same destination, the route with the lowest preference value is the route
entered into the forwarding database. Specifying the preference of a static
route controls whether a static route is more or less preferred than routes from
dynamic routing protocols. The preference also controls whether a static
route is more or less preferred than other static routes to the same
destination.
Syntax
ip route
ip addr {subnetmask | prefix length} nextHopRtr [preference]
no ip route
ip addr {subnetmask | prefix length} nextHopRtr [preference]
•
ip-address — IP address of destination interface.
•
subnet-mask — Subnet mask of destination interface.
•
prefix-length — Length of prefix. Must be preceded with a forward slash
(/). (Range: 0-32 bits)
•
nextHopRtr — IP address of the next hop router.
•
preference — Specifies the preference value, a.k.a. administrative distance,
of an individual static route. (Range: 1-255)
Default Configuration
Default value of preference is 1.
Command Mode
Global Configuration mode
User Guidelines
For the static routes to be visible, you must:
• Enable ip routing globally.
• Enable ip routing for the interface.
• Confirm that the associated link is also up.
• Enable ip routing for the interface.
• Confirm that the associated link is also up.
2CSPC4.X8100-SWUM102.book Page 1063 Friday, March 15, 2013 8:56 AM