Step 8: Testing Network Connections
After connecting to your Windows server, you should verify that network connectivity is working correctly. This step tests both internet access and internal VPC communication.
Verify IP Configuration
- Open Command Prompt or PowerShell on your EC2 instance.
- Type the following command and press Enter:
_CODE_BLOCK_0_
- Verify that your IP address matches the address you configured during EC2 instance creation:
- Public-Server should show 10.0.1.100
- Private-Server should show 10.0.2.200
- In Command Prompt, type:
- Press Enter and verify you receive responses.
- Your Internet Gateway (IGW) is functioning correctly
- DNS resolution is working
- Your route tables are configured properly
- The Internet Gateway is attached to your VPC
- The public route table has a route to 0.0.0.0/0 through the IGW
- The security group allows outbound traffic
- In Command Prompt on your Public-Server, type:
- Press Enter and verify you receive responses from the Private-Server.
- Verify the Private-Server security group allows traffic from 10.0.0.0/16
- Confirm the Private-Server is running
- Check that Windows Firewall on the Private-Server allows ICMP traffic
- On the Public-Server, open Remote Desktop Connection.
- Enter 10.0.2.200 as the target.
- Connect using the Private-Server administrator credentials.
- [x] You can ping an internet domain (like google.com) from Public-Server
- [x] You can ping 10.0.2.200 from Public-Server
- [x] You can RDP to Private-Server from Public-Server
Note: Skip this verification if you selected auto-assignment for your IP address.
Test Internet Connectivity
_CODE_BLOCK_1_
Successful ping responses confirm:
Troubleshooting: If the ping fails, verify:
Test Private Network Access
_CODE_BLOCK_2_
Troubleshooting: If no response is received:
Test Remote Desktop Between Servers
Once you can successfully ping the Private-Server, you can also establish Remote Desktop connections:
This works because traffic between subnets is allowed through the security groups you configured.
Success Criteria
You are ready to proceed when:
Note: External connections from your home or office network remain unavailable until VPN configuration is complete and route tables are properly established.