Add ip route – Allied Telesis AT-S63 User Manual
Page 577

AT-S63 Management Software Command Line Interface User’s Guide
Section VII: Internet Protocol Routing
577
ADD IP ROUTE
Syntax
add ip route=
ipaddress
[interface=
interface
]
nexthop=
ipaddress
[mask=
subnetmask
]
[metric=
value
]
[preference=
value
]
Parameters
route
Specifies the IP address of the destination network,
subnet, or node. The IP address for a default route is
0.0.0.0.
interface
Specifies the name of the routing interface where the
static route is to be added. To view the interfaces on
the switch, refer to “SHOW IP INTERFACE” on
page 601. For background information, refer to
“Interface Names” on page 552.
This parameter is optional. The switch automatically
determines the appropriate interface by adding a
route to the interface whose IP address is a member
of the same subnet as the next hop. (An error
message is displayed if you try to add a route to an
interface whose IP address is a member of a different
subnet than the next hop in the route.)
nexthop
Specifies the IP address of the next hop for the route.
The next hop’s IP address must be a member of a
local subnet on the switch and the subnet must have
an interface.
mask
Specifies the subnet mask of the destination IP
address of the static route. The default value is based
of the address’ network type. The default values are:
Class A address - 255.0.0.0
Class B address - 255.255.0.0
Class C address - 255.255.255.0
Do not include a mask for the default route.