vi   /etc/sysconfig/network-scripts/ifcfg-enp0s3


新增linux设置静态ip


netmask 和getway可以一样 ipaddr 在局域网中ip


备注: CentOS 7.0默认使用的是firewall作为防火墙

   关闭防火墙:

systemctl stop firewalld.service #停止firewall
systemctl disable firewalld.service #禁止firewall开机启动


相关文章:

  • 2021-12-04
  • 2021-07-11
猜你喜欢
  • 2021-05-22
  • 2021-10-20
  • 2021-05-29
  • 2021-07-02
  • 2021-05-30
相关资源
相似解决方案