问题描述:在使用U盘完成基础安装 Arch Liunx之后,无法ping 通网络,具体如下:
ping baidu.com error:temporary failure in name resolution
ping 192.168.0.1 connect:Network is unreachable
原因分析:
在安装的镜像文件中,与联网相关的服务默认是关闭,需要进行开启,查询官方文档可以知道
Note: In the installation image, systemd-networkd, systemd-resolved, iwd and ModemManager are preconfigured and enabled by default. That will not be the case for the installed system.
具体细节可以参考官方给出的《Installation guide》1.7 小节
解决办法:开启相关服务,并且设置默认开机启动即可
# systemctl enable systems-networkd systems-resolved iwd dhcpcd
# reboot
设置之后,如果是无线连接,按照iwd的使用方法进行连接网络即可。
希望可以帮到小伙伴们