I'm using Windows 7. When I type "route print" under command prompt, I get a IPv4 Route Table with several "On-link" values under the Gateway column. For example, like this one:

IPv4 Route Table
Active Routes:
Network Destination        Netmask          Gateway       Interface  Metric
     25         On-link    306         On-link    306         On-link    306     31     26         On-link    306         On-link    286     31         On-link    286         On-link    286         On-link    286     31         On-link    281         On-link    281         On-link    281         On-link    306         On-link    286         On-link    281     31     31     31     31         On-link    306         On-link    286         On-link    281     26

So what does "On-link" mean?

  • You may want to check if you have the following installed. C:\Program Files\Bonjour it will contain mDNSResponder and a associated dll I deleted the folder and the problem went away. Bonjour is a Apple Service, but no Apple software was install, so not sure how it got installed. It seems the mDNSResponder is what is causing the problem.
    – user318934
    Apr 28, 2014 at 12:49
  • @user318934 - nDNSResponder is installed by Microsoft, because so many things use Bonjour and Apple's implementation is smaller/faster/better than they cared to re-write. Delete it? Disable it? leave it alone? Your choice, but it is generally not an issue. Mar 25, 2015 at 18:09
  • @hujunfeng, Wow why do you have such a huge table?
    – Pacerier
    Jun 17, 2017 at 4:22

4 Answers 4


They are addresses that can be resolved locally. They don't need a gateway because they don't need to be routed.

  • 5
    Why are the metrics so high if the addresses are directly accessible? Is it something to do with all the local masks getting sorted out? Jul 21, 2016 at 17:49

Yep, the other three answers are correct: it's just a route that's directly reachable (the NIC is in direct contact with it; on the same subnet). To explain a little further though: by contrast, the routes that have a gateway IP listed must be contacted through that gateway.

So, in the table you gave above, is contacted by simply putting a packet on the network from, marked as going to The destination machine would see the packet, and take it off the network directly.

But to reach, the packet would be sent out from, to the gateway, where the gateway would see that it's to be forwarded on to where it's going.

Note that I haven't bothered looking at the whole routing table to make sure there are no more specific routes overriding these, as it's a little beside the point for this issue.

  • 1
    In the second last para, what does gateway mean anyway? Does gateway means router?
    – Pacerier
    Jun 17, 2017 at 4:29
  • 1
    @Pacerier You’re not a member of the destination network, so you can’t deliver the packet personally. But your routing table tells you which of the members on your own network is one step closer to the destination network. That machine is the gateway.
    – Synoli
    Mar 24, 2021 at 20:47

on-link is a vista thing and it means there is a direct connection meaning “directly reachable”. In general, such record will be generated after establishing a dial-up connection.

  • 1
    So before vista it is?
    – Pacerier
    Jun 17, 2017 at 4:30

Wild guess: Unrouted subnets that are handled locally.

You must log in to answer this question.

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