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

Routing in IOS

tahir1234
Level 1
Level 1

Hi Seniors, During the study of CCNA, especially routing, I am stuck of a very basic(might be stupid) question,

1-Describe in very clear step(s) when router discards a packet

2-Describe the situation(s) in which router forwards a packet

Please dont refer me a CISCO technical document as at this stage of learning I am unable to understand it. Thanks for reply. Tahir

5 Replies 5

paolo bevilacqua
Hall of Fame
Hall of Fame

1. (most frequent cases)

Administratively prohibited (access list)

Exceeding configured QoS

No route to destination

Malformed / invalid packet

Input queue full

Input interface throttled

Output queue fuell

Buffer allocation failure

2. all other cases.

Very good my Senior Bevilacqua, you spilled all the CCIE knowledge in few lines whereas I am working on CCNA level. Just want to know simple routing process in which

1- classless vs classfull routing is in action, OR

2- when a major network is found in table or when it is not found and when "no ip routing" is active. Hope u will come down to my level. Thanks again.

1 - classful routing has ended 15 years ago, there are no questions anymore about that in testing, do not ever worry about it.

2 - when no ip routing, router acts as an host - "ip default-gateways" comes into effect. Some models act in were this mode during "boot image". If bridging is configured, everything will be bridged.

Hi, Tahir

Let's take an example.

Suppose the router's routing table has only two entries:

172.16.10.0/24 via e0

*0.0.0.0/0 via e1

and two packets with dest. ip address 172.16.20.1 and 10.1.1.1 respectively come into the router.

Here is what happen when classful routing is configured:(use no ip classless)

1.The router match the network number first. Because 172.16.20.1 belongs to the classful network 172.16.0.0/16 and the routing table entry 172.16.10.0/24 is also belongs to the same classful network 172.16.0.0/16, the routing process consider this is a match and goto step 2.

On the other hand, 10.1.1.1 belongs to the classful network 10.0.0.0/8 and there is no routing entry belongs to the same classful network 10.0.0.0/8, routing process consider this is no-match and goto step 3 (that is, skip the step 2)

2.Then the router will do a longest match inside that classful network 172.16.0.0/16. (this is the key point: it will not do a longest match outside the classfull network). For packet with dest. ip address 172.16.20.1, there is no match under this step. So the router drops the packet and ends the matching algorithm.

3.the 10.1.1.1 packet will match the routing entry 0.0.0.0/0 and be routed via e1.

In case of classless routing, the algorithm is simple: just do a longest match. Both packets will end up with matching the 0.0.0.0/0 entry and routed via e1.

HTH

SSLIN

Thanks ,good explaination.

Regards,

Tahir.