Recently, VPC has been used for debugging the installation package, which is very easy to use. However, there has been a problem recently, FTP is always unable to work normally, after a long and painful tracking and locating, find the cause:
40: 47.587 status: An error occurred while communicating with the host.
200 type set to I.
500 invalid PORT command.
500 'lprt 6, 16, 0, 0, 0, 0, 60, 0, 14': Command not understood
I used FTP in the VPC command line. Sure enough:
C: \ Documents ents and Settings \ Administrator> FTP
Ftp> open www.slwater.gov.cn
Connected to www.slwater.gov.cn.
220 Microsoft FTP service
User (www.slwater.gov.cn :( none )):***
331 Password required for sladmin.
Password:
230-welcome to the FTP system. This FTP system is set for the data interface.
230 user sladmin logged in.
Ftp> ls
500 invalid PORT command.
150 opening ASCII mode data connection for file list.
It seems that the reason is my Internet connection method. I found this information:
1. [virtual machine available network type]
Based on the VPC Virtual Machine network parameter configuration, you can use the following types of networks:
A. Internal Network
B. Internet and other external networks
C. Only a local network composed of virtual machines
D. Local network composed of virtual machines and physical hosts
2. [Virtual Machine configurable network parameters]
Each VPC virtual machine can have four networks at the same time. Each network is configured with one Nic, and a total of four NICs can be configured. Only the first network can be configured as a shared network. Each network can have the following configuration parameters:
A. No network connection method not connected
B. Local only
C. Shared networking (NAT)
D. Host physical NIC/Microsoft soft NIC (Microsoft loopback adapter)
The network configuration parameters of vpc2004sp1 are as follows:
Configured as not connected Without network connection
The virtual machine cannot use the network. If the physical host is not on the network or does not want to access the Internet through the virtual machine, you can choose this option to shield the virtual machine's network and speed up the application software in the virtual machine to check the network availability.
Local only
Only virtual machines can access each other. virtual machines are not allowed to access any network resources on the physical host.
Shared networking (NAT)
Note: The shared network mode can only be set to the first network adapter location.
In this mode, a virtual machine is connected to a private network built by a virtual PC. The private network includes a DHCP server and a NAT server. The two server roles are played by the VPC. This method allows virtual machines to access the vast majority of network resources accessible by physical hosts. In this case, you do not need to set network parameters for each virtual machine, but you must configure an Automatic Acquisition Method for the Virtual Machine Nic. Otherwise, the network cannot be accessed. The IP address range configured for each virtual machine is 192.168.131.xxx! Xxx ranges from 1 to 253.
Note: In this mode, the network IP address of the physical host cannot be configured in the range of 192.168.131.xxx.
Configured as a shared network, a virtual machine is like a computer hiding behind a NAT router. It does not support port ing and does not support external host access to the virtual machine to form any server and port. In this mode, non-administrator users cannot use ping or ICMP-based functions on physical hosts. For physical hosts with dial-up access, whether ppoe or modem dialing, the virtual machine must be set to share the network to access Internet resources. Set as the host's physical NIC/Microsoft's soft NIC (Microsoft loopback adapter)
This type of virtual machine can be used as a "real" host on the network. Similar to the appearance of physical hosts on the network. Note: The physical Nic used at this time is not a Microsoft soft Nic. At this time, the virtual machine can also be used as a member computer of the domain, as long as the domain Control Server adds the virtual machine. In this case, the computer name of the virtual machine cannot be the same as the host name on the network, whether it is a virtual or physical host.
In this way, the virtual machine needs to access the Internet, use ADSL dial-up access, or use an internal network proxy server to access the Internet. Depends on the actual network conditions.
When the host does not have a physical Nic or no network cable is inserted, you can also use Microsoft's soft network card to implement a single-host LAN.
3. [network configuration and network form]
When the Virtual Machine network adapter is set to local only, all virtual machines constitute the class C network as mentioned above;
When the Virtual Machine network adapter is set to Microsoft soft Nic Microsoft loopback adapter, all virtual machines and physical hosts form a Class D network;
When the Virtual Machine network adapter is set to a physical network card, the virtual machine can constitute an internal network, the Internet, and other external networks.
Find the method for setting the physical Nic again:
Open the properties of the local physical network card and check whether the status of the Virtual Machine network services is normal (method: Right-click the network neighbor ---- properties ---- right-click the physical network card ---- properties)
As shown in the red box (because I use the English version of XP, the display may be a bit different ):
If the Virtual Machine network services check box is not selected, the VPC can recognize the physical Nic.
If you do not have the Virtual Machine Network Services Service, click the second red box to install the Virtual Machine Network Services Service.
For details, click "Install ---- service ----- add ---- install from disk --- browse ---- D: \ Program Files \ Microsoft Virtual PC \ utility \ vmnetsrv. inf". The red part is the installation folder of your VPC.
After Virtual Machine network services is installed, the VPC can identify the physical Nic.
Because we used a green version of VPC in the past, we didn't have this function. We downloaded a full version of VPC that needs to be installed and we will have this service automatically. In this case, you can see the physical Nic In the VPC settings. After the physical Nic is started, it uses a static IP address and FTP is normal.