Network configuration under centos7 system

1. Check the network card
[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)

2. Configure the network environment configuration
[root@localhost ~]# cd /etc/sysconfig/network-scripts/


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:


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









Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326354647&siteId=291194637