Installing and Configuring Network Address Translation (NAT) on your Host Computer to connect Virtual Machines running on an internal Hyper-V Virtual Switch
If you are running your virtual machines in an internal network and you need to provide them with internet or connectivity to your corporate network there are a couple different solutions. One solution is to use your host computer as a router. In this blog I will discuss how to configure your host as the solution.
Configure the Virtual Machines NIC with an IP Address from the Internal virtual network.
- Start the Virtual Machine if Required.
- Logon to the Virtual Machine.
- Using the Properties of the network adapter set an IP Address from the Internal network. I will be using 172.16.0.10/24 with Gateway of 172.16.0.1 and a DNS server address of 8.8.8.8.
Configure the Host Computer Internal NIC with an IP Address from the Internal virtual network.
- Using the Properties of the network adapter identified as Internal, set an IP Address from the Internal network. I will be using 172.16.0.1/24 with no Default Gateway or DNS server addresses.
The computer’s network prerequisites have been completed. It is now time to configure the host computer to provide connectivity to the corporate network and the internet.
Install Routing and Remote Access on the Host computer.
- On the Before you begin click Next.
- On the Select installation type, ensure Role-based or feature-based installation is selected, click Next.
- On the Select destination server, ensure the proper server is selected, click Next.
- On the Select server roles, select Remote access.
- On the Select features, click Next.
- On the Remote Access, click Next.
- On the Select role services, select Routing, click Next.
- On the Web Server Role (IIS), click Next.
- On the Select role services, click Next.
- On the Confirm installation selections, select Restart the destination server automatically if required, click Yes to prompt, click Install.
WARNING: Server will restart after installation is complete.
13. If the server restarts, Logon. On the Installation progress, click Close.
Configuring Routing and Remote Access as a Network Address Translation(NAT) server.
- Right click on the server and select Configure and Enable Routing and Remote Access.
- On the Welcome screen, click Next.
- On the Configuration page, select Network address translation (NAT), click Next.
- On the NAT Internet Connection, select which Interface is your external interface (Public), click Next.
- On the Name and Address Translation Service, select I will set up name and address services later, click Next.
- On the Complete the Routing and Remote Access Server Setup Wizard, click Finish.
- If a prompt appears saying unable to open VPN Ports click OK to acknowledge.
- Nat is now installed.
Your Virtual Machines now have access to the internet and your corporate network.
接下来配置port-forwarding :
有关NAT 的 Netsh commands for Interface Portproxy 参考:https://technet.microsoft.com/zh-cn/library/cc731068(v=ws.10).aspx#BKMK_1
例子:netsh interface portproxy add v4tov4 3397 192.168.0.2 3389
至此,RRAS和NAT的配置就完成了,端口转发也完成了。
相关推荐
WindowsServer2003网路基础架构服务--ManagingRRASRRAS安装设定与管理维护下集
XP系统相当于以往的Windows系统新增了许多的网络功能,例如Internet连接防火墙(ICF),它就是用一段"代码墙"把电脑和Internet分隔开,时刻检查出入防火墙的所有数据包,决定拦截或是放行那些数据包。防火墙可以是一...
软件开发:浅谈基于rras与虚拟专用网技术在windows中的实现.pdf
isa_rras.rarisa_rras.rarisa_rras.rarisa_rras.rarisa_rras.rar
在Windows 2000 RRAS服务器上连接,查询和终止连接
利用Win2K的RRAS制作路由器.pdf
Cisco路由器和RRAS作为边缘路由器的对比.pdf
学校又增加了1个机房,加上以前的2个,现在有3个机房。根据教学的需要要实现以机房为单位的上网控制,又要实现机房间的动态互访。因为具有一定的普遍性和通用性,下面笔者把相关部署过程写下来。
沿海基站装备了低成本的可重构反射阵列(RRAs),代替传统昂贵的全数字天线阵列(FDAAs),以降低硬件成本和功耗。 RIS由M个反射单元组成,BS配有N个反射单元的RRAs。在RIS上安装一个控制器,BS通过一个基于自动识别系统...