IP CLI Commands
2/1553-ZAT 759 94 Uen B – December 2005
301
12.42
ip set route cost
12.42.1 Syntax
ip set route {<name>|<number>} cost <cost>
12.42.2 Description
This command sets the number of hops counted as the cost of the route for a
route previously created using the
ip add route
command.
12.42.3 Options
The following table gives the range of values for each option which can be
specified with this command and a default value (if applicable).
Option Description
Default
value
name
A name that identifies an existing
route. To display route names, use the
ip list routes
command.
N/A
number
A number that identifies an existing
route. To display route numbers, use
the
ip list routes
command. The
number appears in the first column
under the heading ID.
N/A
cost
The number of hops counted as the
cost of the route. This may affect the
choice of route when the route is
competing with routes acquired from
RIP. (Using a mixture of RIP and static
routing is not advised). The cost value
can be any positive integer.
1
12.42.4 Example
-->
ip set route route1 cost 3