[Seek Help] wifi和网线同时连接时,是否可以指定连接优先级?
Tofloor
poster avatar
wangzhuoyong
deepin
2021-02-01 17:01
Author

wifi和网线同时连接时,是否可以指定连接优先级?

在公司需要调试,偶尔两路都能通,但希望能保持wifi连接,网线只是调试工具,每次切网都会导致一些意外情况发生。

Reply Favorite View the author
All Replies
guaguale
deepin
2021-02-01 17:07
#1

win下面有一个 适配器和绑定  功能,不知道linux有没有

Reply View the author
funicorn
deepin
2021-02-01 19:04
#2

查看网络连接优先级,看metric后面的数字大小,越小的优先级越高

$ ip route

查看当前所有网络连接名称(返回结果的第1列)

$ nmcli c

修改某连接的metric数值

$ nmcli connection change ipv4.route-metric

重新激活连接

$ nmcli connection up

nmcli是network-manager底层命令行工具,比nm界面提供更多的网络设置。上述修改在重启network-manager后失效(比如注销、重启等)。

Reply View the author
非专业摸鱼选手
deepin
2021-02-01 20:09
#3

这个没有研究过,进来看看各位大佬的回答学习一下。

Reply View the author