Distance, Distance 1460 – LevelOne GTL-2691 User Manual

Page 1460

Advertising
background image

C

HAPTER

49

| IP Routing Commands

Routing Information Protocol (RIP)

– 1460 –

distance

This command defines an administrative distance for external routes

learned from other routing protocols. Use the no form to restore the

default setting.

S

YNTAX

[no] distance distance network-address netmask [acl-name]

distance - Administrative distance for external routes. External

routes are routes for which the best path is learned from a neighbor

external to the local RIP autonomous system. Routes with a

distance of 255 are not installed in the routing table.

(Range: 1-255)
network-address - IP address of a route entry.
netmask - Network mask for the route. This mask identifies the

network address bits used for the associated routing entries.
acl-name - Name of the access control list. Any type of ACL can be

specified, including standard or extended IP ACLs and MAC ACLs.

(Range: 1-16 characters)

D

EFAULT

S

ETTING

None

C

OMMAND

M

ODE

Router Configuration

C

OMMAND

U

SAGE

Administrative distance is used by the routers to select the preferred

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.

An access list can be used to filter networks according to the IP address

of the router supplying the routing information. For example, to filter

out unreliable routing information from routers not under your

administrative control.

The administrative distance is applied to all routes learned for the

specified network.

E

XAMPLE

Console(config-router)#distance 2 192.168.3.0 255.255.255.0

Console(config-router)#

Advertising