当前位置:网站首页>服务器硬盘冷迁移后网卡无法启动问题
服务器硬盘冷迁移后网卡无法启动问题
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地址信息与配置文件中的不一致都会导致网卡启动提示类似的错误。
边栏推荐
- 对业务的一些思考
- 71 articles on Flink practice and principle analysis (necessary for interview)
- My creation anniversary: the fifth anniversary
- Servlet
- MySQL
- 今日睡眠质量记录77分
- stm32和电机开发(从mcu到架构设计)
- 2022-01-27 redis cluster technology research
- Flick SQL knows why (10): everyone uses accumulate window to calculate cumulative indicators
- Task6: using transformer for emotion analysis
猜你喜欢
【数据库原理及应用教程(第4版|微课版)陈志泊】【第三章习题】
mysql更新时条件为一查询
When the R language output rmarkdown is in other formats (such as PDF), an error is reported, latex failed to compile stocks Tex. solution
Detailed explanation of multithreading
Flink SQL knows why (17): Zeppelin, a sharp tool for developing Flink SQL
106. 如何提高 SAP UI5 应用路由 url 的可读性
Sword finger offer14 the easiest way to cut rope
解决 System has not been booted with systemd as init system (PID 1). Can‘t operate.
Some thoughts on business
Smbms project
随机推荐
已解决TypeError: Argument ‘parser‘ has incorrect type (expected lxml.etree._BaseParser, got type)
[Database Principle and Application Tutorial (4th Edition | wechat Edition) Chen Zhibo] [sqlserver2012 comprehensive exercise]
Fabric.js 更换图片的3种方法(包括更换分组内的图片,以及存在缓存的情况)
[colab] [7 methods of using external data]
解决 System has not been booted with systemd as init system (PID 1). Can‘t operate.
Sitescms v3.0.2 release, upgrade jfinal and other dependencies
Convolution emotion analysis task4
PowerPoint 教程,如何在 PowerPoint 中將演示文稿另存為視頻?
Introduction to the implementation principle of rxjs observable filter operator
Understanding of CPU buffer line
DQL basic query
C graphical tutorial (Fourth Edition)_ Chapter 17 generic: genericsamplep315
[Database Principle and Application Tutorial (4th Edition | wechat Edition) Chen Zhibo] [Chapter III exercises]
Kotlin - improved decorator mode
Mysql database basic operation - regular expression
Sword finger offer14 the easiest way to cut rope
C graphical tutorial (Fourth Edition)_ Chapter 20 asynchronous programming: examples - cases without asynchronous
Solve system has not been booted with SYSTEMd as init system (PID 1) Can‘t operate.
Reptile
【数据库原理及应用教程(第4版|微课版)陈志泊】【SQLServer2012综合练习】