Route Public IPv4 Address within VPC

0

A customer wants to route one specific IPv4 address (which is an EIP of another EC2 instance) within a VPC, but different subnet. Is this possible? Setting up an entry in the 2 route tables does not seem to work. Ping via private IP works, but not public IP.

Route Table 1:

  • 172.31/16 local
  • 0.0.0.0/0 igw
  • 1.1.1.1/32 TargetInstance

Route Table 2:

  • 172.31/16 local
  • 0.0.0.0/0 igw
  • 2.2.2.2/32 SourceInstance
profile pictureAWS
flomair
preguntada hace 3 años369 visualizaciones
1 Respuesta
0
Respuesta aceptada

You can do that, but you will need to disable source/destination checking:

Source/destination checking

Disabling source/destination checking enables an instance to handle network traffic that isn't specifically destined for the instance. For example, instances running services such as network address translation, routing, or a firewall should disable the source/destination check attribute. This attribute is enabled by default

profile pictureAWS
respondido hace 3 años
profile picture
EXPERTO
revisado hace un mes

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas