Soru

Zorluk: OrtaVPC Connectivity and Routing Troubleshooting

A company has established an AWS Site-to-Site VPN connection between their on-premises network (192.168.10.0/24192.168.10.0/24) and a VPC (10.0.0.0/1610.0.0.0/16) using a Virtual Private Gateway. The VPN tunnel status is active. A SysOps administrator deploys a database server on an Amazon EC2 instance in a private subnet (10.0.2.0/2410.0.2.0/24). The database server needs to communicate with an application server running on-premises (192.168.10.50192.168.10.50). However, network tests show that the database server cannot reach the on-premises server. Which action should the administrator take to resolve this connectivity issue?

  1. A
    Add a route to 0.0.0.0/00.0.0.0/0 targeting the Internet Gateway in the private subnet's route table.
  2. B
    Create an Amazon S3 VPC Gateway Endpoint and associate it with the private subnet's route table.
  3. Enable route propagation for the virtual private gateway on the route table associated with the private subnet.Cevap
  4. D
    Update the private subnet's Network ACL to allow outbound traffic to the on-premises network, while blocking all inbound traffic from the on-premises network.

Cevap

Enable route propagation for the virtual private gateway on the route table associated with the private subnet.
Enabling route propagation dynamically adds the VPN routes to the subnet's route table, directing on-premises destined traffic to the virtual private gateway.

Adım Adım Çözüm

1
Inspect the route table associated with the private subnet hosting the database server.
Identify that the route table lacks a route pointing to the Virtual Private Gateway for the destination IP range of the on-premises network.
Without a valid route, the VPC router does not know how to forward traffic intended for the on-premises subnet.
2
Enable route propagation for the Virtual Private Gateway in the route table settings.
The on-premises routes configured on the VPN connection are dynamically populated in the route table.
Route propagation ensures that the correct routes are maintained automatically without manual static routing updates.

Anahtar Kavram

For instances in a VPC to communicate with an on-premises network via a Virtual Private Gateway (VGW), the route table associated with their subnets must contain routes directing the on-premises CIDR block to the VGW. This can be configured statically or dynamically using route propagation.
Bu soruyu puanla