An Amazon EC2 instance is configured with two Elastic Network Interfaces (ENIs). The primary interface () is in Subnet A () and the secondary interface () is in Subnet B (). Both subnets are public subnets with default routes () targeting the VPC's Internet Gateway. A SysOps administrator assigns an Elastic IP address to both interfaces. External clients can successfully establish SSH connections to the Elastic IP of . However, SSH connection attempts to the Elastic IP of time out. The administrator verifies that both security groups and network ACLs allow inbound TCP port and outbound traffic. Which of the following is the root cause of this connectivity failure?
- AThe network ACL associated with Subnet B blocks outbound SSH responses due to missing ephemeral port rules.
- BThe route table associated with Subnet B is missing a default route () pointing to the Internet Gateway.
- CSubnet B's route table lacks a Gateway VPC endpoint association required to route outbound SSH traffic.
- The operating system of the EC2 instance routes all outbound traffic through the default gateway of , causing asymmetric routing for traffic entering .Cevap
Cevap
The operating system of the EC2 instance routes all outbound traffic through the default gateway of the primary interface (), causing asymmetric routing for traffic entering the secondary interface ().
The correct answer is that the operating system of the EC2 instance routes all outbound traffic through the default gateway of the primary interface (). When an inbound packet arrives on the secondary interface (), the response packet is generated. Because the operating system only has a single default gateway configured for the primary interface (), the response is routed out through instead of . This asymmetric routing causes the connection to time out because the client receives response packets from a different IP address than the one it initiated the connection with, or the VPC routing fabric drops the asymmetric traffic. To resolve this, policy-based routing (source-based routing) must be configured in the OS.
Adım Adım Çözüm
Anahtar Kavram
Asymmetric Routing on Multi-homed EC2 Instances
Tahmini Süre:2m 0s