From ThinkWiki
Jump to: navigation, search

ifmetric is a tool to set different route metrics for different network interfaces. Sometimes two network interfaces of different speeds with equal routes are available at the same time. (e.g. a laptop with both a wireless and a copper LAN card) The one with the greater througput should be preferred over the other. To achieve this, you may use the route's metric field. Routes with lower metrics are preferred over those with higher. Unfortunately many network configurators (like DHCP clients) do not support to set the metric for a route. ifmetric may be used to manipulate the metrics of routes a posteriori. The default metric for a route in the Linux kernel is 0, meaning the highest priority.

Project Homepage / Availability


  • stable