In NAT gateway , can we use both public IP address by different subnets

2024-06-21T05:16:04.31+00:00

Hi everyone ,

IN NAT Gateway

Is anyway we can have the multi public outbound IP address by different subnets

like 1.0.0.0/24 use Public IP address 1

like 2.0.0.0/24 use public IP address 2

Screenshot 2024-06-21 0109481

Thanks

Azure NAT Gateway
Azure NAT Gateway
NAT Gateway is a fully managed service that securely routes internet traffic from a private virtual network with enterprise-grade performance and low latency.
42 questions
0 comments No comments
{count} votes

Accepted answer
  1. Luis Arias 7,766 Reputation points
    2024-06-21T10:37:52.74+00:00

    Hello Joseph,

    I understood that you want to know if it's possible with one NAT Gateway setup a different IP public per subnet. In that case a single Azure NAT Gateway cannot be used to assign different public IP addresses to different subnets for outbound traffic.

    However In Azure, a NAT Gateway is associated with a subnet, and all outbound traffic leaving that subnet will use the IP address of the NAT Gateway. If you need different subnets to have different outbound public IP addresses, you would need to create separate NAT Gateway instances for each subnet.

    This is because the NAT Gateway operates at the subnet level, not at the level of individual network interfaces within the subnet. Therefore, all resources in a subnet that’s associated with a NAT Gateway use the same public IP address for outbound connections.

    References:

    If the information helped address your question, please Accept the answer.

    Luis

    1 person found this answer helpful.

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.