Chapter 29
| IP Routing Commands
Routing Information Protocol (RIP)
– 823 –
distance This command defines an administrative distance for external routes learned from
other routing protocols. Use the no form to restore the default setting.
Syntax
[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.
Default Setting
None
Command Mode
Router Configuration
Command Usage
◆ 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.
Example
Console(config-router)#distance 2 192.168.3.0 255.255.255.0
Console(config-router)#
maximum-prefix This command sets the maximum number of RIP routes allowed by the system. Use
the no form to restore the default setting.
Syntax
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)
Default Setting
1024