🚧 Under construction — VoTechWorks is being built. A free tech program — complimentary, as our commitment to get America working.
voTechWorksGrade 13 · a vocational technology learning center, by urbanicity
newSchoolWorks.com › VoTechWorks › Technology & Design › IT Support / Networking › Cloud Basics for IT Support and Networking › Lesson 9
TEC-ITS43-05 · Lesson 9 · 12.5 clock hours · demo

Connecting On-Premises Networks to the Cloud (VPN and Direct Connect Concepts)

Objective. Students will explain how a site-to-site VPN and a dedicated connection service link on-premises networks to a cloud VPC, configure a simulated VPN gateway in the console, and verify connectivity between a local network segment and the cloud VPC.

⚠ Pending professional review

This lesson, its worked examples and its practice questions has not yet been verified by an industry-certified professional or by a certification or approval body. It is a study draft and may contain errors. Do not use it as instructions for work on a job site or on live equipment. Always follow your instructor, your supervising professional, and current official references and regulations.

VoTechWorks program approval and accreditation are still in progress. Credentials are issued only by the certifying bodies named in each program, after their own exams.

Connecting On-Premises Networks to the Cloud

Most real-world organizations do not move everything to the cloud at once. Instead, they run a hybrid architecture: some servers and devices stay on-premises while others run in a cloud VPC (Virtual Private Cloud). To make those two sides communicate securely, engineers use either a site-to-site VPN or a dedicated connection service. Understanding both options is essential for IT support and networking roles and is tested on the CompTIA Network+, Cisco CCST, and Cisco CCNA exams.

What Is a Site-to-Site VPN?

A site-to-site VPN creates an encrypted tunnel between two network endpoints across the public internet. In a hybrid cloud setup the two endpoints are:

The tunnel uses the IPsec protocol suite. IPsec authenticates both ends of the tunnel and encrypts every packet traveling through it. From the perspective of hosts on either side, they are sending traffic to private IP addresses just as they would on a local LAN. The encrypted wrapper keeps the payload hidden from anyone on the public internet between the two endpoints.

Cloud providers typically provision two parallel tunnels to the same VGW for redundancy. If one tunnel goes down, traffic automatically fails over to the second. When you check the console you should see a status of Up for at least one tunnel before declaring the connection healthy.

Key Configuration Parameters

When you build a site-to-site VPN in a cloud console you will supply or confirm:

1. The public IP of the customer gateway.

2. The routing type — static (you enter route prefixes manually) or dynamic using BGP (Border Gateway Protocol).

3. The pre-shared key (PSK) or certificate used for IKE (Internet Key Exchange) phase-1 authentication.

4. The VPC route table — you must add a route pointing your on-premises CIDR block toward the VGW, and you must add a route on your on-premises router pointing your cloud VPC CIDR toward the tunnel interface.

Both sides must agree on the same IKE version, encryption algorithm (such as AES-256), hashing algorithm (such as SHA-256), and Diffie-Hellman group for the tunnel to come up.

Dedicated Connection Services

A site-to-site VPN shares bandwidth with all other internet traffic and introduces variable latency. For workloads that need consistent throughput and low latency, cloud providers offer dedicated connection options:

Dedicated connections are more expensive and take longer to provision (weeks to months) compared to a VPN (minutes to hours). However, they offer predictable bandwidth, lower latency, and no exposure to internet-based threats. Many compliance frameworks favor dedicated connections for sensitive data.

Trade-off Summary

| Factor | Site-to-Site VPN | Dedicated Connection |

|---|---|---|

| Setup time | Minutes to hours | Weeks to months |

| Cost | Lower | Higher |

| Latency | Variable (internet) | Consistent (private) |

| Bandwidth | Shared | Dedicated |

| Availability | Good (dual tunnels) | Very high (redundant circuits) |

Traffic Path Through the Tunnel

When a host on the on-premises network sends a packet to a private IP address inside the VPC, the on-premises router looks up its routing table and matches the VPC CIDR to the tunnel interface. The router encapsulates the original packet inside an IPsec ESP (Encapsulating Security Payload) header, encrypts it, and sends it out the WAN interface toward the VGW's public IP. The VGW decrypts the outer packet, reads the original destination IP, and forwards it to the correct resource inside the VPC. The reply follows the same path in reverse. At no point does the private payload travel in plaintext across the internet.

Safety and Professional Practices

Verifying the Connection

After configuring both sides, verify the VPN in two ways:

1. Console check: In the cloud console, navigate to the VPN connections section and confirm tunnel status shows Up.

2. Connectivity test: From the simulated on-premises host, ping the private IP address of an instance inside the VPC. A successful ping confirms that routing, tunnel negotiation, and security group rules are all correct.

