Set ip route – Allied Telesis AT-S63 User Manual

Page 739

Advertising
background image

AT-S63 Management Software Command Line User’s Guide

Section VII: Internet Protocol Routing

739

SET IP ROUTE

Syntax

set ip route=

ipaddress

[interface=

interface

]

nexthop=

ipaddress

mask=

subnetmask

[metric=

value

]

[preference=

value

]

Parameters

route

Specifies the IP address of the remote destination of
the static route to be modified. The IP address of the
default route is 0.0.0.0.

You cannot change the destination IP address of a
static route. If the destination address changes, you
must delete the old route and enter a new route.

interface

Specifies the name of the interface where the next
hop is located. To view the interfaces on the switch,
refer to “SHOW IP INTERFACE” on page 745.

Allied Telesis recommends omitting this optional
parameter. The appropriate interface for a static route
is determined automatically by the switch when it
examines the IP address of the next hop and adds the
route to the interface of the same subnet.

nexthop

Specifies the IP address of the next hop of the route.
You must specify the next hop even if you are not
changing it.

If the IP address of the next hop belongs to a different
subnet than the original IP address, the switch
automatically moves the route to the appropriate
interface.

mask

Specifies the subnet mask for the destination IP

address. The default value is based of the address’
network type. The default values are:

Class A address - 255.0.0.0

Class B address - 255.255.0.0

Class C address - 255.255.255.0

Do not include a mask for a default route.

Advertising