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

Three Network modes of Virtual Machine

2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

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

After watching the Zero Foundation introduction to Virtualization, it is necessary to understand the three network modes of virtual machines.

What is bridged, what is NAT, what is host-only? This can be understood from here.

VMWare provides three modes of operation, which are bridged (bridging mode), NAT (network address translation mode), and host-only (host mode). If you want to apply them properly in network management and maintenance, you should first understand these three working modes.

First of all, here is an overview of the circumstances under which they are needed.

Bridged is equivalent to creating a stand-alone computer. You can make it communicate with the host, but the network needs to be configured manually

Host-only is isolated from the host, but virtual machines can communicate with each other

The advantage of NAT mode is the ability to surf the Internet.

1.bridged (bridging mode)

In this mode, the virtual operating system of VMWare is like an independent host in the local area network, which can access any machine in the network. In bridging mode, you need to manually configure the IP address and subnet mask for the virtual system, and be on the same network segment as the host machine so that the virtual system can communicate with the host machine. At the same time, because the virtual system is an independent host system in the local area network, its TCP/IP configuration information can be manually configured to access the Internet through the local area network gateway or router.

The relationship between a virtual system using bridging mode and the host machine is like two computers connected to the same Hub. If you want them to communicate with each other, you need to configure the virtual system with an IP address and subnet mask, otherwise you will not be able to communicate.

If you want to use VMWare to build a new virtual server in the LAN to provide network services for LAN users, you should choose the bridging mode.

2.host-only (host mode)

In some special network debugging environments, you can use host-only mode when it is required to separate the real environment from the virtual environment. In host-only mode, all virtual systems can communicate with each other, but virtual systems and real networks are isolated.

Tip: in host-only mode, the virtual system and the host machine system can communicate with each other, which is equivalent to the interconnection of the two machines through twisted pair.

In the host-only mode, the TCP/IP configuration information of the virtual system (such as IP address, gateway address, DNS server, etc.) is dynamically assigned by the DHCP server of the VMnet1 (host-only) virtual network.

If you want to use VMWare to create a virtual system that is isolated from other machines in the network and do some special network debugging work, you can choose host-only mode.

3.NAT (Network address Translation Mode)

Using NAT mode is to let the virtual system access the public network through the network where the host machine is located with the help of NAT (Network address Translation) function. In other words, NAT mode can be used to access the Internet in a virtual system. The TCP/IP configuration information of the virtual system in NAT mode is provided by the DHCP server of the VMnet8 (NAT) virtual network and can not be modified manually, so the virtual system can not communicate with other real hosts in this local area network. The biggest advantage of using NAT mode is that the virtual system is very easy to access the Internet, you do not need to make any other configuration, only the host can access the Internet.

I hope it will be helpful to face 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: 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

Network Security

Wechat

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

12
Report