Adding an Additional Public IP to a Virtual Machine

Adding an Additional Public IP to a Virtual Machine


Overview

This documentation outlines the steps to create a virtual machine (VM), add a second network adapter, and configure it to ensure it can communicate using a second IP address.

Steps to Create and Configure a Virtual Machine

Creating a Virtual Machine (VM)

  1. Create VM: Begin by creating a virtual machine. Ensure you validate the size availability based on the region.
  2. Virtual Network (VNet) and Subnet: Create a VNet and a subnet.
  3. Network Adapter: Initially, create a single network adapter.

Adding a Second Network Adapter

  1. Stop the VM:
  2. Attach Network Interface:
  3. Create a Public IP:

Configuring the Network Adapter

  1. Start the VM: Once the VM is started, the new network adapter's private IP will be active.
  2. Remote Desktop Protocol (RDP):
  3. Check Network Configuration:
  4. Routing Configuration:

Verifying the Configuration

  1. Connect via RDP using the Second Network Adapter:

Additional Information

  • Route Print: Displays routing table information.
  • Network Interface: Ensure each network adapter has the correct gateway configured.
  • Dynamic vs. Static IP: Azure charges more for static IPs compared to dynamic IPs.

Command Used in CMD in VM 1

ipconfig?

Route print

Route add -p 0.0.0.0 MASK 0.0.0.0 10.0.0.1 [gateway 1]

Output: OK

Route print

Route add -p 0.0.0.0 MASK 0.0.0.0 10.0.0.1 METRIC 5015 IF 10

OUTPUT: OK

Route print

ipconfig


要查看或添加评论,请登录

Rahul .的更多文章

社区洞察

其他会员也浏览了