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

Interconnection between two linux virtual machines

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

Share

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

I haven't updated my blog for a long time. Today, I share with you one. Two virtual machines can access each other. In this way, one virtual machine simulates the server and the other simulates the client. I can do many experiments of RHCE.

The first step is to change the mode of the network card. The mode of the two virtual machines must be the same.

Both should be in NAT mode.

Step 2: Edit the network adapter. Both have the same configuration.

Step 3: Configure the two virtual machine NIC attack IP address: DHCP

Type in command: nm-connection-editor

Step 4: Restart network services for both VMs

[root@server desktop]# systemctl restart network

Step 5: Check if you have an IP address.

The server gets the address 192.168.1.4.

The client gets 192.168.1.3.

Step 6: Verification

It can communicate with each other, indicating that the configuration is successful.

Moreover, if the wireless network card has WiFi connection, it can also connect to the Internet, so that you can use Alibaba Cloud or Netease Cloud yum resources to install software.

Wuhan refueling, China refueling! Early victory over the non-crown!

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