distance (IPv4) 
Use this command in router mode to set the administrative distance for all IPv4 routes or routes from a specific source. 
Use the no parameter with this command to remove an administrative distance. 
Command Syntax 
distance <1-255> (System-ID (WORD|)|) 
no distance (System-ID|) 
Parameters 
<1-255> 
Distance range. 
System-ID 
Source ID in XXXX.XXXX.XXXX format. 
WORD 
Access-list name. 
Default 
By default, all options are turned off. 
Command Mode 
Router mode 
Examples 
The following example shows setting the administrative distance for all routes. 
#configure terminal 
(config)#router isis 
(config-router)#distance 10 
The following example shows setting the administrative distance for a specific route source. 
#configure terminal 
(config)#router isis 
(config-router)#distance 40 0000.0000.0001
 
Last modified date: 10/16/2023