December 2006
Intermediate to advanced
1188 pages
72h 8m
English
You want to change the administrative distance for an external network.
You use the distance command to adjust the administrative distance for a particular routing protocol. The precise syntax depends on the routing protocol. This example uses RIP:
Router#configure terminalEnter configuration commands, one per line. End with CNTL/Z. Router(config)#router ripRouter(config-route)#networkRouter(config-route)#192.168.15.0distanceRouter(config-route)#15 192.168.15.1 0.0.0.0distanceRouter(config-route)#200 192.168.15.0 0.0.0.255distanceRouter(config-route)#255endRouter#
For EIGRP, you can specify the distance for routes learned from both internal and external neighbors:
Router#configure terminalEnter configuration commands, one per line. End with CNTL/Z. Router(config)#router eigrpRouter(config-route)#111networkRouter(config-route)#192.168.16.0distance eigrpRouter(config-route)#55 200endRouter#
With OSPF, you can also control the distance, depending on whether the neighboring router is in the same area:
Router#configure terminalEnter configuration commands, one per line. End with CNTL/Z. Router(config)#router ospfRouter(config-route)#66distance ospf inter-areaRouter(config-route)#115distance ospf intra-areaRouter(config-route)#105distance ospf externalRouter(config-route)#125endRouter#
And you can configure BGP distances for internal, external, and local routes:
Router#configure terminal Enter configuration commands, ...