ifmetric(8)

πŸ“¦
version 0.3 Β· 2 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble, ubuntu resolute, ubuntu stonking

✨ 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 metric 0 (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 🧚🌸