question

MohitJoshi-9493 avatar image
0 Votes"
MohitJoshi-9493 asked AllanRay-3764 commented

I am not able to communicate vm between two subnets under same resource group. Subnet 1 and Subnet 2 and default Vnet

I am not able to communicate vm between two subnets under same resource group. Subnet 1 and Subnet 2 and default Vnet

VM1 = Subnet 1
VM2 = Subnet 2
RESOURCE GROUP= AUS

Both subnets are created by same vnet name = VNET

azure-virtual-machines-networking
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

AndreasBaumgarten avatar image
0 Votes"
AndreasBaumgarten answered MohitJoshi-9493 commented

Both subnets are in the same virtual network?

Which OS on VMs?

What does "not able to communicate"?

Ping using the IP works (if allowed by firewall)?

Ping using the name of the VM work?

Some more details might be helpful.

Kind regards

Andreas Baumgarten

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

         VM1= Amrr = 192.168.0.68 , Subnet 1= 192.168.0.0/26
      VM2= East = 192.168.0.5, Subnet 2= 192.168.0.64/26
         Vnet= Aus-vnet, Address Space= 192.168.0.0/24

==> I am not able to ping VM with private IP in different subnets but are in same resource group.

10203-vm1-detail.png
10139-vm-name.png.
10205-vm2-detail.png
10146-virtual-network.png

What configuration need to be done?They looks isolated to me.

Please also find attached document.


0 Votes 0 ·
vm2-detail.png (40.2 KiB)
virtual-network.png (26.1 KiB)
MohitJoshi-9493 avatar image
0 Votes"
MohitJoshi-9493 answered
            VM1= Amrr = 192.168.0.68 , Subnet 1= 192.168.0.0/26

         VM2= East = 192.168.0.5, Subnet 2= 192.168.0.64/26
            Vnet= Aus-vnet, Address Space= 192.168.0.0/24

==> I am not able to ping VM with private IP in different subnets but are in same reso10203-vm1-detail.pngurce group. What configuration need to be done. They looks isolated to me.

Please also find attached document. 10166-vm-name.png



vm2-name.png (40.2 KiB)
virtual-network.png (26.1 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

AndreasBaumgarten avatar image
0 Votes"
AndreasBaumgarten answered

Any NSGs on the subnets that might block?
Firewall on each VM is allowing ICMP/Ping or is disabled?

Kind regards
Andreas Baumgarten

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

MohitJoshi-9493 avatar image
0 Votes"
MohitJoshi-9493 answered

Hi

I have attached nsg detail of East Vm with default settings.

What I have done?. I made this a new setup, two different subnets. Does it require a router in between?. I have not done any kind of setup like that?. I just only created vm with two subnets.

I found one article that in azure routing between two subnets is allow by default.

10167-nsg-eat-vm.png



nsg-eat-vm.png (54.8 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

AndreasBaumgarten avatar image
4 Votes"
AndreasBaumgarten answered AllanRay-3764 commented

Exactly: The routing between 2 subnets in the same virtual network is active and allowed by default.

In the NSG the traffic between the 2 subnets in the same virtual network in this scenario is allowed as well.

The only blocking aspect could be the internal Firewalls of the Windows VMs in my opinion.

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I faced the same issue , and I turned Off Windows Defender Firewall (public) on both VMs and it's work very well ,

thanks a lot

3 Votes 3 ·

Yes it is issue for me as well here in office for my test VM ( office internal firewall block) till i tested in outside the network and it worked fine.

0 Votes 0 ·