| IP Routing Commands
C
51
HAPTER
Routing Information Protocol (RIP)
distance
maximum-prefix
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
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.
D
S
EFAULT
ETTING
None
C
M
OMMAND
ODE
Router Configuration
C
U
OMMAND
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.
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)#
This command sets the maximum number of RIP routes allowed by the
system. Use the no form to restore the default setting.
S
YNTAX
maximum-prefix maximum-routes
no maximum-prefix
maximum-routes - The maximum number of RIP routes which can
be installed in the routing table. (Range: 1-7168)
D
S
EFAULT
ETTING
1024
– 1736 –