Centos7设置静态IP地址方法
1、操作系统为centos7.5

2、进入网卡目录
cd /etc/sysconfig/network-scripts/&&ls

3、查看ip地址和网卡名称
ip a

4、编辑网卡的配置文件
vi ifcfg-eth0

5、ifcfg-eth0 的配置内容如下,不要和内网其它ip地址冲突

6、保存退出并重启网卡
systemctl restart network

阅读量:51
阅读量:109
阅读量:60
阅读量:67
阅读量:186
1、操作系统为centos7.5

2、进入网卡目录
cd /etc/sysconfig/network-scripts/&&ls

3、查看ip地址和网卡名称
ip a

4、编辑网卡的配置文件
vi ifcfg-eth0

5、ifcfg-eth0 的配置内容如下,不要和内网其它ip地址冲突

6、保存退出并重启网卡
systemctl restart network
