【转】Virtual PC 各版本网络设置介绍

APPLIES TO
  • Connectix Virtual PC for Windows 4.0
  • Connectix Virtual PC for Windows 4.1
  • Connectix Virtual PC for Windows 4.2
  • Connectix Virtual PC for Windows 4.3
  • Connectix Virtual PC for Windows 5.0
  • Connectix Virtual PC for Windows 5.1
  • Connectix Virtual PC for Windows 5.2

Use Virtual Switch networking to help you perform advanced networking functions on a Virtual PC guest PC. Networking features and functions that require Virtual Switch networking include the following:

  • Server software that uses predefined port numbers
  • Remote logon
  • Network performance analysis
  • Remote shells
When you configure your guest PC Networking settings to use the Virtual Switch option, you have the following routing options:
  • Local only. The guest PC does not send or receive information to or from the host PC. The guest PC does not send or receive information over your network. This setting can be useful for testing network protocols.
  • Local and host. The guest PC sends and receives information over your network. In this case, the guest PC appears and behaves like any physical computer on your network.
  • Local, host and external. This is the default setting. The guest PC can send and receive information on the network by using the network adapter that is configured in the Virtual Switch settings in Virtual PC Preferences. The guest PC can also do this with other guest PCs and with the host PC. In this case, the guest PC appears and behaves like any physical computer on your network, and therefore it can communicate with the host PC.
  • External Only. Other guest PCs and the host PC do not receive information directly from the guest PC. Network information is sent and received on the network through the network adapter that is configured in the Virtual Switch settings in Virtual PC Preferences. This setting is useful for testing without affecting your host or your other guests.
To configure Virtual Switch networking options:
  1. In the Virtual PC window, click the guest PC that you want to configure, and then click Settings.
  2. Under PC Settings, click Networking.
  3. Under Networking, click Virtual Switch, click the option that you want to use, and then click OK.

APPLIES TO
  • Microsoft Virtual PC 2004
  • Microsoft Virtual PC 2004 sp1
  • Microsoft Virtual PC 2007
  • Microsoft Virtual PC 2007 sp1

The Networking settings control whether network adapters are available for the virtual machine. By default, one network adapter is selected and mapped to the network adapter in the physical computer. If you want a virtual machine to use resources on a physical network, including your intranet and the Internet, you must configure the Networking settings of the virtual machine. To do so, follow these steps:

  1. In the Virtual PC console, click the virtual machine where you want to configure the networking setting, and then click Settings.
  2. Under Settings, click Networking.
  3. Under Networking, configure the options that you want to use for the network adapters:
    • In the Number of network adapters drop-down list, specify up to four emulated network adapters for the virtual machine.
    • A set of configuration drop-down lists appear, depending on how many emulated network adapters that you selected in the Number of network adapters drop-down list. In these drop-down lists, assign each emulated adapter card to any network card that is installed on the physical computer, including Microsoft Loopback Adapter. You can assign more than one emulated network card to the same network card in the physical computer. Alternatively, you can attach a virtual network to a local-only network. A local-only network is a private network for communication between virtual machines only.
  4. Click OK.

The following table describes the adapter options that appear in the drop-down list.

Collapse this tableExpand this table
Option Description
Not connected With this option, networking is not available in the virtual machine. It is a good idea to select this option when the physical computer is not on a network, or if you do not access the Internet through a virtual machine. This option can prevent possible delays if the virtual machine software checks the network controller.
Local only This option gives you networking support between virtual machines only. Therefore, the virtual machine does not have access to any network resources on the host operating system.
Shared Networking (NAT) You can assign the first virtual machine network card to Shared Network (NAT). With this option, the virtual machine connects to a private network that Virtual PC creates. The network includes a virtual DHCP server and a virtual network address translation server. The virtual machine can access most TCP/IP-based resources that the host operating system can access. For more information about shared networking, see the "Manage shared networking for virtual machines" section of this article.
Network adapter on the physical computer With this option, the virtual machine connects directly to the currently selected network connection of the host operating system. The virtual machine appears and behaves like a separate physical computer on the same network. The configuration of the network determines the networking configuration of the virtual machine. For example, the configuration of the network determines how an IP address is assigned to the virtual machine. If the network uses a DHCP server, an IP address is assigned dynamically to the virtual machine. Similarly, if the network uses static IP addresses, you must manually configure the virtual machine to use a static IP address. To do so, use the method that is specified in the documentation for the virtual machine operating system.
Microsoft Loopback Adapter If you want to create a more complex network environment on a single physical computer, and you do not want to install multiple physical network cards, you can install multiple instances of Microsoft Loopback Adapter on the host operating system. For more information about Microsoft Loopback Adapter, see the "Extend networking capabilities for virtual machines" section of this article.