centos7系统下网络配置

1、检查网卡
[root@localhost ~]# ip lin

如图:如果网卡正常,会出现enp4s0f0-enp4s0f3(表示可以插入的端口有4个)

2、配置网络环境配置
[root@localhost ~]# cd /etc/sysconfig/network-scripts/


说明:第一次配置网络配置文件中没有ifcfg-enp4s0f0,这个是参考ifcfg-enp1s0f0的
具体配置可以参考下图:


3、配置ip后,重启网络配置
[root@localhost network-scripts]# systemctl restart network

4、查看网络配置状态
[root@localhost network-scripts]# systemctl status network

5、检查网络
[root@localhost network-scripts]# ifconfig

  如图









猜你喜欢

转载自jiandequn.iteye.com/blog/2348207