beautypg.com

Ip route, Ip route 8 – Allied Telesis AT-8100 Series User Manual

Page 1838

background image

Chapter 105: IPv4 Routing Commands

1838

IP ROUTE

Syntax

ip route

ipaddress1 mask ipaddress2

[

admin

]

Parameters

ipaddress1

Specifies the IP address of a remote destination network, subnet,
or node. The IP address for the default route is 0.0.0.0/0.

mask

Specifies the mask of the IP address. The mask represents the
number of bits, from left to right, that constitute the network portion
of the address. The mask may be entered in IP notation (e.g.,
255.255.255.0) or decimal notation (e.g., /24).

ipaddress2

Specifies the IP address of the next hop to the remote destination
network. This address must be a member of the same network as
one of the existing routing interfaces on the switch.

admin

Specifies the administrative distance of the route. The switch uses
the administrative distance to select a route when there is more
than one route with the same destination address prefix. The lower
the administrative distance, the higher the route preference. The
range is 1 to 255. The default for a static route is 1.

Mode

Global Configuration mode

Description

Use this command to create static routes and the default route. You may
create only one route at a time with this command. Here are the guidelines
for creating static routes:

Before you can add a new static route, the switch must already
have a routing interface with an IP address that is a member of the
same network as the next hop of the new static route.

The switch does not support multiple static routes with the same
destination address prefix.