📌  相关文章
📜  Azure网络接口

📅  最后修改于: 2021-01-07 04:35:31             🧑  作者: Mango

Azure网络接口

网络接口(NIC)是虚拟机和基础软件网络之间的互连。 Azure虚拟机(VM)附加了一个或多个网络接口(NIC)。任何NIC都可以分配一个或多个静态或动态公共和专用IP地址。

配置网络接口

虚拟网络和子网:我们可以将网络接口连接到VNet和子网,一旦将NIC部署到VNet,就无法更改它。

IP配置:公用和专用IP地址将在NIC级别分配。主要和次要IP配置

NSG和路由:我们可以将零个或一个网络安全组以及一个或多个路由应用于网络接口。

IP转发:必须为连接到虚拟机的每个网络接口启用此设置。

DNS服务器-我们可以指定Azure DHCP服务器分配网络接口的DNS服务器。

IP地址

它是唯一的参考,用于标识使用Internet协议通过网络进行通信的每台计算机。

有两种定义IP地址的方法:

Private IP Addressing Public IP addressing
Private IPv4 addresses enable a virtual machine to communicate with other resources in a virtual network or other connected networks. When we assign a public IP address to an Azure resource that supports public IP addresses, which enables Inbound communication from the internet to the resource, resources like Azure VMs and Outbound connectivity to the internet using a predictable IP address is called a public IP address.
When we select the dynamic addresses, Azure automatically assigns the next available address from the address space of the subnet you selected. The dynamic addresses are released when a public IP address resource will be dissociated from a resource it is associated to.
When we select static addresses, we must manually assign an available IP address from within the address space of the subnet you selected. Static IP addresses are assigned to the machine when a public IP address is created.

主机名解析

我们可以为公共IP资源指定DNS域名标签,这将为domainnamelabel.location.cloudapp.azure.com创建到Azure管理的DNS服务器中的公共IP地址的映射。

内部DNS主机名解析(对于VM)

除非您要显式设置自定义DNS服务器,否则默认情况下,所有Azure VM均配置有Azure管理的DNS服务器,并且这些Azure管理的DNS服务器为驻留在同一VNet的VM提供内部名称解析。因此,如果我们想从一个虚拟机到另一个虚拟机进行RDP,则实际上可以在专用IP地址中使用该计算机的名称。

为虚拟机配置多个NIC和IP地址

步骤1:点击“创建资源”按钮,然后输入网络接口。然后单击“网络接口”并创建。

步骤2:现在,填写所需的详细信息,然后单击创建。

步骤3:您的网络接口将被创建并可以嵌入。

步骤4:再次,转到主页并创建一个公共IP地址。

步骤5:现在,填写所需的详细信息,然后单击创建。

步骤6:现在,您已准备好与虚拟机一起使用NIC和IP地址。