wifi和以太网同时连接时,其中一个无法ping 通
-
主控:T113
SDK:longan_sdk
问题:如果同时连接了wifi和以太网,那么后连接的哪一个在ping时就会卡住PING baidu.com (39.156.66.10) from 192.168.43.136 wlan0: 56(84) bytes of data.
1.单独连接wifi或者以太网时,都能ping通。
2.如果先接wifi 后连接以太网,当两个同时存在时。ping -I wlan0 baidu.com
能够ping通。但是ping -I eth0 baidu.com
就不能ping通,卡在以下语句不动:PING baidu.com (39.156.66.10) from 192.168.1.11 eth0: 56(84) bytes of data.
3.如果先接以太网 后连接 wifi ,当两个同时存在时。
ping -I eth0 baidu.com
能够ping通。但是ping -I wlan0 baidu.com
就不能ping通,卡在以下语句不动:PING baidu.com (39.156.66.10) from 192.168.43.136 wlan0: 56(84) bytes of data.
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.1.11 netmask 255.255.255.0 broadcast 192.168.1.255 inet6 fe80::bc93:c3ff:feb8:91ff prefixlen 64 scopeid 0x20<link> inet6 240e:399:4da:1b40:bc93:c3ff:feb8:91ff prefixlen 64 scopeid 0x0<global> ether be:93:c3:b8:91:ff txqueuelen 1000 (Ethernet) RX packets 410 bytes 27816 (27.1 KiB) RX errors 0 dropped 286 overruns 0 frame 0 TX packets 183 bytes 10615 (10.3 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 device interrupt 38 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 112 bytes 12544 (12.2 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 112 bytes 12544 (12.2 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.43.238 netmask 255.255.255.0 broadcast 192.168.43.255 inet6 fe80::de44:6dff:fe13:3519 prefixlen 64 scopeid 0x20<link> inet6 240e:474:ff2c:d003:de44:6dff:fe13:3519 prefixlen 64 scopeid 0x0<global> ether dc:44:6d:13:35:19 txqueuelen 1000 (Ethernet) RX packets 44 bytes 13121 (12.8 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 29 bytes 3593 (3.5 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
-
@captain 你wifi的ip和eth的ip都不是同一个网段,也没设置掩码,先ping局域网,再做DNS
Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号