Complete some common problems encountered in Linux.
When using RHEL and Centos7, I found that the network card name has changed to EnoX, which is quite strange. Now change it back to the old name eth0 which looks pleasing to the eye.
cp /etc/sysconfig/Change the network card name ens33 to eth0 under rhel and centos7 /etc/sysconfig/Change the network card name ens33 to eth0 under rhel and centos7.bak
vim /etc/sysconfig/Change the network card name ens33 to eth0 under rhel and centos7
net.ifnames=0 biosdevname=0
Change the network card name ens33 to eth0 under rhel and centos72-mkconfig -o /boot/Change the network card name ens33 to eth0 under rhel and centos72/Change the network card name ens33 to eth0 under rhel and centos7.cfg
cp /etc/sysconfifg/network-scripts/ifcfg-ens33 /etc/sysconfifg/network-scripts/ifcfg-ens33.bak
mv /etc/sysconfifg/network-scripts/ifcfg-ens33 /etc/sysconfifg/network-scripts/ifcfg-eth0
vim /etc/sysconfig/network-scripts/ifcfg-eth0
The above is the detailed content of Change the network card name ens33 to eth0 under rhel and centos7. For more information, please follow other related articles on the PHP Chinese website!