当前位置:网站首页>IP problem occurs when a virtual system is cloned in VirtualBox
IP problem occurs when a virtual system is cloned in VirtualBox
2022-06-28 17:04:00 【Brother Xing plays with the clouds】
Due to logging The server , So at least two virtual systems are required for testing , To avoid wasting time installing a virtual machine , I use it. VirtualBox The software's built-in function exports a virtual medium ( It is equivalent to copying a virtual system ), Finally, I started the two virtual systems , Only one computer can assign IP Address , I ifconfig For a moment , Find out how they were assigned the same IP Address , So I found a solution on the Internet , Follow the tips of the Bulls , I did the following : 1、 adopt VirtualBox Regenerate the clone of the virtual system Mac Address , Remember to shut down the system first , Pictured :
2、 Edit the configuration file of network card ,vim /etc/sysconfig/network-scripts/ifcfg-eth0, modify mac The address is new mac Address : HWADDR="08:00:27:27:5E:BF"
3、 Check /etc/udev/rules.d/70-persistent-net.rules file , You will find that there are two lines of such configuration items : # PCI device 0x8086:0x100e (e1000) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="08:00:27:23:86:95", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0" # PCI device 0x8086:0x100e (e1000) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="08:00:27:27:5e:bf", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
One of the above items is the previous network card mac Address , That is, the address of the cloned network card , I deleted it , The following one is the address of our newly added network card , however NAME yes eth1, Here we need to change to eth0: # PCI device 0x8086:0x100e (e1000) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="08:00:27:27:5e:bf", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
4、 Due to the modification of the hardware configuration file , We need to update , Let the system reload new hardware devices , Execute the following command : start_udev
5、 Now we can restart the network card ,: ifup eth0
6、 Use ifconfig View network card information , Find out eth0 Has been reassigned ip Address
边栏推荐
- 本地部署Confluence遇到的问题:MySQL数据库编码、隔离级别、验证码不显示
- Free, powerful and high-value note taking software evaluation: OneNote, heptabase, hydrogen graph, flowus
- 「杰伦熊」暴跌96.6% 明星带货NFT为何遇冷?
- Solve the problem that subcomponents will not be destroyed through setTimeout
- 【TcaplusDB知识库】批量复制游戏区
- 【TcaplusDB】祝大家端午安康!
- [laravel] about the composer installation of laravel8
- 大促场景下,如何做好网关高可用防护
- 老司机总结的12条 SQL 优化方案(非常实用)
- 如何备份 WordPress 数据库
猜你喜欢
![[tcapulusdb knowledge base] tcapulusdb technical support introduction](/img/ae/9295c8ae642cde632d06966c28d342.png)
[tcapulusdb knowledge base] tcapulusdb technical support introduction

You have a chance to collect wool. Click "earn" and you will have a chance to earn a high commission

10.Hystrix断路器

visio 使用

NOIP普及组2006-2018初赛 2019 CSP-J1 2020 CSP-J1 完善程序题

It's completely cold! Tencent's well-known software was taken off the shelves, and netizens were all sobbing...

中国SSD行业企业势力全景图

基于DataWorks的时效仿真平台|得物技术

解决sqoop出现 ERROR manager.SqlManager: Generic SqlManager.listDatabases() not implemented

【TcaplusDB知识库】TcaplusDB限制条件介绍
随机推荐
10.Hystrix断路器
6 - 字典
Super detailed steps for MySQL master-slave switching
Tianyi cloud web application firewall (edge cloud version) passed the first batch of trusted authentication
MySQL中的日志管理 日志備份與恢複
Written interview algorithm classic - longest palindrome substring
How to log in to your WordPress admin dashboard
[force button] 35 Search insert location
opencv 读取图片详解
3. caller service call - dapr
NOIP2011-2018提高组解题报告
Lucky draw animation - Carp jumps over the dragon's gate
GCC efficient graph revolution for joint node representationlearning and clustering
[random talk] January 31, 2021 Oh Huo
高并发、高可用、弹性扩展,天翼云护航企业云上业务
55. 连续子数组的最大和
The intelligent transformation is accelerated, and enterprises need a new toolbox
使用Karmada实现Helm应用的跨集群部署
编写自己的 WordPress 模板
[laravel] about the composer installation of laravel8