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

How to get the IP address setting automatically by CentOS in Oracle VM Virtual

2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

In this issue, the editor will bring you about how to automatically obtain IP address settings for CentOS in Oracle VM Virtual. The article is rich in content and analyzes and describes for you from a professional point of view. I hope you can get something after reading this article.

Configure the network card in CentOS to automatically obtain the IP address when booting:

Vi / etc/sysconfig/network-scripts/ifcfg-eth0

Change ONBOOT= "no" to ONBOOT= "yes"

After saving: service network restart

View IP:ifconfig eth0

Then the communication between the host and the client is realized through the virtual network card of the virtual machine by using the port forwarding function (port forwarding) of Oracle VM VirtualBox.

Open the settings window of virtualbox-> Network-> Network Card 1 enable network connection-> connection method: NAT-> access network cable-> Port forwarding. The settings are as follows

Then configure the virtual network card IP address to map to the client IP: Port 22, and the client host port set to 2200 in the figure

Next, you can connect to the system on the virtual machine through the putty client tool. Note that the Port is set to 2200.

The above is the setting of how to automatically obtain the IP address of CentOS in Oracle VM Virtual. If you happen to have similar doubts, please refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.

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