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
demandé il y a 3 ans309 vues
1 réponse
0
Réponse acceptée

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
répondu il y a 3 ans
profile picture
EXPERT
vérifié il y a 7 jours

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions