ArchLinux 静态ip



ArchLinux 静态ip

通过ip a // ip add // ifconfig 命令查看网卡

在/etc/systemd/network添加配置文件(名称根据网卡命名)10-static-ens33.network

1
  [Match]
2  Name=ens33
3  [Network]
4  Address=172.18.33.215/16
5  Gateway=172.18.0.9
6  DNS=114.114.114.114 119.29.29.29

systemctl reenable systemd-networkd