Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I have a VM in Azure with two NICs. Each NIC has its own subnet. Azure only lets the Primary NIC have a public IP address. It appears that unless you have a public IP address a NIC cannot access the Internet but I need both to have Internet access.

Config details: The Primary NIC is on subnet 10.0.0.0/24 with Gateway 10.0.0.1. This subnet is for the Management Network. I need this to ssh into the machines for host administration purposes. The second NIC is on subnet 203.0.113.0/24 and requires a gateway with IP address 203.0.113.1 but I of course cannot configure that. This subnet is for the application and the application requires Internet assess. Network Layout

I am not a networking expert so I struggling to work this one out. In fact looking at the diagram maybe the Primary NIC should be the Provider Network... ???

I think I need to create another VM and make it the Internet gateway - but maybe there is another way in Azure.

Finally, I do not have a VPN set up into Azure. I am SSHing in via the public Internet - and I want to keep it that way.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
252 views
Welcome To Ask or Share your Answers For Others

1 Answer

We have now added the ability to have a public IP on all your NICs, including the secondary NICs. It is currently in preview, more information can be found here about how to get access. Hope this helps.

https://docs.microsoft.com/en-us/azure/virtual-network/virtual-network-multiple-ip-addresses-powershell


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...