I created a virtual machine and I see 172 series is assigned as public ip and 10 series assigned as private ip? what caused this issue?

Sumithrasaravana 0 Reputation points
2024-10-15T14:34:07.2933333+00:00

Screenshot 2024-10-15 at 7.52.33 PM.png

Hi ,

I have created 2 virtual machines and it also created new public and private ips. It also created new virtual network .

I see same ip assigned to both vm1 and vm2

Public IP address - 172.178.136.79

Private IP address - 10.0.0.4

Public IP address - 172.178.137.211

Private IP address 10.0.0.4

Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
2,468 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Andreas Baumgarten 110K Reputation points MVP
    2024-10-15T14:59:03.7966667+00:00

    Hi @Sumithrasaravana ,

    if you create 2 VMs and during the configuration you choosed "Create new Virtual Network" a new vNet will be created for each machine. Both might have the same IP address range.

    This explains why both VMs have the same private IP address.

    But both VMs are not able to connect to each other because bot vNets aren't connected/peered. It's not possible to add a peering between the 2 vNets because they are using the same IP address range.


    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

    Regards

    Andreas Baumgarten

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.