Allied Telesis AT-S63 User Manual

Page 649

Advertising
background image

AT-S63 Management Software Command Line User’s Guide

Section VII: Internet Protocol Routing

649

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
switch 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 on
AT-9400 Switches that support IPv4 packet routing.

The only route you can define on AT-9400 Switches that do 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 remote subnets
when performing management functions.

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 because the
management software automatically adds the route to the interface that 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
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