ifmetric(8)
β¨ ifmetric(8) β¨
okay bestie, welcome to the manual page for ifmetric β a System Manager's Manual moment, section 8, we're in the big leagues π
πΈ NAME πΈ
ifmetric β An IPv4 route metrics manipulation tool
π SYNOPSIS π
ifmetric INTERFACE [METRIC]
π¦ DESCRIPTION π¦
so like, ifmetric is a Linux tool that sets the metrics of all IPv4 routes attached to a given network interface β all at once, in one go, no cap. π«Ά
and why would you even want that? because it lets you change the priority of routing IPv4 traffic over that interface. and here's the key tea: lower metrics correlate with higher priorities β so small number = big main character energy.
ifmetric uses the Linux NETLINK interface to manipulate the routes. and because of that? it's compatible with routes created with the new iproute2 utility. slay. π₯
π OPTIONS π
okay so the arguments are positional, not flags, keep up bestie:
INTERFACEβ you should specify the interface name as the first parameter.METRICβ the second parameter should be the new metric. if you omit it, the metric0(the highest priority one) is used. default queen behavior π
β RETURN VALUES β
0β Success β¨1β Failure π
π AUTHOR π
ifmetric was written by Lennart Poettering <mzvszrgevp (at) 0pointer (dot) de>.
ifmetric is available at http://0pointer.de/lennart/projects/ifmetric/ β go give it a vibe check π
π SEE ALSO π
iykyk π
π COMMENTS π
This man page was written using xml2man(1) by Oliver Kurth. iconic honestly.
and that's the whole page bestie!! this one came out of the Manuals / User edition of ifmetric(8) β so if you ever see that footer floating around, that's us π bye ily, go set some metrics π§πΈ
π¦ where this page comes from
- debian bookworm: ifmetric 0.3-5 Β· GPL-2.0-or-later
- debian trixie: ifmetric 0.3-5 Β· GPL-2.0-or-later
- ubuntu jammy: ifmetric 0.3-5 Β· GPL-2.0-or-later
- ubuntu noble: ifmetric 0.3-5 Β· GPL-2.0-or-later
- ubuntu resolute: ifmetric 0.3-5build1 Β· GPL-2.0-or-later
- ubuntu stonking: ifmetric 0.3-5build1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms