What is the difference between the bridge mode and the NAT mode?

Source: Internet
Author: User

What is the difference between the bridge mode and the NAT mode?

Bridged networking (Bridging Mode)
In this mode, the Virtual Operating System of VMWare is like an independent host in the LAN, which can access any machine in the network. In the bridge mode, you need to manually configure the IP address and subnet mask for the virtual system, and also need to be in the same network segment as the host machine, so that the virtual system can communicate with the host machine. At the same time, After configuring the gateway and DNS address, you can access the Internet through the LAN gateway or router.

Network address translation (NAT Mode)
The NAT mode enables the virtual system to use the NAT (Network Address Translation) function to access the public network through the network of the host machine. That is to say, you can use the NAT mode to access the Internet in a virtual system. In NAT mode, the TCP/IP configuration information of the virtual system is provided by the DHCP server of the VMnet8 (NAT) Virtual Network and cannot be modified manually, therefore, the virtual system cannot communicate with other real hosts in the local area network. The biggest advantage of using the NAT mode is that it is very simple for a virtual system to access the Internet. You only need the host machine to access the Internet. You do not need to configure IP addresses, subnet masks, and gateways, however, the DNS address must be specified based on the actual situation. In addition to entering the DNS address in the NIC attribute, you can also click Edit in the NAT tab of the virtual network editor in the virtual machine.

If you only allow virtual machines to access the Internet in either of the two modes, you can use bridging as long as you have a valid address in the LAN. For example, your ADSL cat has a routing function, if it is in the Organization, it is necessary for the network administrator to give you a valid IP address (now the company is bound to mac and ip addresses ).
Now the host and virtual machine are interconnected. If your adsl has the routing function, disable dhcp for the virtual machine, select bridging, check whether the two machines are allocated IP addresses in the same network segment, and disable the firewall.


What is the difference between the routing mode and the NAT mode and the bridging mode?

Ask the technical staff of your network provider

Bridge Mode route mode nat Mode

NAT is an address translation protocol. In fact, it does not simply convert private addresses to public addresses, but the addresses of private interfaces to addresses of public interfaces. that is to say, you can also convert a private address to a private address, which is a bridge to illegal Internet access.

A transparent Bridge is a bridge, but its forwarding is transparent to users.

The routing method is used to forward data. select the optimal route from the routing table for forwarding. In fact, the IP address is used to logically combine the MAC address into a combination, with a leader in the combination. The leader is the gateway we usually call, you only need to contact the gateway to find the corresponding host, that is, the MAC address.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.