VMware Workstation -Network Configure

上一篇 / 下一篇  2011-09-19 20:09:40

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

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. ClickAdd.
  4. The Add Hardware Wizard starts. SelectNetwork Adapter. ClickNext.
  5. Select the network type you want to use -Bridged,NAT,Host-onlyorCustom.
  6. If you selectCustom, 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. ClickFinish. The new adapter is added.
  8. ClickOKto 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-onlyorCustom.
  4. If you selectCustom, choose the VMnet virtual network you want to use for the network from the drop-down list.
  5. ClickOKto 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

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. ChooseEdit>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 theAutomatic Bridgingtab. To exclude an Ethernet adapter, clickAddto 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 clickOK.

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

  5. To designate a physical Ethernet adapter to be used for bridged networking on virtual switches named VMnet2-VMnet7, click theHost Virtual Network Mappingtab. 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 chooseSubnetorDHCP.

  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, clickOK.

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

Windows 2000, Windows XP and Windows Server 2003 Hosts

Use the Virtual Network Editor to disable any unwanted adapters.

  1. ChooseEdit>Virtual Network Settings>Host Virtual Adapters.

  2. Select the adapter you want to disable.
  3. ClickDisable adapter.
  4. ClickOK.

Windows NT Hosts

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

  1. ChooseStart>Settings>Control Panel.
  2. Double-clickNetwork.
  3. Click theBindingstab.
  4. ChooseAll adapters.
  5. Select the VMware Virtual Ethernet Adapter you want to disable. The host-only network is VMnet1; the NAT network is VMnet8. ClickDisable.

Disabling a Host Virtual Adapter on a Windows Host

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

  1. Go toEdit>Virtual Network Settings>Host Virtual Adapters.
  2. Select the disabled adapter you want to enable.
  3. ClickEnable adapter.
  4. ClickOK.

Adding a Host Virtual Adapter on a Windows Host

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

  1. Go toEdit>Virtual Network Settings>Host Virtual Adapters.
  2. ClickAdd new adapter.
  3. Choose the virtual network on which you want to use the adapter and clickOK.
  4. ClickApply.
  5. ClickOKto close the Virtual Network Editor.
  6. Windows NT only:Reboot the host computer.

Removing a Host Virtual Adapter on a Windows Host

  1. Go toEdit>Virtual Network Settings>Host Virtual Adapters.

  2. Select the adapter you want to remove, then clickRemove adapter.
  3. ClickOK.

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


TAG:

 

评分:0

我来说两句

Open Toolbar