Navigation

    全志在线开发者论坛

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • 在线文档
    • 社区主页

    wifi和以太网同时连接时,其中一个无法ping 通

    其它全志芯片讨论区
    1
    1
    121
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      captain LV 5 last edited by

      主控: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
      
      1 Reply Last reply Reply Quote Share 0
      • 1 / 1
      • First post
        Last post

      Copyright © 2022 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号

      行为准则 | 用户协议 | 隐私权政策