VirtualBox replicated virtual machines cannot get the perfect solution for IP

  • 2020-11-25 07:41:58
  • OfStack

I have written an article since I set up this account, but I haven't come here for several years. Today, I would like to have a look at it and share one with you by the way.

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 the problem.

1. When copying the host, check the box to reinitialize the mac address on all networks and choose to copy completely.

2. Start the replicated host

3. Edit/etc udev/rules. d / 70 - persistent - net rules, annotation eth01 line, and will be eth1 eth0 instead, save the exit, start start_udev


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

4. Edit /etc/sysconfig/ ES30en-ES31en/ifcfg-eth0, comment HWADDR1 and save exit to restart the network service


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

5. ifconfig found that there was already an IP address.

conclusion


Related articles: