简体   繁体   中英

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

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.

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.

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