当前位置:网站首页>服务器硬盘冷迁移后网卡无法启动问题
服务器硬盘冷迁移后网卡无法启动问题
2022-07-03 12:39:00 【星哥玩云】
1、迁移以后,会存在其中一个网卡无法启动(eth0 or eth1)
[[email protected] ~]# ifup eth0
WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.
WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.
Device eth0 does not seem to be present, delaying initialization.
2、删除文件
[[email protected] ~]# mv /etc/udev/rules.d/70-persistent-net.rules /etc/udev/rules.d/70-persistent-net.rules.bak
3、注释掉文件ifcfg-eth0及ifcfg-eth01中MAC地址(HWADDR)
[[email protected] ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=static
#HWADDR=“XX:XX:XX:XX:XX:XX”
ONBOOT=yes
TYPE=Ethernet
4、重启服务器(重启网卡不好使)
延展说明:
引起这样的问题主要是因为我们拔硬盘将硬盘从一台服务器搬到另一台服务器以后,两台服务器网卡的MAC地址不一致,所以我们需要清除原来服务器配置文件指定的MAC地址,重启以后重新加载新服务器的MAC地址,网卡启动也就成功了。
当然由类似情况导致的网卡MAC地址信息与配置文件中的不一致都会导致网卡启动提示类似的错误。
边栏推荐
- 人身变声器的原理
- 【数据库原理及应用教程(第4版|微课版)陈志泊】【第四章习题】
- Convolution emotion analysis task4
- php:  The document cannot be displayed in Chinese
- [colab] [7 methods of using external data]
- Sword finger offer 15 Number of 1 in binary
- DQL basic query
- Task6: using transformer for emotion analysis
- Create a dojo progress bar programmatically: Dojo ProgressBar
- [data mining review questions]
猜你喜欢

剑指 Offer 12. 矩阵中的路径

35道MySQL面试必问题图解,这样也太好理解了吧

MySQL

Flink SQL knows why (16): dlink, a powerful tool for developing enterprises with Flink SQL

PowerPoint 教程,如何在 PowerPoint 中將演示文稿另存為視頻?

The difference between stratifiedkfold (classification) and kfold (regression)

Servlet

Flink SQL knows why (XV): changed the source code and realized a batch lookup join (with source code attached)

Flink SQL knows why (XI): weight removal is not only count distinct, but also powerful duplication

【数据库原理及应用教程(第4版|微课版)陈志泊】【SQLServer2012综合练习】
随机推荐
Anan's doubts
Servlet
When the R language output rmarkdown is in other formats (such as PDF), an error is reported, latex failed to compile stocks Tex. solution
剑指 Offer 17. 打印从1到最大的n位数
2022-02-14 incluxdb cluster write data writetoshard parsing
php:  The document cannot be displayed in Chinese
Some thoughts on business
【Colab】【使用外部数据的7种方法】
【数据库原理及应用教程(第4版|微课版)陈志泊】【第五章习题】
MySQL
[Database Principle and Application Tutorial (4th Edition | wechat Edition) Chen Zhibo] [Chapter IV exercises]
Four problems and isolation level of MySQL concurrency
An example of newtonjason
Logback 日志框架
Flink SQL knows why (13): is it difficult to join streams? (next)
Server coding bug
C graphical tutorial (Fourth Edition)_ Chapter 20 asynchronous programming: examples - using asynchronous
luoguP3694邦邦的大合唱站队
【数据库原理及应用教程(第4版|微课版)陈志泊】【第四章习题】
Flink SQL knows why (XI): weight removal is not only count distinct, but also powerful duplication