Hyper-V, ICS, RRAS NAT and port-forwarding on Windows Server 2012

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.

 

  1. Network Connections on the host machine will now show 3 network adapter cards.
  2. 009-connecting-Virtual-Machines-running-on-an-internal-Hyper-V

Configure the Virtual Machines NIC with an IP Address from the Internal virtual network.

  1. Start the Virtual Machine if Required.
  2. Logon to the Virtual Machine.
  3. 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.

  1. 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.

  1. Open Server Manager, select Add roles and features.
    013-connecting-Virtual-Machines-running-on-an-internal-Hyper-V
  1. On the Before you begin click Next.
  2. On the Select installation type, ensure Role-based or feature-based installation is selected, click Next.
  3. On the Select destination server, ensure the proper server is selected, click Next.
  4. On the Select server roles, select Remote access.
    014-connecting-Virtual-Machines-running-on-an-internal-Hyper-V
  1. On the Add Roles and Feature Wizard, click Add Features then click Next.
    015-connecting-Virtual-Machines-running-on-an-internal-Hyper-V
  1. On the Select features, click Next.
  2. On the Remote Access, click Next.
  3. On the Select role services, select Routing, click Next.
  4. On the Web Server Role (IIS), click Next.
  5. On the Select role services, click Next.
  6. 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.

016-connecting-Virtual-Machines-running-on-an-internal-Hyper-V

        13. If the server restarts, Logon. On the Installation progress, click Close.

017-connecting-Virtual-Machines-running-on-an-internal-Hyper-V

Configuring Routing and Remote Access as a Network Address Translation(NAT) server.

  1. Open Server Manager, Select the Tools drop down menu, select Routing and Remote Access.
    018-connecting-Virtual-Machines-running-on-an-internal-Hyper-V
  1. Right click on the server and select Configure and Enable Routing and Remote Access.
  2. On the Welcome screen, click Next.
  3. On the Configuration page, select Network address translation (NAT), click Next.
    019-connecting-Virtual-Machines-running-on-an-internal-Hyper-V
  1. On the NAT Internet Connection, select which Interface is your external interface (Public), click Next.
    020-connecting-Virtual-Machines-running-on-an-internal-Hyper-V
  1. On the Name and Address Translation Service, select I will set up name and address services later, click Next.
    021-connecting-Virtual-Machines-running-on-an-internal-Hyper-V
  1. On the Complete the Routing and Remote Access Server Setup Wizard, click Finish.
  2. If a prompt appears saying unable to open VPN Ports click OK to acknowledge.
  3. 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的配置就完成了,端口转发也完成了。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
目标检测(Object Detection)是计算机视觉领域的一个核心问题,其主要任务是找出图像中所有感兴趣的目标(物体),并确定它们的类别和位置。以下是对目标检测的详细阐述: 一、基本概念 目标检测的任务是解决“在哪里?是什么?”的问题,即定位出图像中目标的位置并识别出目标的类别。由于各类物体具有不同的外观、形状和姿态,加上成像时光照、遮挡等因素的干扰,目标检测一直是计算机视觉领域最具挑战性的任务之一。 二、核心问题 目标检测涉及以下几个核心问题: 分类问题:判断图像中的目标属于哪个类别。 定位问题:确定目标在图像中的具体位置。 大小问题:目标可能具有不同的大小。 形状问题:目标可能具有不同的形状。 三、算法分类 基于深度学习的目标检测算法主要分为两大类: Two-stage算法:先进行区域生成(Region Proposal),生成有可能包含待检物体的预选框(Region Proposal),再通过卷积神经网络进行样本分类。常见的Two-stage算法包括R-CNN、Fast R-CNN、Faster R-CNN等。 One-stage算法:不用生成区域提议,直接在网络中提取特征来预测物体分类和位置。常见的One-stage算法包括YOLO系列(YOLOv1、YOLOv2、YOLOv3、YOLOv4、YOLOv5等)、SSD和RetinaNet等。 四、算法原理 以YOLO系列为例,YOLO将目标检测视为回归问题,将输入图像一次性划分为多个区域,直接在输出层预测边界框和类别概率。YOLO采用卷积网络来提取特征,使用全连接层来得到预测值。其网络结构通常包含多个卷积层和全连接层,通过卷积层提取图像特征,通过全连接层输出预测结果。 五、应用领域 目标检测技术已经广泛应用于各个领域,为人们的生活带来了极大的便利。以下是一些主要的应用领域: 安全监控:在商场、银行
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值