LinuxCommandLibrary

ifmetric

An IPv4 route metrics manipulation tool.

TLDR

Set the priority of the specified network interface (a higher number indicates lower priority)

$ sudo ifmetric [interface] [value]
copy


Reset the priority of the specified network interface
$ sudo ifmetric [interface] [0]
copy

Copied to clipboard