当前位置:网站首页>服务器硬盘冷迁移后网卡无法启动问题
服务器硬盘冷迁移后网卡无法启动问题
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地址信息与配置文件中的不一致都会导致网卡启动提示类似的错误。
边栏推荐
- Servlet
- 71 articles on Flink practice and principle analysis (necessary for interview)
- Task6: using transformer for emotion analysis
- 已解决(机器学习中查看数据信息报错)AttributeError: target_names
- [Database Principle and Application Tutorial (4th Edition | wechat Edition) Chen Zhibo] [Chapter 7 exercises]
- MySQL_ JDBC
- 2022-02-09 survey of incluxdb cluster
- 106. 如何提高 SAP UI5 应用路由 url 的可读性
- [exercise 5] [Database Principle]
- PostgreSQL installation
猜你喜欢

2022-02-14 analysis of the startup and request processing process of the incluxdb cluster Coordinator

Flink SQL knows why (12): is it difficult to join streams? (top)

regular expression

Some thoughts on business

【历史上的今天】7 月 3 日:人体工程学标准法案;消费电子领域先驱诞生;育碧发布 Uplay

Elk note 24 -- replace logstash consumption log with gohangout

IDEA 全文搜索快捷键Ctr+Shift+F失效问题

【数据库原理及应用教程(第4版|微课版)陈志泊】【第六章习题】

MySQL_ JDBC

Flink SQL knows why (XV): changed the source code and realized a batch lookup join (with source code attached)
随机推荐
2022-02-14 incluxdb cluster write data writetoshard parsing
2022-02-11 practice of using freetsdb to build an influxdb cluster
C graphical tutorial (Fourth Edition)_ Chapter 17 generic: genericsamplep315
Two solutions of leetcode101 symmetric binary tree (recursion and iteration)
2022-02-14 analysis of the startup and request processing process of the incluxdb cluster Coordinator
Sword finger offer14 the easiest way to cut rope
剑指 Offer 15. 二进制中1的个数
Deeply understand the mvcc mechanism of MySQL
剑指 Offer 12. 矩阵中的路径
Sword finger offer 14- I. cut rope
Four problems and isolation level of MySQL concurrency
用户和组命令练习
【数据库原理及应用教程(第4版|微课版)陈志泊】【SQLServer2012综合练习】
Create a dojo progress bar programmatically: Dojo ProgressBar
The difference between session and cookie
Logback 日志框架
[combinatorics] permutation and combination (the combination number of multiple sets | the repetition of all elements is greater than the combination number | the derivation of the combination number
sitesCMS v3.1.0发布,上线微信小程序
Flink SQL knows why (19): the transformation between table and datastream (with source code)
In the promotion season, how to reduce the preparation time of defense materials by 50% and adjust the mentality (personal experience summary)