Arch Linux静态IP和动态IP配置
静态IP配置
netctl配置静态IP
sudo cp /etc/netctl/examples/ethernet-static /etc/netctl/enp0s3Description='A basic static ethernet connection'
Interface=enp0s3
Connection=ethernet
IP=static
Address=('192.168.1.102/24')
Gateway=('192.168.1.1')
DNS=('8.8.8.8' '8.8.4.4')sudo netctl enable enp0s3使用systemd配置静态IP
使用netctl配置动态IP地址
参考
Last updated