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 implement static ip in vmware nat mode

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

Share

Shulou(Shulou.com)05/31 Report--

This article introduces the relevant knowledge of "how to achieve static ip in vmware nat mode". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

NAT mode:

Virtual machines can go to the external network and can access other computers on the same network as the host computer (and vice versa).

View network parameters of a virtual machine

1) Open the virtual machine, and select the menu "Edit" and "Edit Virtual Network", as shown below:

Click nat Settings, restore the default parameters, and then set NAT. Set the subnet IP, gateway, etc., of the virtual network

Set virtual network parameters for physical hosts

1) Open the network connection of the physical host, find "VMware Network Adapter VMnet8", and right-click to set properties:

2) set the virtual network IP address of the physical host: 192.168.158.XMagi X is between 0x255, but it cannot be repeated with the subnet IP of the virtual network above. The subnet mask and default gateway are consistent with the subnet mask and gateway of the virtual network obtained above. DNS can be set or ignored, if set, you can take advantage of google's free DNS:8.8.8.8 and 8.8.4.4.

Set network parameters for specific virtual machines

1) set ip, gateway, etc.

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

2) set the network IP address of the virtual machine: 192.168.230.X Magi X is between 0255.But it cannot be repeated with the subnet IP of the virtual network above and the network IP of the physical machine immediately. The subnet mask and default gateway are consistent with the subnet mask and gateway of the virtual network obtained above. Note that the DNS must be set here. If set, you can use google's free DNS:8.8.8.8 and 8.8.4.4, or 192.168.158.2 after testing, and if there is a virtual machine, you can do the same.

This is the end of the content of "how to implement static ip in vmware nat mode". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

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: 246

*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