VPC一共3种联网方式,桥接、NAT、内联。
如果你是家庭ADSL拨号上网,找到网络连接里的ADSL连接,查看属性,然后选高级,再勾选Internet连接共享。VPC网络设置里选择物理网卡就可以,Win98设置为自动获取IP,这就是桥接方式。
用路由器上网和建立拨号上网不一样。如果主机通过路由器上网,VPC直接就可以桥接上网。如果是建立的宽带拨号,你就必须设置拨号连接的Internet连接共享后,才能桥接
还有,如果你的主机是断网状态下,VPC是不能和主机通讯的。除非你建立个微软的回环网卡来通讯,此时VPC选Microsoft Lookback Adapter 。建立回环网卡去添加新硬件里的网络是配置里找,选Microsoft Lookback Adapter
Solution:
1.在主机里添加Microsoft Lookback Adapter
Control Panel-->Add Hardware-->选择手动从列表中添加-->添加网络设备-->选择Microsoft--Microsoft Lookback Adapter 完成添加新的Lookback网卡
图1 手动从列表中添加
图2 添加网络设备
图3 选择Microsoft Lookback Adapter
特别要注意的是要选中Virtual Machine Network Services 协议
图6. 配置Lookback 网卡IP为10.240.0.2
图7. 注意要求选中Virtual Machine Network Services协议
至此配置完毕,Virtual Server的虚机和主机可以在10.240IP段进行内网通信
如果你是家庭ADSL拨号上网,找到网络连接里的ADSL连接,查看属性,然后选高级,再勾选Internet连接共享。VPC网络设置里选择物理网卡就可以,Win98设置为自动获取IP,这就是桥接方式。
用路由器上网和建立拨号上网不一样。如果主机通过路由器上网,VPC直接就可以桥接上网。如果是建立的宽带拨号,你就必须设置拨号连接的Internet连接共享后,才能桥接
还有,如果你的主机是断网状态下,VPC是不能和主机通讯的。除非你建立个微软的回环网卡来通讯,此时VPC选Microsoft Lookback Adapter 。建立回环网卡去添加新硬件里的网络是配置里找,选Microsoft Lookback Adapter
Installing the Microsoft Loopback Adapter
If you want to connect a remote tool to the Emulator over the TCP/IP transport and you do not install a network interface card (NIC) on the development workstation, you must install the Microsoft Loopback Adapter.
To install the Microsoft Loopback Adapter in Microsoft Windows XP
- Open Control Panel, choose Add Hardware, and then choose Next.
- Choose Yes, I have already connected the hardware, and then choose Next.
- From the Installed hardware list, select Add a new hardware device, and then choose Next.
- Choose Install the hardware that I manually select from a list (Advanced), and then choose Next.
- From the Common hardware types list, select Network adapters, and then choose Next.
- From the Manufacturer list, select Microsoft.
- From the Network Adapter list, select Microsoft Loopback Adapter, and then choose Next.
- Choose Next, and then choose Finish.
To install the Microsoft Loopback Adapter in Microsoft Windows 2000
- Open Control Panel, choose Add/Remove Hardware, and then choose Next.
- Choose Add/Troubleshoot a device, and then choose Next.
- From the Devices list, select Add a new device, and then choose Next.
- Choose No, I want to select the hardware from a list, and then choose Next.
- From the Hardware types list, select Network adapters, and then choose Next.
- From the Manufacturers list, select Microsoft.
- From the Network Adapter list, select Microsoft Loopback Adapter, and then choose Next.
- Choose Next, and then choose Finish.
Solution:
1.在主机里添加Microsoft Lookback Adapter
Control Panel-->Add Hardware-->选择手动从列表中添加-->添加网络设备-->选择Microsoft--Microsoft Lookback Adapter 完成添加新的Lookback网卡
图1 手动从列表中添加
图2 添加网络设备
图3 选择Microsoft Lookback Adapter
特别要注意的是要选中Virtual Machine Network Services 协议
图6. 配置Lookback 网卡IP为10.240.0.2
图7. 注意要求选中Virtual Machine Network Services协议
至此配置完毕,Virtual Server的虚机和主机可以在10.240IP段进行内网通信