Server Fault is a question and answer site for system and network administrators. 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

With iptables -L -n -v, you can get the number of times each firewall rule has been applied, which is very useful in debugging. I'd like to know if there's a similar way to find out how many times a network route has been used. I'm mostly asking about Linux and Windows solutions, but any platforms' solutions to this would be interesting.

share|improve this question
Added Windows to tags, for Windows guru to notice the question – SaveTheRbtz Oct 25 '09 at 20:07
up vote 3 down vote accepted


route -neeC

and look at the "Use" column. man route says this is the count of lookups for the route.

share|improve this answer
Thanks, this looks useful. I'm not entirely sure that a lookup against a route is the same thing as a final decision to use that route AFTER conducting a lookup. Is this safe to assume? – Lee B Oct 26 '09 at 20:34

I don't know of a way to get this information directly, but it would be relatively straightforward with a set of empty rules in iptables that match up with the rules in the routing table.

share|improve this answer


netstat -rn


netstat -rneC

I think something can be done via netsh

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.