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

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Default Route working

How default route works as configuring a gateway for a subnet works and understandable but by adding a gateway for different subnets through default route it start to understand all the subnets.So my question is that default route packet adds some sort of flag in its packet for the gateway that he starts forwarding everything.

New Member

Re: Default Route working

The default route "ip route x.x.x.x" is placed in the routing table to tell your router where to route packets for destinations not defined in the routing table.

So you can have a default gateway for one of your subnets pointing to the router, but when the router receives the packet, it needs to know how to forward this packet. The default route is used when the routing table has no specific route for the destinaton of a packet.

Re: Default Route working

The function of default-route is different in case of a classless routig on router & when clasless routing is not enabled on router.

Classless routing-When a default route exists, and no specific match is made when comparing

the destination of the packet and the routing table, the default route is used.

Classful routing-When a default route exists, and the class A, B, or C network for the destination IP address does not exist at all in the routing table, the default route is used. If any part of that classful network exists in the routing table, but the packet does not match any of the existing subnets of that classful network, the router does not use the default route and

thus discards the packet.