Share via


Cannot ping default gateway

Question

Sunday, August 25, 2019 3:58 PM

Hi, 

I am unable to ping the default gateway on my windows 10 vm. The ip address assigned is  192.168.1.5 255.255.255.0 and the default gw is 192.168.1.1. 

Virtual network address space is 192.168.0.0/16. How do I change that to 192.168.1.0/24 ? 

Any help is much appreciated. 

Wasim

All replies (7)

Sunday, August 25, 2019 4:36 PM

Hi Wasim,

You cant change the address space of the vNET without recreating it, however you can add a 192.168.1.0/24 subnet within that vNET and then put the VM in that subnet.

The default gateway on Azure VMs wont respond to ping as ICMP is blocked.  But if you can RDP to it and ping/connect outside of the VM then the default gateway is working.

Thanks,

Matt


Sunday, August 25, 2019 4:39 PM | 1 vote

Hi, 

In Azure, default gateway is not pingable. 

Address space is the super set of Subnet. You can define multiple address space for a VNET. You can add another address space 192.168.1.0/24 as another address space. 

Let me know if you have any further questions. 

Regards, 

Msrini


Sunday, August 25, 2019 7:38 PM

 Hi Matt, thank you very much for the info ! 


Sunday, August 25, 2019 7:38 PM

Hi Msrini, thanks a lot for your help. Cheers!


Monday, August 26, 2019 4:12 AM

Hi, 

If the response answered your question, please mark it as answered. 

Regards, 

Msrini


Wednesday, August 28, 2019 11:58 AM

Hi Wasim,

Any update on the issue?

If your issue is resolved with the provided suggestion, do click “Mark as Answer” and "Up-Vote" on the post that helped you, so that other forum members can benefit from it.

Thanks.


Saturday, August 31, 2019 11:36 PM

Hi Wasim,

Was this resolved?

Thanks,

Matt