Host cannot ping another host in a different subnet

Jakezxz1 40 Reputation points
2023-05-05T16:47:42.54+00:00

Hello I have a private address space of 10.1.0.0/16

From this I have 2 Subnets:

WAN X1 - 10.1.0.0/24

LAN X0 - 10.1.1.0/24

I have 2 VMS

1 of the VMs [NSv270] has 2 NICs

WAN X1 Private: 10.1.0.4 Public 1.2.3.4

LAN X0 Private 10.1.1.4

The other VM [Host1] has 1 NIC

Host1NIC Private IP 10.1.1.5 Public 5.6.7.8

All VMs are in the same resource group, share the same NSG and are contained within the same vnet.

I have a route table and have associated both subnets to it.

I have no UDR's implemented

The NSG has an any any rule from my public IP address.

I cannot reach the public IP of the VM Host1

Host 1 and NSv270 can ping one another.

Inside of NSv270 I have very standard NAT and Access Rules.

I have tested adding a static route from source: Host1 [10.1.1.5] to 0.0.0.0/0 to X0 IP / X1 IP / Any

Nothing works.

I'm not sure why something so simple is posing such a challenge here, is anyone able to gleem the issue?

Thank you

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,762 questions
0 comments No comments
{count} votes

Accepted answer
  1. Jackson Martins 10,606 Reputation points MVP Volunteer Moderator
    2023-05-05T16:57:55.19+00:00

    Hi @Jakezxz1

    You mentioned that you are unable to access the public IP of VM Host 1, correct? Is the public IP address 5.6.7.8?

    Since you have configured a route to forward packets to your NSv, the VM's public IP will not be accessible. Instead, you should use the entry IP address 1.2.3.4 and perform a Network Address Translation (NAT) for Host 1.

    Get in touch if you need more help with this issue.

    --please don't forget to "[Accept the answer]" if the reply is helpful--


1 additional answer

Sort by: Most helpful
  1. Konstantinos Passadis 19,586 Reputation points MVP
    2023-05-05T17:51:40.5566667+00:00

    Hello @Jakezxz1

    It seems like the issue may be related to the lack of a specific route for the public IP address of Host1. Even though the NSG has an any any rule from your public IP address, the VM Host1 needs a specific route to send traffic back to your public IP address.

    You mentioned that you added a static route from Host1 to 0.0.0.0/0 to X0 IP / X1 IP / Any, but this may not be sufficient to route traffic to your public IP address.

    You could try adding a specific route for your public IP address on NSv270, with the next hop being the private IP address of Host1. This should allow traffic from NSv270 to reach Host1 and back.

    Additionally, you should ensure that the necessary firewall rules are in place on Host1 to allow traffic from NSv270 and your public IP address.

    If this helped kindly Accept the answer or send us additional feedback so we can help!

    Regards

    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.