Allied Telesis AT-S63 User Manual

Page 575

Advertising
background image

AT-S63 Management Software Command Line Interface User’s Guide

Section VII: Internet Protocol Routing

575

Note

The only supported subnet masks for a static route are these three
values and 255.255.255.255. 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 the cost of crossing the route. The range is
1 to 16. The default is 1.

Description

For AT-9400 Series switches that support IPv4 packet routing, this
command creates a new static route or a default route. For background
information, refer to “Static Routes” on page 550.

The only route that you can define on an AT-9400 Series switch that does
not support IPv4 packet routing is a default route. The default route
specifies the switch’s default gateway. You cannot create any static
routes. The management software uses the default route to communicate
with other network devices, such as syslog and RADIUS servers, on a
remote subnet when performing a management function. For further
information, refer to “Default Gateway” on page 561.

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.120.0 and the mask 255.255.255.0. The IP address of the next hop
is 162.76.44.12. The metric for the route is set to 5:

add ip route=162.14.120.0 nexthop=162.76.44.12
mask=255.255.255.0 metric=5

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. Specifying an
interface is unnecessary since the switch 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

Advertising