If the ping fails, work through the layers: confirm tunnel status, check route tables on both sides, verify security groups allow ICMP from the on-premises CIDR, and confirm the on-premises firewall is not blocking IPsec UDP port 500 and 4500.

Key terms8

Site-to-Site VPNAn encrypted IPsec tunnel connecting two fixed network locations — such as an on-premises office and a cloud VPC — across the public internet, so hosts on both sides can communicate using private IP addresses.
Customer Gateway (CGW)The on-premises router or firewall that serves as one endpoint of a site-to-site VPN tunnel; its public IP address is registered with the cloud provider to establish the connection.
Virtual Private Gateway (VGW)The cloud-side VPN concentrator that terminates one or more IPsec tunnels at the edge of a VPC, allowing on-premises traffic to enter the cloud private network.
IPsecA suite of protocols that authenticates and encrypts IP packets. It is the standard protocol used to secure VPN tunnels between network devices.
IKE (Internet Key Exchange)The protocol used during VPN setup to authenticate peers and negotiate shared encryption keys before IPsec traffic can flow through the tunnel.
AWS Direct Connect / Azure ExpressRouteDedicated private fiber circuit services offered by cloud providers that connect an on-premises facility directly to the cloud region without using the public internet, providing consistent bandwidth and lower latency than a VPN.
BGP (Border Gateway Protocol)A dynamic routing protocol used between the on-premises router and the cloud VPN gateway to automatically exchange network prefix information, eliminating the need to enter static routes manually.
Pre-Shared Key (PSK)A shared secret string configured identically on both VPN endpoints; it is used during IKE phase 1 to authenticate the two sides before the encrypted tunnel is established.
In class: Instructor-led diagram and lecture (40 minutes): draw a hybrid cloud topology showing the on-premises router, customer gateway, VPN tunnel over the public internet, and the cloud virtual private gateway terminating in the VPC; compare this to a dedicated connection (AWS Direct Connect or Azure ExpressRoute) and note the trade-offs. · Demo lab: instructor configures a site-to-site VPN between a classroom router (or a simulated on-premises VPC) and the cloud VPC, narrating each step; students follow along by replicating the configuration in their own lab sandbox. · Students test connectivity by pinging a private cloud instance from the simulated on-premises host, capture the successful ping output, and write a one-paragraph explanation in their lab log of why the traffic travels through the tunnel rather than the open internet.
Materials: Cloud lab sandbox, two VPC lab accounts (simulating on-premises and cloud), Cisco CCST and CCNA study materials (VPN fundamentals), lab log template, network diagram worksheet
Check: Students must show a successful ping across the VPN tunnel and submit a lab log entry with the correct explanation of the traffic path; instructor verifies the VPN tunnel status is 'Up' in the console.

Practice check8

Answer each question, then check it. Nothing is recorded; this is your own practice.

CompTIA Network+ — Network Connectivity / Hybrid Cloud
1. A technician is setting up a site-to-site VPN between an on-premises office and a cloud VPC. Which device represents the customer gateway in this topology?
CompTIA Network+ — Security Concepts / VPN
2. Which protocol suite is used to authenticate and encrypt packets traveling through a site-to-site VPN tunnel?
Cisco CCST — Networking Fundamentals / Redundancy
3. After configuring a site-to-site VPN, the technician checks the cloud console and sees that one tunnel shows 'Up' and the second shows 'Down.' What should the technician conclude?
CompTIA Network+ — Cloud Connectivity / WAN
4. A company requires consistent, low-latency connectivity between its data center and a cloud region, and its compliance policy prohibits sensitive data from traversing the public internet. Which solution best meets these requirements?
Cisco CCNA — VPN Technologies / IPsec
5. When a host on the on-premises network sends a packet to a private IP inside the cloud VPC through an active VPN tunnel, what does the on-premises router do before forwarding the packet to the internet?
Cisco CCNA — Troubleshooting / VPN
6. A student configures a site-to-site VPN but the tunnel does not come up. The cloud console shows IKE errors. Which parameter mismatch is the most likely cause?
Cisco CCNA — Routing Technologies / BGP
7. Which routing protocol can be used in a site-to-site VPN configuration so that the on-premises router and the cloud virtual private gateway automatically exchange network prefix information?
CompTIA Network+ — Troubleshooting Network Connectivity
8. A technician's VPN tunnel shows 'Up' in the console, but pinging a private cloud instance from the on-premises host still fails. Which is the most likely additional issue to check?
Record this lesson on my transcript. Sign in with your key and enrollment email to record lessons (enroll free if you have no key). This page stays open to read and practise.