AD vs prefix length

Hello Jyothi

Yes, you are correct, the order of criteria checked is incorrect. This was a post I had posted, but I have since corrected it. The corrected post can be found here:

Thus, if you use a Null route, any traffic going to 192.168.1.2 will be dropped. However, in order to correctly configure this, you should configure a static route to 192.168.1.2/32 with an exit interface like so:

ip route 192.168.1.2 255.255.255.255 gigabitethernet0/0

That way, any traffic that is destined for 192.168.1.2 will match this route, and be sent out of the appropriate interface. Thus, such traffic will not be dropped.

I hope this has been helpful!

Laz