1 minute read

Verify an AWS Direct Connect Virtual Interface

Test connectivity over your virtual interface using traceroute and an Amazon EC2 instance.
Milica Dancuk
· Updated
November 26, 2026

Verify a virtual interface (VIF) before you route production traffic over it. Use traceroute to test the connection to AWS services. Use a pingable Amazon EC2 instance to test the connection to an Amazon Virtual Private Cloud (VPC).

Method 1: Verify with traceroute

1. Run traceroute to an AWS resource reachable over the VIF.

2. Check that the AWS Direct Connect identifier appears in the trace.

Method 2: Verify with a Pingable AMI

A pingable Linux Amazon Machine Image (AMI), such as Amazon Linux AMI, is a quick way to test the connection to a VPC.

1. Launch an Amazon EC2 instance in the VPC attached to the virtual private gateway (VPG). Use a pingable Linux AMI, such as Amazon Linux AMI, from the Quick Start tab.

2. Make sure the security group for the instance permits inbound ICMP traffic.

3. After the instance is running, find its private IPv4 address in the instance details.

4. Ping the private IPv4 address, and check for a response.

Note

The iptables rules on the servers in your environment stay in effect. Misconfigured rules can disrupt traffic flows.
AWS security groups stay in effect. Misconfigured security groups can disrupt traffic flows.

Add Connection Redundancy

Each AWS Direct Connect connection is a single dedicated network between your equipment and an Amazon router. Establish a second connection if you need redundancy.