User guide
TCP/IP command reference IP
4-51
iMG/RG Software Reference Manual (IPNetwork Functions)
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 destination 192.168.103.3 255.255.255.0
See also IP SET ROUTE GATEWAY
IP SET ROUTE COST
IP LIST ROUTES
4.1.8.2.59 IP SET ROUTE GATEWAY
Syntax IP SET ROUTE {<name>|<number>} GATEWAY <gateway>
Description This command sets the gateway address of a route previously created using the IP ADD
ROUTE command. If you want the route to go directly to its destination and not via a
gateway, specify 0.0.0.0 as the gateway.
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).
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
dest-network The IP address of the destination network in the format:
192.168.102.3
N/A
netmask The destination netmask address (format:
255.255.255.0)
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 numbers appear in
the first column under the heading ID.
N/A