当前位置:网站首页>The cloned VMware virtual host network card cannot be started solution
The cloned VMware virtual host network card cannot be started solution
2022-06-22 03:26:00 【Lao Zhu Yubing】
Create a cloned vmware virtual machine , Report after startup , The network is not started .

Observe carefully , You will find that there is no eth0 Of ip Address , Because after cloning from the original machine ,centos The original machine is still used eth0 Of mac Address , But this mac Address with vmware Generated mac Different addresses . An error will also be reported when starting the network .
Tips Device eth0 does not seem to be present

stay centos Next, modify the network configuration parameters
1. [[email protected] ~]# vi /etc/sysconfig/network-scripts/ifcfg-eth0
The network card address is different from the one above , Delete HWADDR and UUID That's ok , After modification, if it is a dynamic acquisition ip The address of the network card is .
DEVICE=eth0
TYPE=Ethernet
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=dhcp
2. Modify another file
[[email protected] ~]# vi /etc/udev/rules.d/70-persistent-net.rules
Contents of the original document :
# This file was automatically generated by the /lib/udev/write_net_rules
# program, run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single
# line, and change only the value of the NAME= key.
# PCI device 0x8086:0x100f (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:1b:8f:d9", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
# PCI device 0x8086:0x100f (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:a6:6a:ef", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
Delete the first line , Second elements eth1 It is amended as follows eth0, Last after modification 2 The line reads as follows .
# PCI device 0x8086:0x100f (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:a6:6a:ef", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"Restart after modification centos6, The network card starts automatically ,centos7 After testing, there is no such problem .
边栏推荐
- Figure database ongdb release v-1.0.2
- 2022.6.21-----leetcode.1108
- Zcmu--1052: holedox eating (C language)
- 装饰器《二》 property - 简答逻辑
- Using open source software to save an enterprise level map data platform solution
- Project management software development project management
- BOM attribute, method and event application cases
- Tag dynamic programming - preliminary knowledge for question brushing -1 Dynamic programming five part problem solving method + lt.509 Fibonacci number / Sword finger offer 10 I + lt.70. Climbing stai
- golang标准库time
- On the auto increment of int type primary key in MySQL
猜你喜欢

mysql-索引创建、优化分析、索引优化

不规范的命名

FastDFS-6.0.6

【NVMe2.0b 6】NVMe 队列模型

fastdfs-5.0.5安装

Project management software development project management

uv_ loop_ Init() process

基于logback.xml实现保存日志信息的无感操作
![[microservices | Nacos] quickly realize the configuration center function of Nacos, and complete configuration update and version iteration](/img/20/4c4a062ac7a4d265cde236ee677ac1.png)
[microservices | Nacos] quickly realize the configuration center function of Nacos, and complete configuration update and version iteration

R数据分析:临床预测模型中校准曲线和DCA曲线的意义与做法
随机推荐
[nvme2.0b 5] sous - système nvm
selenium入门级项目 - 豆豆玩竞猜
服装实体店如何突破销售困境
Runtime package for golang concurrent programming
Primary key in efcore
Figure data platform solution: single node deployment
记一则服务器内存泄漏解决过程
Project management software development project management
tag动态规划-刷题预备知识-1.动态规划五部曲解题法 + lt.509. 斐波那契数/ 剑指Offer 10.I + lt.70. 爬楼梯彻底解惑 + 面试真题扩展
cmd看控制台输出红桃、方块、黑桃、梅花乱码解决
Golang standard library time
[kubernetes series] what is kubernetes?
Configuration and optimization of redis cache database
Wechat applet onpagescroll is invalid
golang并发编程之runtime包
【论文】低光图像增强的零参考深度曲线估计
AtCoder Regular Contest 142
(problem solving) missing gcr io/kubebuilder/kube-rbac-proxy:v0.8.0
【leetcode周赛总结】LeetCode第298场周赛总结(6.19)
R data analysis: significance and practice of calibration curve and DCA curve in clinical prediction model