当前位置:网站首页>服务器硬盘冷迁移后网卡无法启动问题
服务器硬盘冷迁移后网卡无法启动问题
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地址信息与配置文件中的不一致都会导致网卡启动提示类似的错误。
边栏推荐
- 人身变声器的原理
- [combinatorics] permutation and combination (multiple set permutation | multiple set full permutation | multiple set incomplete permutation all elements have a repetition greater than the permutation
- 【数据库原理及应用教程(第4版|微课版)陈志泊】【第四章习题】
- Brief introduction to mvcc
- STM32 and motor development (from MCU to architecture design)
- 【数据库原理及应用教程(第4版|微课版)陈志泊】【SQLServer2012综合练习】
- mysql更新时条件为一查询
- C graphical tutorial (Fourth Edition)_ Chapter 20 asynchronous programming: examples - cases without asynchronous
- Sword finger offer 14- I. cut rope
- Task5: multi type emotion analysis
猜你喜欢
![[Database Principle and Application Tutorial (4th Edition | wechat Edition) Chen Zhibo] [Chapter IV exercises]](/img/8b/bef94d11ac22e3762a570dab3a96fa.jpg)
[Database Principle and Application Tutorial (4th Edition | wechat Edition) Chen Zhibo] [Chapter IV exercises]

Detailed explanation of multithreading

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

Cache penetration and bloom filter

【数据库原理及应用教程(第4版|微课版)陈志泊】【SQLServer2012综合练习】

Flick SQL knows why (10): everyone uses accumulate window to calculate cumulative indicators

STM32 and motor development (from MCU to architecture design)

Logseq 评测:优点、缺点、评价、学习教程

MySQL_ JDBC

18W word Flink SQL God Road manual, born in the sky
随机推荐
2022-01-27 redis cluster cluster proxy predixy analysis
Flink SQL knows why (XIV): the way to optimize the performance of dimension table join (Part 1) with source code
Road construction issues
35道MySQL面试必问题图解,这样也太好理解了吧
2022-01-27 research on the minimum number of redis partitions
Setting up Oracle datagurd environment
C graphical tutorial (Fourth Edition)_ Chapter 13 entrustment: what is entrustment? P238
C graphical tutorial (Fourth Edition)_ Chapter 20 asynchronous programming: examples - cases without asynchronous
PowerPoint 教程,如何在 PowerPoint 中将演示文稿另存为视频?
php:  The document cannot be displayed in Chinese
Fabric.js 更换图片的3种方法(包括更换分组内的图片,以及存在缓存的情况)
Reptile
Elk note 24 -- replace logstash consumption log with gohangout
Logseq evaluation: advantages, disadvantages, evaluation, learning tutorial
2022-02-11 heap sorting and recursion
Useful blog links
C graphical tutorial (Fourth Edition)_ Chapter 20 asynchronous programming: examples - using asynchronous
这本数学书AI圈都在转,资深ML研究员历时7年之作,免费电子版可看
Create a dojo progress bar programmatically: Dojo ProgressBar
Today's sleep quality record 77 points