← 返回命令列表

Linux command

ifmetric 命令

安全

权限或系统影响较大,执行前请核对目标。

常用示例

Example

sudo ifmetric [interface] [value]

Reset

sudo ifmetric [interface] 0

Example

sudo ifmetric wlan0 100

说明

ifmetric manipulates IPv4 route metrics for network interfaces. Route metrics determine which interface is preferred when multiple routes to the same destination exist - lower metric values have higher priority. This is useful for systems with multiple network connections (e.g., wired and wireless) where you want to control which connection is preferred for outgoing traffic.

FAQ

What is the ifmetric command used for?

ifmetric manipulates IPv4 route metrics for network interfaces. Route metrics determine which interface is preferred when multiple routes to the same destination exist - lower metric values have higher priority. This is useful for systems with multiple network connections (e.g., wired and wireless) where you want to control which connection is preferred for outgoing traffic.

How do I run a basic ifmetric example?

Run `sudo ifmetric [interface] [value]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

Where can I find more ifmetric examples?

This page includes 3 examples for ifmetric, plus related commands for nearby Linux tasks.