Allied Telesis AT-S63 User Manual
Page 395
AT-S63 Stack Command Line User’s Guide
Section VII: Internet Protocol Routing
395
metric
Specifies the cost of crossing the route. The range is
1 to 16. The default is 1.
preference
Assigns a preference value to the static route. The
stack uses the preference values to select the active
routes when there are more than eight static or
dynamic routes in the routing table to the same
remote destination. The range is 0 to 65535. The
lower the value, the higher the preference. The
default value for a static route is 60. The default value
for the default route is 360.
Description
This command is used to create new static routes and a default route.
Examples
This command adds a static route to a remote subnet with the IP address
149.124.55.0 and a mask of 255.255.255.0. The IP address of the next
hop is 149.111.12.4. Specifying an interface is unnecessary since the
management software automatically adds the route to whichever interface
is a member of the same subnet as the next hop:
add ip route=149.124.55.0 nexthop=149.111.12.4
mask=255.255.255.0
This command adds a static route to a remote subnet with the IP address
149.14.150.0 and the mask 255.255.224.0. The IP address of the next hop
is 162.76.44.12. The metric for the route is 5 and the preference is 25:
add ip route=162.14.150.0 nexthop=162.76.44.12
mask=255.255.224.0 metric=5 preference=25
This command adds a default route. The IP address of the next hop is
172.211.16.12. No mask is specified for a default route. As with a static
route, specifying an interface for the default route is unnecessary since the
stack automatically adds the route to the interface on the same subnet as
the next hop:
add ip route=0.0.0.0 nexthop=172.211.16.12