Solution to the same IP after cloning Ubuntu 18 virtual machine

Solution to the same IP after cloning Ubuntu 18 virtual machine

Preface

I recently used a virtual machine to install Ubuntu 18.04. After cloning, I found that the IP address was the same. This is because the cloning used file cloning, so everything is the same. The easiest way to solve the problem is to modify the mac and then start using the netplan apply command and restart the machine.

Workaround

To modify the mac, click Network Card------> Advanced----> Generate and save.

upscale

As shown in the figure below, the ip when cloned

IP after netplan apply command

Summarize

The above is the full content of this article. I hope that the content of this article will have certain reference learning value for your study or work. If you have any questions, you can leave a message to communicate. Thank you for your support for 123WORDPRESS.COM.

You may also be interested in:
  • Ubuntu 14.04 virtual machine installation (illustration and text)
  • Detailed tutorial on installing Ubuntu on VirtualBox virtual machine (picture and text)
  • How to install Ubuntu Server 16.04 virtual machine in VirtualBox
  • Ubuntu virtual machine multi-network card configuration
  • How to install KVM virtual machine on Ubuntu 18.04 LTS
  • Detailed steps to create a Genymotion Android virtual machine under Ubuntu 14.04
  • Install Ubuntu 12.04 in VirtualBox virtual machine (graphic tutorial)
  • Graphic tutorial on installing Ubuntu in virtualbox
  • Install KVM in ubuntu kylin virtual machine

<<:  CentOS 6.5 i386 installation MySQL 5.7.18 detailed tutorial

>>:  js object-oriented method to achieve drag effect

Recommend

A MySQL migration plan and practical record of pitfalls

Table of contents background Solution 1: Back up ...

Detailed explanation and examples of database account password encryption

Detailed explanation and examples of database acc...

How to use JavaScript to get the most repeated characters in a string

Table of contents topic analyze Objects of use So...

Two box models in web pages (W3C box model, IE box model)

There are two types of web page box models: 1: Sta...

javascript implements web version of pinball game

The web pinball game implemented using javeScript...

A detailed introduction to the netstat command in Linux

Table of contents 1. Introduction 2. Output Infor...

4 solutions to mysql import csv errors

This is to commemorate the 4 pitfalls I stepped o...

A quick review of CSS3 pseudo-class selectors

Preface If CSS is the basic skill of front-end de...

Introduction to several ways to introduce CSS in HTML

Table of contents 1. Embed CSS styles directly in...

IDEA2021 tomcat10 servlet newer version pitfalls

Because the version I used when I was learning wa...

MySQL 8.0 installation tutorial under Linux

This article introduces how to install MySQL 8.0 ...

Implementation of MySQL index-based stress testing

1. Simulate database data 1-1 Create database and...

Differences between proxy_pass in two modules in nginx

1. The proxy_pass directive of the 1.ngx_stream_p...