Can I give internet access to a azure VM, without a public IP?

Viewed 9559

I have 3 debian VM on azure, one of them have a public IP with which it goes online (VM_1), and the others only have the internal network(VM_2, VM_3).

Can I give access to my VM_2 or VM_3, through the VM_1?

What broke me was to see that VM_1 has 2 network interfaces, private and public, but if I enter the configuration file there are only 2 interfaces, lo and eth0, and eth0 contains the private IP...

Can i do something, or i need to pay for another public IP assigned by azure?

I want to add some info: My subnet

VM_1 with public and private IP, can download files.

VM_2 and 3, with private IP but without Public IP, can't.

1 Answers

Your question is possible via Azure Virtual NAT. You can assign IPs to the NAT gateway and in the subnet you reference the NAT gateway. By this way all the VMs in the subnet can reach Internet via the NAT gateway IP addresses.

Related