Set ip route – Allied Telesis AT-S63 User Manual

Page 406

Advertising
background image

Chapter 22: Internet Protocol Version 4 Packet Routing Commands

406

Section VII: Internet Protocol Routing

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 stack,
refer to “SHOW IP INTERFACE” on page 412.

Allied Telesis recommends omitting this optional
parameter. The appropriate interface for a static route
is determined automatically by the stack 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 stack
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