Allied Telesis AT-S63 User Manual
Page 589

AT-S63 Management Software Command Line Interface User’s Guide
Section VII: Internet Protocol Routing
589
Do not include a mask when specifying a default
route.
Note
These three values and 255.255.255.255 are the only supported
subnet masks for a static route. However, the masks can be
assigned to any address class. For example, the mask 255.0.0.0
can be assigned to a Class B address.
metric
Specifies a new cost for crossing the route. The range
is 1 to 16. The default is 1.
Description
This command modifies the attributes of an existing static route or default
route. You can use the command to change the IP address of the next hop
or the subnet mask of the destination address. The command can also
change the metric cost of a route. This command cannot change the
destination address. Changing the destination address requires deleting
the static route and recreating it with the new address. For background
information, refer to “Static Routes” on page 550. To view the static routes,
refer to “SHOW IP ROUTE” on page 600.
Examples
This command changes the IP address of the next hop for the static route
to the remote subnet 149.124.55.0. The IP address of the next hop is
changed to 149.124.52.4:
set ip route=149.124.55.0 nexthop=149.124.52.4
mask=255.255.255.0
This command changes the metric value to 7 for the static route to the
remote subnet 172.55.156.0:
set ip route=172.55.156.0 nexthop=172.55.101.2
mask=255.255.255.0 metric=7
This command changes the IP address of the next hop to 149.211.16.12
for the default route:
set ip route=0.0.0.0 nexthop=149.211.16.12