Cette page n'est pas encore disponible dans votre langue. Nous nous efforçons d'ajouter d'autres langues. Nous vous remercions de votre compréhension.

On this page

Show all

Help Center/ NAT Gateway/ FAQs/ Public NAT Gateways/ What Are the Differences Between Using a Public NAT Gateway and Using an EIP for an ECS?

What Are the Differences Between Using a Public NAT Gateway and Using an EIP for an ECS?

Updated on 2023-03-17 GMT+08:00

A public NAT gateway provides SNAT and DNAT, so multiple ECSs can share an EIP.

An ECS can also have an EIP bound to it. The EIP does not have to be shared.

If both SNAT and EIP are configured for an ECS, data will be forwarded through the EIP.

If both DNAT and EIP are configured for an ECS, the ECS will have two EIPs, one that is directly bound to the ECS and one that is associated with the DNAT rule. Incoming data will be forwarded by one of the two EIPs, which is determined by the client user. Outgoing data will be forwarded by the EIP directly bound to the ECS in priority. If the two EIPs are different, data forwarding will fail.

Configuring both a public NAT gateway and an EIP for an ECS is not recommended.

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback