Bridge Adaptor vs NAT.

By | February 18, 2019

There are 2 main network choices when you installing virtual machine: Bridge adapter and NAT (Network address translation). The bridge adapter option connect new virtual device directly to the network adapter installed on the physical host device. The IP address assigned to the virtual machine belongs to the same subnet as the physical device IP address related to the same network adapter. Usually the selection is preferable because it simplifies networks communication between host and guest.
NAT option creates new private subnet which connected to the host subnet though the router. It is more complicated but may be reasonable to use because of saving IP address of host network or restrict access to private subnet from exterior. The images below explain connection particularities of these to selections:

Let us begin with Bridge Adapter.

Guest and host machines belong to the same subnet and both are connected to the same gateway.

Host machine network configuration looks like this:

Guest machine network configuration for bridge adapter option:|



Now select NAT option for virtual machine:

Guest machine belongs to different subnet and has own gateway connected to host subnet:

Host machine network configuration is the same as above, but guest’s configuration was changed:

Now to get access to guest’ network port forwarding is required. Every server port on guest machine should be configured for forwarding, for example ssh port 22:

Now if you want to ssh guest machine from host subnet putty session setup will look like this (based on selected ssh port forwarding, picture above):

Leave a Reply

Your email address will not be published. Required fields are marked *