What is the VPC subnet route priority when two targets have the same default 0.0.0.0/0 route as the destination?

0

If a public subnet has an attached route table with the following routes:

DestinationTarget
0.0.0.0/0nat-gateway-id
0.0.0.0/0igw-gateway-id

Which entry will take priority?. Is order considered in such case?

AWS
gefragt vor 4 Jahren1834 Aufrufe
1 Antwort
0
Akzeptierte Antwort

In a VPC route table, you cannot have two targets with static routes for the same destination network. For example, the subnet route table already has a default route 0.0.0.0/0 pointing to <igw-gateway-id> and if you try to add another default route 0.0.0.0/0 pointing to <nat-gateway-id> in the same route table, will result in the error message: "The route identified by 0.0.0.0/0 already exists."

AWS
beantwortet vor 4 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen