Add ip route – Allied Telesis AT-S63 User Manual
Page 574
Chapter 32: Internet Protocol Version 4 Packet Routing
574
Section VII: Internet Protocol Routing
ADD IP ROUTE
Syntax
add ip route=
ipaddress
[interface=
interface
]
nexthop=
ipaddress
[mask=
subnetmask
]
[metric=
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. The name consists of
“VLAN” followed by a VID and an interface number,
separated by a dash (e.g., vlan4-0). To view the
interfaces on the switch, refer to “SHOW IP
INTERFACE” on page 594. For background
information, refer to “Interface Names” on page 550.
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.