In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "how to configure Linux virtual machine network". The explanation content in this article is simple and clear, easy to learn and understand. Please follow the idea of Xiaobian slowly and deeply to study and learn "how to configure Linux virtual machine network" together!
1. Look at the Edit tab in the Native Gateway Open menu bar, subtab Virtual Machine Network Editor, and locate the configuration in NAT mode
Remember these parameters in NAT: subnet IP is 192.168.159.0, subnet mask is 255.255.255.0, and gateway IP address.
These parameters will be used later in step 2.
2. Configure VM static IP Open ifcfg-etho configuration file and enter network configuration
[root@test1 ~]# vim /etc/sysconfig/network-scripts/ifcfg-eth0 Enter the above command to enter the ifcfg-eth0 file and first show the original configuration parameters:
The following is the modified configuration file. In order to describe the correspondence of various IP addresses more clearly, I marked it with red arrows.
Attachment: Detailed parameters in the configuration file DEVICE=eth0 #Network card device name, do not modify the name TYPE=Ethernet #Network type, Ethernet BOOTPROTO=static #Enable static IP address ONBOOT=yes #Enable automatic network connectivity IPADDR=192.168.78.100 #Set IP address NETMASK=255.255.255.0 #Set subnet mask GATEWAY=192.168.78.2 #Set Gateway DNS1= 114.114.114 #Set up standby DNS3. Restart network configuration [root@test1 ~]# service network restart
4. Test network availability
Then ping the external network, for example:
5. Failure to configure the local virtual network card is disabled, related IP address conflict, and so on.
It is recommended that you do this kind of configuration must be careful and careful.
Thank you for reading, the above is "Linux virtual machine network how to configure" the content, after the study of this article, I believe we have a deeper understanding of how to configure Linux virtual machine network, the specific use of the situation also needs to be verified by practice. Here is, Xiaobian will push more articles related to knowledge points for everyone, welcome to pay attention!
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.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.