virtual pc : Microsoft Loopback Adapter

一直使用VPC进行本机测试环境的搭建,经常会用虚拟机作为服务器来进行配置,而真实的机器也经常会作为客户端来访问服务器,有些时候在本机要单独组网。 在Win7以前的系统都是添加Loopback Adapter,方法参见【添加方法参考】。但是在Win7的“添加硬件”那里等了半天也没有出现可以手动选择的地方(不知道是不是Win7版本的问题, 正式版不知道会不会没有这个问题),在网上找了半天也没有,曾经一度放弃,很影响做测试。于是找了半天试了一些方法终于找到添加的办法,共享出来供大家参 考。
1.我的Win7版本
7600中文旗舰版

2.添加方法
用管理员身份打开“设备管理器”右键单击设备管理器窗口的计算机名->添加过时硬件->安装我手动从列表选择的硬件->选择“网络 适配器”->选择Microsoft公司下的Microsoft Loopback Adapter,就完成了添加。之后就可以配置这个内部网卡了
第一步

第二步

第三步

第四步

第五步

安装完成之后可以在网络适配器里看到刚添加的设备



【添加方法参考】
1. 在实体机安装环回适配器。
控制面板->添加硬件->手动->网络适配器->选择Microsoft公司下的Microsoft环回适配器(Vista 为中文,XP下面为Loopback Adapter)。
2. 配置环回适配器的IP地址
这是隔离内外网用的。右键点击任务栏上的网络图标->网络和共享中心->左边的“管理网络连接”->双击打开环回适配器对应的本地 连接->在TCP/IP设置中填入IP地址和子网掩码。(根据自己的需要进行配置IP)
3. 关闭防火墙
其实不需要完全关闭,只需要把环回适配器从Windows 防火墙中取消掉就可以了。
4. 配置虚拟机的网络
不需要关闭虚拟机上的操作系统,在运行的时候也可以改。Edit->Settings->左边选Networking,然后把右边相应的 Adapter选择为Microsoft 环回适配器,这样,就相当于在虚拟机和实体机之间连接了一根网线。确定后再配置虚拟机的IP,使之与实体机在同一个网段即可。记得ping一下以确定操作 正确。

Last modified onSaturday, 05 January 2013 13:24

( ! ) Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php on line 169
Call Stack
#TimeMemoryFunctionLocation
10.0018412696{main}( ).../index.php:0
20.10944262648Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.10944262648Joomla\CMS\Application\SiteApplication->doExecute( ).../CMSApplication.php:196
40.342011453624Joomla\CMS\Application\SiteApplication->dispatch( ).../SiteApplication.php:233
50.342811477952Joomla\CMS\Component\ComponentHelper::renderComponent( ).../SiteApplication.php:194
60.343511533280Joomla\CMS\Component\ComponentHelper::executeComponent( ).../ComponentHelper.php:377
70.343811560680require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ).../ComponentHelper.php:402
80.352811960312K2ControllerItem->execute( ).../k2.php:64
90.352811960312K2ControllerItem->display( ).../BaseController.php:710
100.363712611016K2ControllerItem->display( ).../item.php:78
110.363712611016K2ControllerItem->display( ).../controller.php:19
120.367712982056Joomla\CMS\Cache\Controller\ViewController->get( ).../BaseController.php:663
130.369813002424K2ViewItem->display( ).../ViewController.php:102
140.484415819768K2ViewItem->display( ).../view.html.php:742
150.484415819768K2ViewItem->loadTemplate( ).../HtmlView.php:230
160.488315992704include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ).../HtmlView.php:701

( ! ) Notice: Only variables should be assigned by reference in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php on line 478
Call Stack
#TimeMemoryFunctionLocation
10.0018412696{main}( ).../index.php:0
20.10944262648Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.10944262648Joomla\CMS\Application\SiteApplication->doExecute( ).../CMSApplication.php:196
40.342011453624Joomla\CMS\Application\SiteApplication->dispatch( ).../SiteApplication.php:233
50.342811477952Joomla\CMS\Component\ComponentHelper::renderComponent( ).../SiteApplication.php:194
60.343511533280Joomla\CMS\Component\ComponentHelper::executeComponent( ).../ComponentHelper.php:377
70.343811560680require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ).../ComponentHelper.php:402
80.352811960312K2ControllerItem->execute( ).../k2.php:64
90.352811960312K2ControllerItem->display( ).../BaseController.php:710
100.363712611016K2ControllerItem->display( ).../item.php:78
110.363712611016K2ControllerItem->display( ).../controller.php:19
120.367712982056Joomla\CMS\Cache\Controller\ViewController->get( ).../BaseController.php:663
130.369813002424K2ViewItem->display( ).../ViewController.php:102
140.484415819768K2ViewItem->display( ).../view.html.php:742
150.484415819768K2ViewItem->loadTemplate( ).../HtmlView.php:230
160.488315992704include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ).../HtmlView.php:701
back to top