ArchLinux 静态ip

ArchLinux 静态ip

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

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

  • [Match]
    Name=ens33
    [Network]
    Address=172.18.33.215/16
    Gateway=172.18.0.9
    DNS=114.114.114.114 119.29.29.29
    
systemctl reenable systemd-networkd

猜你喜欢

转载自www.cnblogs.com/ShawnChan/p/12726125.html