Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've been reading up on static routes and such while studying for my next MS exam, and am wondering - in CMD, if you do a route print -4 you get a Active Route Output such like this:


Is this just a default route which routes all traffic (regardless of the IP/Subnet being requested) to the default gateway?

If so - what does the attempt to define?

If not - what does this route actually do?


share|improve this question
2 is the first address where all bits are zero. is the netmask where any bit of address could be either zero or one, ie. the range of addresses will be ie. all IP addresses and therefore the name "default route" – Cougar Sep 1 '12 at 18:16
up vote 1 down vote accepted

It is a default route, but it does not route (match) all traffic.
Packet will be routed via default if no better route exists. In other words it says - I (router) tried to match this packet to all networks I know of and failed. But I know this guy, default gateway, who may be more knowledgeable than I am, so I kick the can along (and forward to him).

That's why a default route is also known as Route of last resort.

Now why those entries:
In order to check if an IP address matches given route entry, your (router) device will compare it to Destination. Netmask dictates how many leftmost bits must match (at least as many as 1s in Netmask). If multiple route entries match, longest match is selected as best. How this works with as Netmask?
Any IP will match - because it needs to match on 0 bits. By the same token, it will be shortest possible match so it will be used only if there are no more specific matches.

Why Destination is shown as To get network address, you zero host bits (by bitwise ANDing IP with netmask). Because of that for mask the only valid network address is also

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .