VMware

VMware Workstation 4

Features | Documentation | Knowledge Base | Discussion Forums

previous Prev   Contents   Last   Next next

Changing the Networking Configuration

Changing the Networking Configuration

Using the Virtual Machine Control Panel (Edit > Virtual Machine Settings), you can add virtual Ethernet adapters to your virtual machine and change the configuration of existing adapters.

Adding and Modifying Virtual Network Adapters

Adding and Modifying Virtual Network Adapters

To add a new virtual Ethernet adapter, follow these steps.

  1. Be sure the virtual machine to which you want to add the adapter is powered off.
  2. Open the Virtual Machine Control Panel (Edit > Virtual Machine Settings).
  3. Click Add.
  4. The Add Hardware Wizard starts. Select Network Adapter. Click Next.
  5. Select the network type you want to use - Bridged, NAT, Host-only or Custom.
  6. If you select Custom, choose the VMnet network you want to use from the drop-down list.

    Note: Although VMnet0, VMnet1 and VMnet8 are available in this list, they are normally used for bridged, host-only and NAT configurations, respectively. Special steps are required to make them available for use in custom configurations. You should choose one of the other switches.

  7. Click Finish. The new adapter is added.
  8. Click OK to save your configuration and close the Virtual Machine Control Panel.

To change the configuration of an existing virtual network adapter, follow these steps.

  1. Open the Virtual Machine Control Panel (Edit > Virtual Machine Settings).
  2. Select the adapter you want to modify.
  3. Select the network type you want to use - Bridged, NAT, Host-only or Custom.
  4. If you select Custom, choose the VMnet virtual network you want to use for the network from the drop-down list.
  5. Click OK to save your changes and close the Virtual Machine Control Panel.
  6. Be sure the guest operating system is configured to use an appropriate IP address on the new network. If the guest is using DHCP, release and renew the lease. If the IP address is set statically, be sure the guest has an address on the correct virtual network.
Configuring Bridged Networking Options on a Windows Host

Configuring Bridged Networking Options on a Windows Host

You can view and change the settings for bridged networking on your host. These changes affect all virtual machines using bridged networking on the host.

You can decide which network adapters on your host to use for bridged networking. You can map specific network adapters to specific virtual networks (VMnets).

  1. Open a VMware Workstation window.
  2. Choose Edit > Virtual Network Settings.

    The Virtual Network Editor appears, with the Summary tab active.

  3. By default, the VMnet0 virtual network is set up in bridged mode and bridges to one of the active Ethernet adapters on the host computer.

    The choice of which adapter it uses is arbitrary. You can restrict the range of choices using options on the Automatic Bridging tab.

    (Also shown are VMnet1, the default virtual network for host-only networking, and VMnet8, the default virtual network for NAT, if they are enabled in VMware Workstation.)

  4. To exclude one or more physical Ethernet adapters from the list to which VMnet0 may be bridged, click the Automatic Bridging tab. To exclude an Ethernet adapter, click Add to add it to the list of excluded devices.

    In the Choose Network Adapters dialog box, select the listing for the adapter you want to exclude, then click OK.

    To remove an adapter from the list of excluded adapters, select its name in the list, then click Remove.

  5. To designate a physical Ethernet adapter to be used for bridged networking on virtual switches named VMnet2-VMnet7, click the Host Virtual Network Mapping tab. Choose an adapter from the drop-down list beside the name of the virtual switch you want to use.

    Caution: Be careful when you change the bridged adapter mappings. If you re-assign a physical Ethernet adapter to a different virtual network, any virtual machine using the original network loses its network connectivity via that network. You must then change the setting for each affected virtual machine's network adapter individually. This can be especially troublesome if your host has only one physical Ethernet adapter and you reassign it to a VMnet other than VMnet0; even though the VMnet still appears to be bridged to an automatically chosen adapter, the only adapter it can use has been assigned to another VMnet.

  6. To make changes to the subnet or the DHCP settings for a virtual network, click the button on the right that corresponds to the virtual network you want to configure, then choose Subnet or DHCP.

  7. In the Subnet dialog box, you can change the subnet's IP address and the subnet mask.

    The address should specify a valid network address that is suitable for use with the subnet mask.

    The default subnet mask is 255.255.255.0 (a class-C network). Typically, this means you should modify only the third number in the IP address - for example, x in 192.168.x.0 or 172.16.x.0. In general, you should not change the subnet mask. Certain virtual network services may not work as well with a customized subnet mask.

    When you modify the network address or subnet mask, VMware Workstation automatically updates the IP address settings for other components - such as DHCP, NAT and host virtual adapter - on that virtual network to reflect the new settings. The specific settings that are automatically updated include DHCP lease range, DHCP server address, NAT gateway address and host virtual adapter IP address. However, if you have changed any of these settings from its default value - even if you have later changed the setting back to the default - VMware Workstation does not update that setting automatically. It presumes that custom settings are not to be modified.

  8. In the DHCP settings dialog box, you can change the range of IP addresses provided by the DHCP server on a particular virtual network. You can also set the duration of leases provided to clients on the virtual network.
  9. When you have made all the changes you want to make on all panels of the VMware Network Configuration dialog box, click OK.
