Knowledge Base

The VMware Knowledge Base provides support solutions, error messages and troubleshooting guides
 
Search the VMware Knowledge Base (KB)   View by Article ID
 

Modifying the subnet range of the NAT network in Fusion (2003463)

Purpose

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.

Resolution

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:

  1. Make sure Fusion is not running. If Fusion is running, suspend or shut down any running virtual machines and quit VMware Fusion.
  2. 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)
  3. 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.

  4. Find the line which reads:

    answer VNET_8_HOSTONLY_SUBNET xx.xx.xx.xx

    Where xx.xx.xx.xx is the current IP address.

  5. 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

  6. Save the file and close Nano.
  7. 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

    Notes:
    • 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.

  8. 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.

Impact/Risks

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.

Additional Information

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:

  1. Open a command prompt. For more information, see Opening a command or shell prompt (1003892).
  2. Enter this command:

    ipconfig /release

  3. Enter this command:

    ipconfig /renew

Windows now reflects the new IP address within the range that you provided.

Tags

reconfigure-networking  windows-guest-os-networking  network-settings

See Also

Update History

09/23/2011 - Added information for Fusion 4.

Request a Product Feature

To request a new product feature or to provide feedback on a VMware product, please visit the Request a Product Feature page.

Feedback

  • 10 Ratings

Did this article help you?
This article resolved my issue.
This article did not resolve my issue.
This article helped but additional information was required to resolve my issue.
What can we do to improve this information? (4000 or fewer characters)
  • 10 Ratings
Actions
KB: