C613-50100-01 REV C Command Reference for x930 Series 872
AlliedWare Plus™ Operating System - Version 5.4.6-1.x
RIP COMMANDS
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> [<access-list>]]
no distance [<1-255>] [<ip-addr/prefix-length> [ <access-list>]]
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 that match the access-list mylist, use the commands:
awplus# configure terminal
awplus(config)# router rip
awplus(config-router)# distance 8 10.0.0.0/8 mylist
To set the administrative distance to the default of 120 for the RIP routes within
the 10.0.0.0/8 network that match the access-list mylist, use the
commands:
awplus# configure terminal
awplus(config)# router rip
awplus(config-router)# no distance 8 10.0.0.0/8 mylist
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.
<access-list> Specifies the access-list name. This access list specifies which
routes within the network <ip-address/m>this command
applies to.