Enabling, Disabling, Adding and Removing Host Virtual Adapters

Enabling, Disabling, Adding and Removing Host Virtual Adapters

When you install VMware Workstation, two network adapters are added to the configuration of your host operating system - one that allows the host to connect to the host-only network and one that allows the host to connect to the NAT network.

If you are not using these adapters, you may wish to remove them (users on Windows hosts can choose to disable the adapters instead of removing them). The presence of these adapters has a slight performance cost, because broadcast packets must go to the extra adapters. On Windows networks, browsing your network may be slower than usual. And in some cases, these adapters interact with the host computer's networking configuration in undesirable ways.

Disabling a Host Virtual Adapter on a Windows Host

Disabling a Host Virtual Adapter on a Windows Host

Windows 2000, Windows XP and Windows Server 2003 Hosts

Use the Virtual Network Editor to disable any unwanted adapters.

  1. Choose Edit > Virtual Network Settings > Host Virtual Adapters.

  2. Select the adapter you want to disable.
  3. Click Disable adapter.
  4. Click OK.

Windows NT Hosts

Use the host operating system's networking control panel to disable any unwanted adapters.

  1. Choose Start > Settings > Control Panel.
  2. Double-click Network.
  3. Click the Bindings tab.
  4. Choose All adapters.
  5. Select the VMware Virtual Ethernet Adapter you want to disable. The host-only network is VMnet1; the NAT network is VMnet8. Click Disable.
Disabling a Host Virtual Adapter on a Windows Host

Disabling a Host Virtual Adapter on a Windows Host

Follow these steps to disable a host virtual adapter on a Windows host.

  1. Go to Edit > Virtual Network Settings > Host Virtual Adapters.
  2. Select the disabled adapter you want to enable.
  3. Click Enable adapter.
  4. Click OK.
Adding a Host Virtual Adapter on a Windows Host

Adding a Host Virtual Adapter on a Windows Host

Follow these steps to add a host virtual adapter on a Windows host.

  1. Go to Edit > Virtual Network Settings > Host Virtual Adapters.
  2. Click Add new adapter.
  3. Choose the virtual network on which you want to use the adapter and click OK.
  4. Click Apply.
  5. Click OK to close the Virtual Network Editor.
  6. Windows NT only: Reboot the host computer.
Removing a Host Virtual Adapter on a Windows Host

Removing a Host Virtual Adapter on a Windows Host

  1. Go to Edit > Virtual Network Settings > Host Virtual Adapters.

  2. Select the adapter you want to remove, then click Remove adapter.
  3. Click OK.
Removing a Host Virtual Adapter on a Linux Host

Removing a Host Virtual Adapter on a Linux Host

  1. Become root and run the VMware Workstation configuration script.

    su
    vmware-config.pl

  2. Watch for the following question

    Do you want networking for your Virtual Machines? (yes/no/help) [yes]

    Answer Yes if you still want to use any networking in your virtual machines, then continue to the next question.

    Otherwise, answer No to remove all networking.

  3. If you answer Yes, the script prompts you to select the wizard or editor to edit your network configuration. Select editor. This is the only way to delete virtual network adapters without removing all of them.

    Would you prefer to modify your existing networking configuration using the wizard or the editor? (wizard/editor/help) [wizard] editor

  4. You see a list of virtual networks that have been configured. Select the network corresponding to the adapter you wish to disable.

    The following virtual networks have been defined:

    . vmnet0 is bridged to eth0
    . vmnet1 is a host-only network on subnet 172.16.155.0.
    . vmnet8 is NAT network on a private subnet 172.16.107.0.

    Which virtual network do you wish to configure? (0-99) 1

  5. You may be prompted to keep this virtual network. If you are sure you want to remove it, answer Yes to the question.

    The network vmnet1 has been reserved for a host-only network. You may change it, but it is highly recommended that you use it as a host-only network. Are you sure you want to modify it? (yes/no) [no] yes

  6. When prompted about the type of virtual network, select None and the virtual network will be removed.

    What type of virtual network do you wish to set vmnet1? (bridged,hostonly,nat,none) [hostonly] none

previous Prev   Contents   Last   Next next