Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Virtual machines replicated by VirtualBox cannot get the perfect solution to IP

2025-01-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

I have written an article since I set up this account. I haven't been here for several years. Let's have a look and share it.

Last night I wanted to play with zookeeper cluster. I copied a host in vb, but I couldn't get IP. After research, I finally solved it.

1. When copying the host, check to reinitialize all mac addresses on the network, and select full replication.

two。 Host that initiated replication

3. Edit / etc/udev/rules.d/70-persistent-net.rules, comment on the eth0 line, and change eth2 to eth0, save exit, start start_udev

# vi / etc/udev/rules.d/70-persistent-net.rules # start_udev

4. Edit / etc/sysconfig/network-scripts/ifcfg-eth0, comment on the HWADDR line and save exit to restart the network service

# vi / etc/sysconfig/network-scripts/ifcfg-eth0#service network restart

5. Then ifconfig found that there is already an IP address.

Summary

The above is the perfect solution that the virtual machine copied by VirtualBox can not get IP. I hope it will be helpful to you. If you have any questions, please leave me a message and the editor will reply you in time. Thank you very much for your support to the website!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report