双网卡调整优先级

有两种方法,一种是在网卡管理里调整顺序,另一个是通过调整跃点数调整优先级
网卡管理有时候不能显示网卡,所以用跃点数调整

# 使用此命令获取网卡编号
Get-NetIPInterface

# 对不同网卡设置不同跃点数,数值越小越优先
Set-NetIPInterface -InterfaceIndex 13 -InterfaceMetric 30
Set-NetIPInterface -InterfaceIndex 4 -InterfaceMetric 10
上一篇
下一篇