设置ip和网关
ifconfig eth0 10.82.16.233 netmask 255.255.255.0
route add default gw 10.82.16.1
或者
ip addr add 192.168.0.100/24 dev enp0s4
ip link set dev enp0s4 up
ip route add default via 192.168.0.1
echo nameserver 208.67.222.222 >> /etc/resolv.conf
详细网络配置
https://www.cnblogs.com/mitnick/p/5111348.html
设置dsn
vim /etc/resolv.conf
nameserver 8.8.8.8
nameserver 10.82.1.3
换镜像源
/etc/pacman.d/mi*****