IP Routing Commands 971ip routeUse the ip route command in Global Configuration mode to configure astatic route. Use the no form of the command to delete the static route. TheIP route command sets a value for the route preference. Among routes to thesame destination, the route with the lowest preference value is the routeentered into the forwarding database. Specifying the preference of a staticroute controls whether a static route is more or less preferred than routes fromdynamic routing protocols. The preference also controls whether a staticroute is more or less preferred than other static routes to the samedestination.Syntaxip routeip addr {subnetmask |prefix length }nextHopRtr [preference ]no ip routeip 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 ConfigurationDefault value of preference is 1.Command ModeGlobal Configuration modeUser GuidelinesFor 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.