【RK3588 开发笔记——linux系统浏览器无法联网】

问题

已经连接wifi网络,直接ping www.baidu.com,失败。
ifconfig查看已经获取到ip,如下:

wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.230.44  netmask 255.255.255.0  broadcast 192.168.230.255
        inet6 240e:47c:32b8:71ce:876e:dbc9:38bc:487d  prefixlen 64  scopeid 0x0<global>
        inet6 fe80::3c88:b723:f8ba:7bb4  prefixlen 64  scopeid 0x20<link>
        ether 20:50:e7:01:aa:2a  txqueuelen 1000  (Ethernet)
        RX packets 54  bytes 5426 (5.2 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 134  bytes 17831 (17.4 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

解决

命令行中 vim /etc/resolv.conf

将 nameserver 后ip改为可用的DNS地址 我这里改成202.96.128.86
如下:

# This file is managed by man:systemd-resolved(8). Do not edit.
#
# This is a dynamic resolv.conf file for connecting local clients to the
# internal DNS stub resolver of systemd-resolved. This file lists all
# configured search domains.
#
# Run "systemd-resolve --status" to see details about the uplink DNS servers
# currently in use.
#
# Third party programs must not access this file directly, but only through the
# symlink at /etc/resolv.conf. To manage man:resolv.conf(5) in a different way,
# replace this symlink by a static file or a different symlink.
#
# See man:systemd-resolved.service(8) for details about the supported modes of
# operation for /etc/resolv.conf.

nameserver 202.96.128.86
options edns0

重启

reboot 重启恢复网络
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值