
C613-50186-01 Rev B
Command Reference for AR2050V
825
AlliedWare Plus™ Operating System - Version 5.4.7-1.x
RIP C
OMMANDS
DISTANCE
(RIP)
distance (RIP)
Overview
This command sets the administrative distance for RIP routes. Your device uses this
value to select between two or more routes to the same destination obtained from
two different routing protocols. The route with the smallest administrative
distance value is added to the Forwarding Information Base (FIB). For more
information, see the
Route Selection Feature Overview and Configuration Guide
.
The
no
variant of this command sets the administrative distance for the RIP route
to the default of 120.
Syntax
distance
<1-255>
[
<ip-addr/prefix-length>
]
no distance [
<1-255>
] [
<ip-addr/prefix-length>
]
Mode
RIP Router Configuration or RIP Router Address Family Configuration for a VRF
instance.
Examples
To set the administrative distance to 8 for the RIP routes within the 10.0.0.0/8
network, use the commands:
awplus#
configure terminal
awplus(config)#
router rip
awplus(config-router)#
distance 8 10.0.0.0/8
To set the administrative distance to the default of 120 for the RIP routes within the
10.0.0.0/8 network, use the commands:
awplus#
configure terminal
awplus(config)#
router rip
awplus(config-router)#
no distance 8 10.0.0.0/8
Example
(VRF-lite)
This example assigns a cost of 10 to the routes for the VRF instance blue, when
redistributed into RIP.
awplus#
configure terminal
awplus(config)#
router rip
awplus(config-router)#
address family ipv4 blue
awplus(config-router-af)#
distance 10
Command
changes
Version 5.4.6-2.1: VRF-lite support added.
Parameter
Description
<1-255>
The administrative distance value you are setting for this RIP
route.
<ip-addr/
prefix-length>
The network IP address and prefix-length that you are changing
the administrative distance for.