cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
671
Views
5
Helpful
3
Replies

question in the routing process in routers and MLS .

Dr.X
Level 2
Level 2

hi ,

i want to ask  a question about the router behavior when use the routing process ,

which one  is  checked first :

the longest match of the destination address  or the AD of the route of the destination address ???

does this differ when using rouer than using Multi layer switch ??

regards

3 Replies 3

Raju Sekharan
Cisco Employee
Cisco Employee

AD is compared only when the router installs the route in routing table. It is used if differnt routing protocols have same prefix with same subnet mask

When the router routes a packet, it always look longest match first.

Thanks

Raju

assume my topology below :

e2>--------R1--10.20.30.1/24----------------------------10.20.30.2/24---R2---------------

assume i put a route in R1 as====># ip route 10.20.30.5 255.255.255.255 null0

and a packet from e1 is goining to 10.20.30.5 through R1.

do you mean that the traffic will dropped  and will go to null0  ,because longest match that 10.20.30.0/24 ??

Yes. it will get dropped

Thank you

Raju

Review Cisco Networking for a $25 gift card