设为首页 收藏本站
查看: 2337|回复: 0

[经验分享] Hyper-V, ICS, RRAS NAT and port-forwarding on Windows Server 2012

[复制链接]

尚未签到

发表于 2016-1-4 14:08:33 | 显示全部楼层 |阅读模式
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.
  

  • Network Connections on the host machine will now show 3 network adapter cards.
  • DSC0000.png
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.

  • Open Server Manager, select Add roles and features.
    DSC0001.png

  • 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.
    DSC0002.png

  • On the Add Roles and Feature Wizard, click Add Features then click Next.
    DSC0003.png

  • 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.
DSC0004.png
        13. If the server restarts, Logon. On the Installation progress, click Close.
DSC0005.png
Configuring Routing and Remote Access as a Network Address Translation(NAT) server.

  • Open Server Manager, Select the Tools drop down menu, select Routing and Remote Access.
    DSC0006.png


  • 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.
    DSC0007.png

  • On the NAT Internet Connection, select which Interface is your external interface (Public), click Next.
    DSC0008.png

  • On the Name and Address Translation Service, select I will set up name and address services later, click Next.
    DSC0009.png

  • 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的配置就完成了,端口转发也完成了。

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-160098-1-1.html 上篇帖子: [同事原创] 开源搜索引擎Hyper Estraier性能小测&缺点总结 下篇帖子: 超文本缓存协议(HTCP/0.0)(Hyper Text Caching Protocol (HTCP/0.0))
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表