Modifying the subnet range of the NAT network in Fusion (2003463)
This article explains the process of modifying the VMware NAT properties for Fusion virtual machines.
Caution: VMware does not provide support for this feature. This is an advanced operation. It should only be done by someone who understands the full scope of this change and how to use the utilities mentioned in this document.
To modify the NAT subnet range, you must modify one configuration file and then invoke a command-line utility to propagate those changes to the rest of the system.
To modify the NAT subnet range:
- Make sure Fusion is not running. If Fusion is running, suspend or shut down any running virtual machines and quit VMware Fusion.
- Open Terminal.app (Applications/Utilities) and run the following command:
cd /Library/Application\ Support/VMware\ Fusion/ (Fusion 3.x)
cd /Library/Preferences/VMware\ Fusion/ (Fusion 4.x and later)
- In the Terminal window, type sudo nano networking to edit the networking file in the nano editor.
For more information on using the nano editor, see the nano MAN page.
- Find the line which reads:
answer VNET_8_HOSTONLY_SUBNET xx.xx.xx.xx
Where xx.xx.xx.xx is the current IP address.
- Change the IP address to match the subnet range that you want to use.
Example: To use the 10.10.10.0 subnet, change the line to read:
answer VNET_8_HOSTONLY_SUBNET 10.10.10.0
- Save the file and close Nano.
- Using Terminal, run this command:
Fusion 3.x – sudo "/Library/Application Support/VMware Fusion/vmnet-cli" --configure
Fusion 4.x – sudo /Applications/VMware\ Fusion.app/Contents/Library/vmnet-cli --configure
- When prompted for a password, enter the administrator user's password.
- For security reasons, the password that you type is not displayed. You do not need to enter your password again for the next five minutes.
This command sets the new DHCP subnet range.
- In Fusion 3.x, restart the vmnet network services using this command:
sudo "/Library/Application Support/VMware Fusion/boot.sh" --restart
In Fusion 4.x, you need not restart the network services because it does not run unless Fusion is running. The service will automatically start with the new settings when you launch Fusion the next time.
Implementing this article improperly can lead to your virtual machine failing to connect to your network or to see other network resources. If you are not familiar with the concepts in this document, please consult a Network Administrator.
VMware does not provide support for this feature.
You may need to manually refresh the IP information within your guest operating system.
In Windows, this is done using the command line utility ipconfig. To refresh the IP information:
- Open a command prompt. For more information, see Opening a command or shell prompt (1003892).
- Enter this command:
- Enter this command:
Windows now reflects the new IP address within the range that you provided.