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的配置就完成了,端口转发也完成了。
相关推荐
在MCSE2012_Module1的"部署和管理Windows Server 2012 第3讲"中,我们将深入探讨Windows Server 2012操作系统的关键安装、配置和管理技术。这一讲的内容涵盖了一系列关键主题,旨在帮助IT专业人员更好地理解和掌握在...
3. **Hyper-V虚拟化**:Windows Server 2012的Hyper-V是其强大的虚拟化平台,可创建和管理虚拟机。Hyper-V Manager允许用户轻松创建、迁移、备份和监控虚拟机,同时支持动态内存和实时迁移,确保资源高效利用。 4. ...
Windows Server 2003是微软推出的一款服务器操作系统,它在2003年发布,为各种规模的企业提供了网络基础设施服务。本试题集主要涵盖了Windows Server 2003的相关知识,旨在帮助用户掌握该系统的基本操作、管理、配置...
本文介绍了如何将Windows Server 2008操作系统配置为NAT(网络地址转换)路由器,以实现内部网络与外部网络的通信,并提供内网机器访问Internet的功能。以下是详细的步骤和知识点: 1. **网络环境设置**: - 首先...
3. **网络诊断工具**:包括Routing and Remote Access Service (RRAS)管理工具,Network Monitor(网络监视器)等,帮助管理员诊断网络问题,优化网络设置。 4. **安全和审计工具**:例如Event Viewer(事件查看器...
《Windows Server 2008 70-646 网管员自学宝典 MCITP教程中文版》是一本专为学习和备考Microsoft Certified IT Professional (MCITP)认证考试70-646设计的全面教程。该教程涵盖了Windows Server 2008操作系统的核心...
4. **远程访问与虚拟化**:介绍RDP(远程桌面协议)、RRAS(路由和远程访问服务)以及Hyper-V虚拟化技术,如何设置和管理虚拟机。 5. **文件服务**:NTFS文件系统的特性,共享文件夹的设置,权限管理和文件复制服务...
Windows Server 2008 操作系统的网络服务器构建,详细介绍了服务器的配置与管理,如域控制(AD)、DHCP 动态主机配置、DNS 域名解析、FTP 服务器搭建 WEB 站点和远程管理(RRAS)等。 知识点 5: 实验环境 本文的...
WindowsServer2003网路基础架构服务--ManagingRRASRRAS安装设定与管理维护下集
在本文中,我们将深入探讨如何在Windows Server 2003 (Win2003) 操作系统中利用网络地址转换(NAT)技术来实现家庭用户基于ADSL(Asymmetric Digital Subscriber Line)拨号上网的教程。首先,我们需要了解NAT的基本...
组建 Windows Server 2008 网络实验平台 本文主要介绍了组建 Windows Server 2008 网络实验平台的毕业设计,旨在解决当前高校计算机网络实验室规模不足的问题。该平台能对服务器操作系统进行虚拟,又能对服务器的...
《网络服务器配置与管理——Windows Server 2012 R2篇》是一份全面的教学资料,专注于教授如何在Windows Server 2012 R2环境下进行网络服务器的配置与管理。这一系列微课包含了从基础到高级的多个章节,旨在帮助用户...
Windows Server 2003是微软推出的一款服务器操作系统,它在2003年发布,为企业级网络环境提供了丰富的管理和安全特性。这个“华育国际Windows Server 2003系统管理PT”很可能是华育国际教育机构制作的一套关于...
- **DC**:作为活动目录(Active Directory)控制器,同时提供认证授权服务、DNS/DHCP服务、IIS、RRAS(NAT)以及Exchange Server 2010服务。 - **SCSM**:安装了System Center Service Manager 2012以及Cloud ...
- RRAS(Routing and Remote Access Service):配置路由和远程访问服务,支持VPNs和远程桌面连接。 - DirectAccess:了解如何使用DirectAccess技术提供对内部网络的无缝远程访问。 6. **安全与身份验证** - ...
XP系统相当于以往的Windows系统新增了许多的网络功能,例如Internet连接防火墙(ICF),它就是用一段"代码墙"把电脑和Internet分隔开,时刻检查出入防火墙的所有数据包,决定拦截或是放行那些数据包。防火墙可以是一...
软件开发:浅谈基于rras与虚拟专用网技术在windows中的实现.pdf
- **RRAS**:Windows Server系统中实现RAS功能的服务。 #### 3.2 RAS工作原理 - 客户端通过PSTN、ISDN等连接方式建立与RRAS服务器之间的连接。 - RRAS服务器根据预先配置的策略决定是否允许连接,并分配相应的IP...
isa_rras.rarisa_rras.rarisa_rras.rarisa_rras.rarisa_rras.rar