Allied Telesis AT-S63 User Manual

Page 740

Advertising
background image

Chapter 38: Internet Protocol Version 4 Packet Routing Commands

740

Section VII: Internet Protocol Routing

Note

In version 2.0.0, the routing table supported only these three values
for subnet masks. In all later versions, subnet masks can be of
variable lengths, provided that the “1” bits are consecutive (e.g.,128,
192, 224, etc.).

metric

Specifies a new cost for 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 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 a
static route and recreating it with the new address. To view the static
routes, refer to “SHOW IP ROUTE” on page 752.

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

Advertising