
administrative-distance
Configures OSPF administrative distance for this router.
Syntax: [no] administrative-distance value
value
Specifies the OSPF administrative-distance for this router. Valid Values: 1 - 252. Default: 110.
Description: Administrative distance is a metric that specifies the reliability of one routing protocol over another, when there are multiple routes to the same destination via multiple routing protocols. Routing protocols are configured from most preferred to least preferred based upon the numeric value specified by administrative distance.
Use the administrative-distance command in OSPF router configuration mode to change the OSPF administrative distance.
Use the no administrative-distance command to reset OSPF administrative distance to its default value.
If the administrative distance configuration has changed, use the show running-config command to display the new value. If a route is selected as the best route, the show ip route ospf command displays the administrative distance for OSPF.
Factory Default: 110.
Command Mode: OSPF Router configuration.
Example 1: In the following example the OSPF administrative distance is changed to 233:
router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
router(config)#router ospf 12
router(config-router)#network 10.1.1.0 0.0.0.255 area 0
router(config-router)#administrative-distance 233
router(config-router)#end
router#
Example 2: In the following example the OSPF administrative distance is reset to the default value:
router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
router(config)#router ospf 12
router(config-router)#network 10.1.1.0 0.0.0.255 area 0
router(config-router)#no administrative-distance
router(config-router)#end
router#
Related Commands: router ospf
show ip route ospf
show running-config
Copyright © 2005
Avici Systems Inc.
Avici® and TSR®
is a registered trademark of Avici Systems Inc.
IPriori, Composite Links, SSR, QSR, and NSR® are
trademarks of Avici Systems Inc.
Source
File Name: ospf.fm
HTML File Name: ospf2.html
Last Updated: 02/25/05 at 14:55:11