Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Community Member

longest prefix

HI!

I HAVE Read in this forum this:" routing is done based on longest prefix"what does it mean technicaly?

10xs

3 REPLIES
Community Member

Re: longest prefix

hi

the longest 'bitcount' route will be given first preference.

Purple

Re: longest prefix

Hi,

That simply means that when a router receives a packet, it will scan its routing table for the best route to use for routing that packet. The best route is the one that has the longest prefix. For example, say a router has two routes, 10.1.0.0/16 and 10.1.1.0/24. When it receives a packet with a destination address of 10.1.1.100, it could use either of the 2 routes in order to route it. However, the /24 route is more specific (i.e has a prefix length of 24 compared to 16) and therefore, that is the route that is used.

Paresh

Community Member

Re: longest prefix

Hi

10xs for all ur reply!!!!

119
Views
10
Helpful
3
Replies
CreatePlease to create content