User guide
set route
Chapter 2 Command Descriptions 185
set route
Device support This command is supported in all devices.
Purpose The "set route" command is an advanced feature that is intended to be
used by experienced device and network users. Use the "set route"
command to
• Manually configure IP routes. The route table holds up to 50 entries.
• Remove routes from the route table.
• Display the contents of the route table.
Required
permissions
The root user can configure IP route settings. Normal users can display
route table entries.
Syntax Configure or remove IP routes
set route gateway=ip adr
wanname=name
mask=mask
metric=hops
net=net adr
range=range
Display route table
set route
Options gateway=ip adr
The IP address of the router that is the next hop to the destination
network defined on the "net" option. Use this option if this router is on the
LAN. You can specify any gateway, as long as the IP address for the
gateway is not 0.0.0.0.
wanname=name
The interface to use for this route, which is one of the following:
• For routes over a PPP link: The user name in a previously issued
“set user” command that defines a PPP user.
• For routes over the Ethernet interface: the keyword "ether."
mask=mask
The subnet mask used by the destination network.
metric=hops
The number of routers through which a datagram must pass before
reaching the destination network defined on the "net" option.
net=net adr
The IP network address of the destination network.
range=range
The index number of the route you wish to modify or view.