---
name: "ifmetric"
section: "8"
platform: "linux"
package: "ifmetric"
version: "0.3-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/ifmetric"
---

# ifmetric(8)

An IPv4 route metrics manipulation tool

## NAME

ifmetric - An IPv4 route metrics manipulation tool

## SYNOPSIS

**ifmetric** *INTERFACE* **\[***METRIC***\]**

## DESCRIPTION

ifmetric is a Linux tool for setting the metrics of all IPv4 routes attached to a given network interface at once. This may be used to change the priority of routing IPv4 traffic over the interface. Lower metrics correlate with higher priorities.

ifmetric uses the Linux NETLINK interface to manipulate the routes. Because of that it is compatible with routes created with the new iproute2 utility.

## OPTIONS

You should specify the interface name as first parameter. The second parameter should be the new metric. If omitted the metric 0 (highest) is used.

## 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/**

## SEE ALSO

**[route(8)](/route/8.md)**, **[ip(8)](/ip/8.md)** (iproute2)

## COMMENTS

This man page was written using **xml2man(1)** by Oliver Kurth.
