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
質問済み 3年前308ビュー
1回答
0
承認された回答

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
回答済み 3年前
profile picture
エキスパート
レビュー済み 7日前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