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 set fixed IP address for Vmware virtual machine

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

Editor to share with you how to set a fixed IP address for the Vmware virtual machine, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!

First, select Edit → Virtual Network Editor in the menu bar, open the virtual network editor dialog box, select the Net network connection method, set the subnet IP at will, click the NAT settings page to view the subnet mask and gateway, and then modify the static IP.

Note: "use local DHCP services …" above This item is not unchecked.

Second, check the physical host network card settings, open the network and sharing center → to change the adapter settings →, right-click on the VMware Network Adapter VMnet8, select the properties button to open the properties dialog box.

Please fill in the IP address as set in the first step.

Third, enter the virtual machine and set a fixed IP address.

Enter the following command: vi / etc/sysconfig/network-scripts/ifcfg-eth0

Note: modifying network settings must be a root user or sudo vi / etc/sysconfig/network-scripts/ifcfg-eth0

The following figure is modified

DEVICE= "eth0" BOOTPROTO= "static" HWADDR= "00:0C:29:F4:7E:C9" IPV6INIT= "yes" NM_CONTROLLED= "ONBOOT=" yes "TYPE=" Ethernet "UUID=" 2a76c2f8-cd47-44af-936d-11559b3a498d "IPADDR=" 192.168.73.100 "NETMASK=" 255.255.255.0 "GATEWAY=" 192.168.73.1 "

Next, save exit

In order for the address to take effect, you need to restart the network configuration, as shown in the following figure: service network restart

Now you can connect through SecureCRT.

The above is all the contents of the article "how to set a fixed IP address for a Vmware virtual machine". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, 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

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report