[root@localhost ~]# ip lin
As shown in the figure: If the network card is normal, enp4s0f0-enp4s0f3 will appear (indicating that there are 4 ports that can be inserted)
![](http://dl2.iteye.com/upload/attachment/0122/3178/9495e368-5126-3422-a77c-891a8661c743.png)
2. Configure the network environment configuration
[root@localhost ~]# cd /etc/sysconfig/network-scripts/
![](http://dl2.iteye.com/upload/attachment/0122/3180/d82fcd29-b902-34df-8ca4-44da4ec34318.jpg)
Note: There is no ifcfg-enp4s0f0 in the network configuration file for the first configuration. This is a reference to ifcfg-enp1s0f0. The
specific configuration can refer to the following figure:
![](http://dl2.iteye.com/upload/attachment/0122/3182/37ddcfd3-a9e3-350d-b5e5-18362259d2b8.jpg)
3. After configuring the ip, restart the network configuration
[root@localhost network-scripts]# systemctl restart network
4. View the network configuration status
[root@localhost network-scripts]# systemctl status network
5. Check the network
[root@localhost network-scripts]# ifconfig
As shown
![](http://dl2.iteye.com/upload/attachment/0122/3184/ee190109-497e-397f-acea-6ac783942e57.jpg)