Cisco Routing For The CCNA And CCNP: Administrative Distance

Posted in Computers on August 11th, 2009 by cahyo

The of “” is simple enough: “the of a ’s believability”. It’s not enough to know the definition, however you’ve got to know when AD comes into the picture and when it does not.

When a packet needs to be routed, the router looks in its for the next-hop IP address the packet should take to get to the destination. There may be more than one matching path, in which case the router will look for the “longest ”. The route that has the longest – the route with the most bits in the set to “1″ – will be the route that is used.

Consider the following three routes from a fictional router:

I 172.17.0.0 /24 via 172.1.1.1

O 172.17.0.0 /25 via 173.1.1.1

R 172.17.0.0 /26 via 174.1.1.1

This router has three possible next-hop IP addresses that it can send packets destined for the network 172.17.0.0. The are of different lengths, meaning that the route with the longest (again, the route with the most bits set to “1″) will be used. In this example, the route will be used, since it has the longest with a of /26. The administrative do not matter.

AD does matter when the are the same length, as shown here:

I 172.17.0.0 /24 via 172.1.1.1

O 172.17.0.0 /24 via 173.1.1.1

R 172.17.0.0 /24 via 174.1.1.1

The longest rule always precedes the use of AD, but here there is a three-way tie regarding the . They’re all /24 (or 255.255.255.0 in dotted decimal). AD will be used to break this tie.

As mentioned, AD is a of a ’s believability. It is important to keep in mind that the lowest AD will be preferred. And while the will show you the ADs of the respective , it’s a very good idea to know these ADs before taking the or :

Connected route: 0 Read more »

Related posts

Tags: , , , , , , , , , , , , , , , , , , , ,