Virtual machine centos7 ens33 can surf the Internet, but it will not be able to access the Internet if changed to eth0

service network restart restart also failed.

I did it here https://blog.csdn.net/qq_3718.
https://www.cnblogs.com/gerry.

feels like the steps are all the same

it is said on the Internet that the hardware ID has changed, but I can"t find out what hardware ID should be changed

[root@localhost etc]-sharp dmesg | grep-I eth [1.347719] e1000
0000sharp dmesg 02grep 01.0 eth0: (PCI:66MHz:32-bit) 00:0c:29:67:ff:e3 [1.347738]
e100000001402sharp dmesg 01.0 eth0: Intel (R) PRO/1000 Network Connection

attach dmesg command, there is no so-called rename record

[3.057410] e1000 000000 blockquote 01.0 ens33: renamed from eth0

ifconfig shows ens33

Dec.02,2021

the iptables rule that was invalidated due to the change of the name of the network card has come into effect.

the rule that previously expired is

sudo iptables-t mangle-A PREROUTING-s 192.168.0 DROP 16-I eth0-j DROP

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1bd821c-310e1.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1bd821c-310e1.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?