Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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'm a newbie. Recently I used the command ip route ls to print my route table. Here is the content: dev wlan0 proto kernel scope link src metric 2

I'm curious about the meaning of proto kernel and scope link.

share|improve this question

I'm partially quoting the man page.

scope type is the scope of the destinations covered by the route prefix. scope link means that within the network segment of the device communication is allowed through this link. Towards other network segments routing should be used.

protocol type is the routing protocol identifier of this route. proto kernel means:

The route was installed by the kernel during autoconfiguration.

For more information, see:

  • The man page that can be read by typing man ip in a terminal window.
  • Several topics on Serverfault. Especially this on scope.
share|improve this answer

for proto kernel, it is a route added automatically when you assign an address to an interface which is not /32. Lets say in your case, you assigned an address to wlan0 (or some other in same subnet), kernel automatically adds route to whole subnet via this interface during auto-configuration. The only way to avoid this is assigning a /32 address to the interface.

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.