简体   繁体   中英

Is it possible to a VM be "shared" by 2 or more virtual networks on Azure?

On Azure, I set up the following virtual network:

      | gateway    VPN |
Vnet1 |---------  -----| LocalNet1
      |                |

resources

Name | IP address
VM1  | 192.168.0.5

I would like to "share" the VM1 to another virtual network. I thought about - and tried - setting another IP on VM1 and creating Vnet2 with a network corresponding to that new IP. But it seems it is not working at all.

These two articles are close, but not exactly what I really need,

Any help or hint is appreciated.

You can't have a VM with multiple NICs in different virtual networks. You can, however, have multiple NICs with each one assigned to different subnets in the same VNet.

Said that, to connect multiple VNets, you need VPN. Once the VPN is connected you will be able to communicate between networks like if they were in the same one.

Configure a VNet to VNet Connection

https://azure.microsoft.com/en-us/documentation/articles/virtual-networks-configure-vnet-to-vnet-connection/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM