VMware network NET mode¶
VMware network NET mode refers to a specific VMware network configuration where the virtual machine and the host system reside on the same logical subnet.^[600-developer__tools__vscode__vmware.md]
In this mode, the host machine acts as the gateway for the virtual machines.^[600-developer__tools__vscode__vmware.md] This setup requires manual configuration of network settings, such as assigning a static IP address that matches the host's subnet (e.g., 192.168.79.x) and setting the gateway to the host's IP address (e.g., 192.168.79.1).^[600-developer__tools__vscode__vmware.md]
Static IP Configuration (Linux)¶
To configure a static IP within a VMware virtual machine in NET mode, the network interface configuration file (typically located in /etc/sysconfig/network-scripts/) must be edited.^[600-developer__tools__vscode__vmware.md]
Key parameters include setting BOOTPROTO=static and defining the IPADDR, PREFIX (or NETMASK), and GATEWAY.1^[600-developer__tools__vscode__vmware.md]
Network Mapping and Hostnames¶
Managing virtual machines in NET mode often involves updating local host files to resolve hostnames to IPs, simplifying network access between the host and guests.2^[600-developer__tools__vscode__vmware.md]
Windows Host Configuration¶
On the Windows host, the hosts file (located at C:\Windows\System32\drivers\etc) can be populated with entries for the virtual machines.3^[600-developer__tools__vscode__vmware.md]
192.168.79.10 w10
192.168.79.20 w20
...
Linux Guest Configuration¶
Inside the Linux virtual machine, the /etc/hosts file should be updated to include mappings for other nodes in the cluster, allowing communication via hostname (e.g., ping w10).^[600-developer__tools__vscode__vmware.md]
The system hostname itself can be set using the hostnamectl command (e.g., hostnamectl set-hostname w20).^[600-developer__tools__vscode__vmware.md]
Related Concepts¶
- [[Virtualization]]
- [[DHCP]]
- [[Static IP]]
Sources¶
600-developer__tools__vscode__vmware.md