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

Chapter 35: Internet Protocol Version 4 Packet Routing Commands
648
Section VII: Internet Protocol Routing
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 676.
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.
Note
In version 2.0.0, the routing table supported only these three values
for subnet masks. In all later versions, subnet masks can be of
variable lengths, provided that the “1” bits are consecutive (e.g.,128,
192, 224, etc.).
Command
Available
AlliedWare Plus