User guide

IP TCP/IP command reference
iMG/RG Software Reference Manual (IPNetwork Functions)
4-52
Example --> ip set route route1 gateway 192.168.102.3
See also IP ADD ROUTE
IP SET ROUTE DESTINATION
IP SET ROUTE COST
IP LIST ROUTES
4.1.8.2.60 IP SET ROUTE COST
Syntax IP SET ROUTE {<name>|<number>} COST <cost>
Description This command sets the number of hops counted as the cost of the route for a route pre-
viously created using the IP ADD ROUTE command.
Options The following table gives the range of values for each option that can be specified with
this command and a Default Value (if applicable).
Example --> ip set route route1 cost 3
See also IP ADD ROUTE
IP LIST ROUTES
IP SET ROUTE ADVERTISE
gateway The IP address of the gateway that the IP routes
through, displayed in the following format:
192.168.102.3 If you added a route directly to an
interface, the gateway address is set by default to
0.0.0.0 so that no gateway is specified.
N/A
Option Description Default Value
name An existing route. To display route names, use the
IP LIST ROUTES command.
N/A
number 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
Option Description Default Value