beautypg.com

Distance – Allied Telesis AT-S83 User Manual

Page 275

background image

AT-S83 Management Software Command Line Interface User’s Guide

275

DISTANCE

Syntax

distance DISTANCE <1-255> A.B.C.D/M ACCESSLIST

no distance DISTANCE A.B.C.D/M ACCESSLIST

Parameters

DISTANCE

Specifies the administrative distance value. Choose a

number between 1 and 255. By default, this
parameter is set to 120.

A.B.C.D/M

Specifies an IP address and subnet mask in the

following format:

xxx.xxx.xxx\mask

ACCESSLIST

Specifies the access-list name. Use quotation marks

to specify a list name with embedded spaces.

Description

Use the DISTANCE command to set the administrative distance. By
default, the distance is set to 120.

Administrative distance is used by routers to select the path when there
are two or more different routes to the same destination from two different
routing protocols. A smaller administrative distance indicates a more
reliable protocol.

Use the no form of this command to disable this function.

Command Mode

Router mode

Example

The following commands assign the administrative distance to 8, an IP
address and subnet mask of 10.0.0.0/8, and an access list named “mylist”:

switch#configure terminal

switch(config)#router rip

switch(config-router)#distance 8 10.0.0.0/8 mylist