导航

    全志在线开发者论坛

    • 注册
    • 登录
    • 搜索
    • 版块
    • 话题
    • 在线文档
    • 社区主页

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

    其它全志芯片讨论区
    2
    2
    1501
    正在加载更多帖子
    • 从旧到新
    • 从新到旧
    • 最多赞同
    回复
    • 在新帖中回复
    登录后回复
    此主题已被删除。只有拥有主题管理权限的用户可以查看。
    • C
      captain LV 5 最后由 编辑

      主控: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
      
      C 1 条回复 最后回复 回复 引用 分享 0
      • C
        creaznico LV 4 @captain 最后由 编辑

        @captain 你wifi的ip和eth的ip都不是同一个网段,也没设置掩码,先ping局域网,再做DNS

        1 条回复 最后回复 回复 引用 分享 0
        • 1 / 1
        • First post
          Last post

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

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