Can two vms (on separate virtual networks) ping each other? If so, how

Steven O 40 Reputation points
2024-05-15T18:39:47.7533333+00:00

{VNET1}

(VM1)Windows VM (testserver)- Private IP address = 10.0.0.7

VNet Address space: 10.0.0.0/16

Subnet Apps Address space: 10.0.0.0/24

{VNET2}

(VM2) Linux VM {sonicwall} private IP address =172.16.0.4

VNet2 Address space: 172.16.0.0/16

Subnets Address space:

LAN X0: 172.16.1.0/24

WAN X1:172.16.0.0/24

Description: I have a windows vm (test server), and I just deployed a linux vm with SonicWall NSv (Firewall/Security/VPN/Router)-BYOL appliance on separate virtual network.

Assignment: Need to ping Sonicwall LAN IP from windows vm. Need step by step

Quick Notes and questions:

-The windows vm was deployed without an assigned public ip address

-Can this assignment be done without vnet peering and route tables?

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,991 questions
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,505 questions
Windows Network
Windows Network
Windows: A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.Network: A group of devices that communicate either wirelessly or via a physical connection.
770 questions
0 comments No comments
{count} votes

Accepted answer
  1. akinbade abiola 18,300 Reputation points
    2024-05-15T19:05:08.9966667+00:00

    Hello Steven O,

    Thanks for your question.

    By default, 2 Separate Virtual Networks cannot communicate with each other.

    Since you want to ping the SonicWall LAN IP from the Windows VM. VNet peering is the most straightforward approach. You don't need a public IP address for the Windows VM as long as communication stays within the peered virtual networks.

    However, yes it can be done if you dont want to use peering or route tables. You can leverage alternatively VPN Gateway.

    See the documentation here if you want to implement: https://learn.microsoft.com/en-us/azure/vpn-gateway/vpn-gateway-howto-vnet-vnet-resource-manager-portal

    Please let me know if you have further questions

    You can mark it 'Accept Answer' if this helped.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

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.