您尚未登录。

楼主 #1 2021-02-28 19:35:42

Aaron
会员
注册时间: 2021-02-20
已发帖子: 2
积分: 2

求助:v3s能ping百度却无法ping通localhost

开发板:荔枝派Zero
环境:linux主线5.11

问题:能ping通www.baidu.com,电脑也能ping通板子,板子却ping不通电脑,localhost、127.0.0.1都ping不通。

附:解决这个主要是用ffmpeg和ffserver推流出现http://127.0.0.1:8090/feed1.ffm: Connection timed out的问题,现在在电脑浏览器能打开ffserver的stat网页,但推出来的视频流一直是0kb,播放器也一直在转圈圈加载,所以感觉是这方面的问题。万分感谢。

# ifconfig
eth0      Link encap:Ethernet  HWaddr 9E:83:1D:37:F7:62  
          inet addr:192.168.1.114  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:11 errors:0 dropped:0 overruns:0 frame:0
          TX packets:11 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1290 (1.2 KiB)  TX bytes:1866 (1.8 KiB)
          Interrupt:45 

wlan0     Link encap:Ethernet  HWaddr 84:20:96:AB:33:1D  
          inet addr:192.168.0.127  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2181 errors:0 dropped:2188 overruns:0 frame:0
          TX packets:133 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:238345 (232.7 KiB)  TX bytes:24048 (23.4 KiB)
# ping www.baidu.com
PING www.baidu.com (180.101.49.12): 56 data bytes
64 bytes from 180.101.49.12: seq=0 ttl=53 time=21.069 ms
64 bytes from 180.101.49.12: seq=1 ttl=53 time=19.687 ms
^C
--- www.baidu.com ping statistics ---
3 packets transmitted, 2 packets received, 33% packet loss
round-trip min/avg/max = 19.687/20.378/21.069 ms
# ping localhost
PING localhost (127.0.0.1): 56 data bytes
^C
--- localhost ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss



# ping 127.0.0.1
PING 127.0.0.1 (127.0.0.1): 56 data bytes
^C
--- 127.0.0.1 ping statistics ---
5 packets transmitted, 0 packets received, 100% packet loss
# /etc/nsswitch.conf

passwd:         files
group:          files
shadow:         files

hosts:          files dns
networks:       files dns

protocols:      files
services:       files
ethers:         files
rpc:            files
# cat /etc/hosts
127.0.0.1	localhost
127.0.1.1	root
# cat /etc/hostname 
root

离线

楼主 #3 2021-02-28 19:50:15

Aaron
会员
注册时间: 2021-02-20
已发帖子: 2
积分: 2

Re: 求助:v3s能ping百度却无法ping通localhost

哇酷小二 说:

ifconfig lo up

试一试这个


谢谢谢谢,可以了,ffmpeg也可以推流了。

抱歉哈,没系统学过linux,刚查了下才知道lo是环回,有点傻了。再次感谢。

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn