el7 静态 ip 配置 Posted on 2016-04-29 Edited on 2024-09-09 In network 查看网卡1ip link 修改网卡配置 修改配置文件ifcfg-{网卡名称}eg: /etc/sysconfig/network-scripts/ifcfg-eno16777736 12345ONBOOT=yesIPADDR=192.168.1.234GATEWAY=192.168.1.1DNS1=202.96.64.68DNS2=8.8.8.8 修改resolv.confeg: /etc/resolv.conf12nameserver 202.96.64.68nameserver 8.8.8.8 重启network服务重启network服务 1service network restart 参考&鸣谢 centos7配置静态IP