当前位置:网站首页>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 data platform solution: single node deployment
- Harmonyos Hongmeng uses ORM bee to access database instances
- Irregular layout of table label
- Nebula Graph学习篇2_版本v2.6.1之前的bug导致OOM
- golang并发编程之Mutex互斥锁实现同步和原子操作(atomic)
- Golang standard library time
- golang标准库time
- Adaptive batch job scheduler: automatically derive parallelism for Flink batch jobs
- golang并发编程之原子操作详解
- Lectures explanation for unsupervised graph level representation learning (usib)
猜你喜欢

360edr planing

ASUS reinstallation system keyboard lamp failure = & gt; Refitting the ATK drive

【爬虫笔记1】环境搭建和必要工具Selenium

A solution to memory leak in server

基于logback.xml实现保存日志信息的无感操作

On the auto increment of int type primary key in MySQL

NXP imx8mp learning records

Splunk: Auto load Balanced TCP Output issue

泛微 E-cology V9 信息泄露漏洞

【NVMe2.0b 6】NVMe 队列模型
随机推荐
[nvme2.0b 9] controller initialization process
uv_ loop_ Init() process
[crawler notes 2] mouse events, screenshots and common attack methods
Fastdfs5.0.11 installation
[nvme2.0b 10] controller shutdown and NVM subsystem shutdown
Splunk: Auto load Balanced TCP Output issue
【NVMe2.0b 11】NVMe Reset
图书馆管理系统(PHP期末报告)
为什么在高并发下很容易就被setInterval给坑了
Unity3d C # generates non repeated random numbers in the interval
【爬虫笔记1】环境搭建和必要工具Selenium
美容院怎样做活动
torch.max()使用讲解
[kubernetes series] what is kubernetes?
装饰器《二》 property - 简答逻辑
A component required a bean of type 'com.example.demo3.service.UserServiceImp' that could not be fou
【 thesis 】 zero reference depth curve estimation for low light image enhancement
【NVMe2.0b 8】NVMe 队列仲裁机制
R数据分析:临床预测模型中校准曲线和DCA曲线的意义与做法
服装实体店如何突破销售困境