PrepAway - Latest Free Exam Questions & Answers

Which command will set the administrative distance to these networks to 220 for the selected protocol?

You need to resolve a route-selection problem in a redistributed network by increasing the administrative distance to several networks for a protocol, other than EIGRP or BGP, so that these routes will not be used. You create access list 5 to identify the relevant networks, and access the routing protocol configuration prompt.

Which command will set the administrative distance to these networks to 220 for the selected protocol?

A. Router(config-router)# list 5 distance 220
B. Router(config-router)# admin 220 access-list 5

C. Router(config-router)# distance 220 0.0.0.0 255.255.255.255 5

D. Router(config-router)# increase 0.0.0.0 255.255.255.255 admin 220 list 5

Explanation:
The correct command is Router(config-router)# distance 220 0.0.0.0 255.255.255.255 5. This command instructs the router to change the AD for any networks specified in the access list 5 to 220.

The correct syntax for the distance command is shown below:

distance weight [address mask [ access-list-number | name]

The weight parameter is the administrative distance (AD), which is a number from 10 to 255. Note: Distances 0 through 9 are reserved for system use.

To change the administrative distance for an entire routing protocol, use the distance command, as shown below:

Router(config)# router rip
Router(config-router)# distance 125

To change the AD for only selected networks, use an access list with the distance command as shown below:

Router(config)#access-list 5 permit 10.0.0.0 255.0.0.0
Router(config)#access-list 5 permit 11.0.0.0 255.0.0.0
Router(config)#access-list 5 permit 12.0.0.0 255.0.0.0
Router(config)#router rip
Router(config-router)# distance 220 0.0.0.0 255.255.255.255 5

The 0.0.0.0 255.255.255.255 portion included with the distance command could hold an address/mask combination for a single address, but it is more common to use an access list.

Objective:
Layer 3 Technologies
Sub-Objective:
Describe administrative distance

References:
Cisco > Cisco IOS IP Routing: Protocol-Independent Command Reference > distance (ip)


Leave a Reply