Pcornel
Windows · Routing

Interface Metric

Cheat sheet · https://pcornel.dk/topic.php?topic=3084

Back to the Topic

Answer

The interface metric is a per-interface cost that Windows adds to every route through that interface. By default it is set automatically from the link speed; lower is preferred.

Remember

Set it with Set-NetIPInterface -InterfaceIndex <n> -InterfaceMetric <value>; this turns off the automatic metric for that interface. It only matters between routes of the same prefix length. IPv4 and IPv6 have separate interface metrics.

First checks

  • Get-NetRoute — routing table
  • Find-NetRoute -RemoteIPAddress <ip> — selected route and source
  • route print — routing table in CMD
  • tracert <dest> — path

Verify in this order

interface metric added to route metric → total

Where it usually breaks

First mismatch in host/interface identity → local config/routing/name state → Windows service/provider → firewall/security/session → remote service → application-visible exchange; preserve identity/native error/pre-state before mutation.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3084

Confirmation

Confirm action

Continue?