Solve the problem of \\"Device eth0 does not seem to be present\\" in Linux

888u

Last update at :2024-06-25,Edit by888u

This problem arose after "Linode panned the server system and data by cloning and retained the IP address" when migrating computer room data. I also remember migrating data to different computer rooms in the past. No such problem occurred. This time, after the migration was completed, the IP address PING was different, and I could not connect to SSH. At first, I thought it was caused by incomplete data migration. Then I thought that the incomplete data had nothing to do with the IP failure. It must be caused by a MAC address configuration problem. of.

Fortunately, the Linode VPS server has the "Lish via Browser" function. You can log in through the WEB mode to check if there are any errors.

We can see an error message\\"Bringing up interface eth0: Device eth0 does not seem to be present, delaying initialization\\", which should be caused by a MAC address configuration problem. Here Snail (laozuo.org) needs to search for how to solve this problem. There are many methods on the Internet. This is how I solved the problem.

First, delete the 70-persistent-net.rules file

rm -f /etc/udev/rules.d/70-persistent-net.rule

We cannot use the SFTP tool here, we can only use commands.

Second, edit the ifcfg-eth0 file

vi /etc/sysconfig/network-scripts/ifcfg-eth0

We change eth0 to eth1, then save and exit.

Third, restart the network

service network restart

Snail solved the problem in this way, and then detected that the IP address could be pinged, and SSH could also log in.

Recommended site searches: Hong Kong proxy server, domain name space registration, expired registered domain name query, query IP address vps US server, .cn domain name registration, US free hosting, domain name query official website, cheap virtual host, virtual host evaluation,

Solve the problem of \\

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码