Centos7.4配置网卡方法

2026-02-13 20:33:16

1、进入网卡配置文件目录

cd /etc/sysconfig/network-scripts

Centos7.4配置网卡方法

2、ifconfig获取网卡名称ens32

Centos7.4配置网卡方法

3、查找对应的网卡文件,用命令

ll *ens32*

Centos7.4配置网卡方法

4、 vi ifcfg-ens32 

Centos7.4配置网卡方法

5、重启网卡

systemctl restart network

Centos7.4配置网卡方法

6、ifconfig

查看网卡并测试

Centos7.4配置网卡方法

猜你喜欢