VMWare Fusion Networking Concepts: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
 
(8 intermediate revisions by the same user not shown)
Line 9: Line 9:
VMware Fusion offers by default two choices of subnets:
VMware Fusion offers by default two choices of subnets:


# '''vmnet8''' - a 172.16.153.0/24 host-based network with a DHCP server and external NAT access.
# '''vmnet8''' - a 172.16.153.0/24 host-based network with a DHCP server and external NAT access. Note that different Fusion versions come pre-configurated with different IP addresses (172.16.153.0, 172.16.130.0).
# '''vmnet1''' - a 192.168.10.1/24 internal host-based network with a DHCP server, without external NAT access.
# '''vmnet1''' - a 192.168.10.1/24 internal host-based network with a DHCP server, without external NAT access.


Both subnets allow guests to be directly routed into from the host processes.
Both subnets allow guests to be directly routed into from the host processes.


In both subnets, guests are dynamically configured with DHCP by default, but they can be statically configured.  
In both subnets, guests are dynamically configured with DHCP by default, but they can also be statically configured.  


For vmnet8 the static configuration range is 172.16.153.3 - 172.16.153.127 (172.16.153.1 is the host interface, and 172.16.153.2 is the NAT server).
For vmnet8 the static configuration range is 172.16.153.3 - 172.16.153.127 (172.16.153.1 is the host interface, and 172.16.153.2 is the NAT server). The DHCP range configuration can be found in /Library/Preferences/VMware Fusion/vmnet8/dhcpd.conf. The guests have external access via a NAT server, so they can  access the host's gateway.


For vmnet1 the static configuration range is 192.168.10.2 - 192.168.10.127 (192.168.10.1 is the host interface).
For vmnet1 the static configuration range is 192.168.10.2 - 192.168.10.127 (192.168.10.1 is the host interface).


For details on configuration see {{Internal|VMware_Fusion_Configuration#Networking|VMware Fusion Networking Configuration}}
==Gateway==


<font color=darkgrey>
The guests, even those configured with static IP addresses, get unroutable addresses, so if we want a guest to be able to establish connections with external servers, we need to configure it with the IP of the gateway that performs the NAT translation. This is not 172.16.153.1, but 172.16.153.'''2'''.


In the default configuration, the VMs get the IP address for their network interface over DHCP, which can be configured in <tt>/Library/Preferences/VMware Fusion/vmnet8/dhcpd.conf</tt>. Fusion performs the NAT so the VMs can access the host's gateway.
==Configuration==


This is the procedure to configure the DHCP server to serve a static address:
For details on configuration see {{Internal|VMware_Fusion_Configuration#Networking|VMware Fusion Networking Configuration}}


{{Internal|VMware_Fusion_Configuration#Configure_DHCP_to_Serve_a_Static_Address|Configure DHCP to Serve a Static Address}}
[[File:VMwareFusionNetworking.png]]


==Networking CLI Tool==
=Networking CLI Tool=


<pre>
<pre>
/Applications/VMware Fusion.app/Contents/Library/vmnet-cli
/Applications/VMware Fusion.app/Contents/Library/vmnet-cli
</pre>
</pre>
</font>

Latest revision as of 21:48, 29 April 2018

Internal

Overview

Network Topology

VMware Fusion offers by default two choices of subnets:

  1. vmnet8 - a 172.16.153.0/24 host-based network with a DHCP server and external NAT access. Note that different Fusion versions come pre-configurated with different IP addresses (172.16.153.0, 172.16.130.0).
  2. vmnet1 - a 192.168.10.1/24 internal host-based network with a DHCP server, without external NAT access.

Both subnets allow guests to be directly routed into from the host processes.

In both subnets, guests are dynamically configured with DHCP by default, but they can also be statically configured.

For vmnet8 the static configuration range is 172.16.153.3 - 172.16.153.127 (172.16.153.1 is the host interface, and 172.16.153.2 is the NAT server). The DHCP range configuration can be found in /Library/Preferences/VMware Fusion/vmnet8/dhcpd.conf. The guests have external access via a NAT server, so they can access the host's gateway.

For vmnet1 the static configuration range is 192.168.10.2 - 192.168.10.127 (192.168.10.1 is the host interface).

Gateway

The guests, even those configured with static IP addresses, get unroutable addresses, so if we want a guest to be able to establish connections with external servers, we need to configure it with the IP of the gateway that performs the NAT translation. This is not 172.16.153.1, but 172.16.153.2.

Configuration

For details on configuration see

VMware Fusion Networking Configuration

VMwareFusionNetworking.png

Networking CLI Tool

/Applications/VMware Fusion.app/Contents/Library/vmnet-cli