首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >我的ubuntu电脑上,同时有网线和wifi链接着,我如何才能先走wifi,后走网线?

我的ubuntu电脑上,同时有网线和wifi链接着,我如何才能先走wifi,后走网线?

提问于 2024-02-01 17:56:43
回答 0关注 0查看 50
代码语言:javascript
复制
ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.137.211  netmask 255.255.255.0  broadcast 192.168.137.255
        inet6 fe80::2f2c:7be5:375e:ab75  prefixlen 64  scopeid 0x20<link>
        ether b2:95:bd:af:37:6a  txqueuelen 1000  (Ethernet)
        RX packets 83968  bytes 5112814 (5.1 MB)
        RX errors 0  dropped 1  overruns 0  frame 0
        TX packets 1125  bytes 225821 (225.8 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 27

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 1843  bytes 241855 (241.8 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 1843  bytes 241855 (241.8 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.9.44  netmask 255.255.252.0  broadcast 192.168.11.255
        inet6 fe80::3613:62da:544:b221  prefixlen 64  scopeid 0x20<link>
        ether 08:fb:ea:e8:89:2a  txqueuelen 1000  (Ethernet)
        RX packets 103982  bytes 19870150 (19.8 MB)
        RX errors 0  dropped 1951  overruns 0  frame 0
        TX packets 2291  bytes 443787 (443.7 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

sudo ip route
default via 192.168.137.1 dev eth0 proto static metric 100
default via 192.168.8.1 dev wlan0 proto dhcp metric 600
192.168.8.0/22 dev wlan0 proto kernel scope link src 192.168.9.44 metric 600
192.168.137.0/24 dev eth0 proto kernel scope link src 192.168.137.250 metric 100
192.168.137.0/24 dev eth0 proto kernel scope link src 192.168.137.211 metric 100

回答

和开发者交流更多问题细节吧,去 写回答
相关文章

相似问题

相关问答用户
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档