0Pricing
AWS for Backend Developers (EC2, S3, RDS, Lambda) · บทเรียน

VPC ซับเน็ต และตารางเส้นทาง

ออกแบบและกำหนดค่าเครือข่ายเสมือนแบบแยกของคุณใน AWS พร้อมกำหนดซับเน็ตและจัดเส้นทางการรับส่งข้อมูลอย่างมีประสิทธิภาพ

VPC ซับเน็ต และตารางเส้นทาง เป็นบทเรียน AWS for Backend Developers (EC2, S3, RDS, Lambda) ฟรีบน CoddyKit นี่คือบทเรียนที่ 1 จากทั้งหมด 4 บทเรียน คุณสามารถอ่านบทเรียนทั้งหมดด้านล่างฟรี — จากนั้นลองปฏิบัติด้วยตัวคุณเองในเบราว์เซอร์พร้อมตัวแก้ไขโค้ดในตัวและติวเตอร์ AI ตลอด 24/7 บทเรียนนี้เป็นส่วนหนึ่งของเส้นทางการเรียน AWS for Backend Developers (EC2, S3, RDS, Lambda) และความก้าวหน้าของคุณจะซิงค์ข้ามเว็บและแอป CoddyKit คอร์ส AWS for Backend Developers (EC2, S3, RDS, Lambda) มีบทเรียนทั้งหมด 4 บทเรียน

บางส่วนของบทเรียนนี้ยังไม่ได้รับการแปล และแสดงเป็นภาษาอังกฤษ

Your Private Cloud Network

Welcome to AWS Networking! Just like your home or office network, applications in the cloud need a way to communicate securely.

AWS provides a service called Virtual Private Cloud (VPC). It's your own isolated network space in the AWS cloud where you can launch resources like EC2 instances.

Understanding Your Virtual Private Cloud

A VPC is a logically isolated section of the AWS Cloud. Think of it as your own private data center, but virtual!

  • You define its IP address range (a CIDR block).
  • It's completely isolated from other AWS customers' VPCs.
  • You have full control over your virtual networking environment.

Setting Up Your VPC's Address Range

When you create a VPC, you assign it an IPv4 CIDR block. This is a range of private IP addresses that your resources within the VPC will use.

A common choice is a /16 CIDR block, like 10.0.0.0/16. This gives you over 65,000 private IP addresses to work with!

CIDR (Classless Inter-Domain Routing) is a standard for allocating IP addresses.

Default VPCs vs. Custom Ones

When you first create an AWS account, a Default VPC is automatically provisioned in each region. It's pre-configured to get you started quickly.

However, for most real-world applications, you'll want to create a Custom VPC. This gives you more control over your network topology, IP ranges, and security settings.

Dividing Your VPC with Subnets

A subnet is a range of IP addresses within your VPC. Think of them as smaller sections or segments of your private network.

You create subnets to organize your resources and enhance security. For example, you might have one subnet for web servers and another for databases.

Public and Private Subnets

Subnets can be either public or private:

  • Public Subnet: Resources in a public subnet can access the internet directly via an Internet Gateway.
  • Private Subnet: Resources in a private subnet cannot directly access the internet. They are typically used for databases or internal application servers that need more isolation.

Subnets Are AZ Specific

An important concept: each subnet you create must reside entirely within a single Availability Zone (AZ).

This means if you want your application to be highly available across multiple AZs, you'll need to create a separate subnet in each AZ you plan to use.

Guiding Traffic with Route Tables

A route table contains a set of rules, called routes, that determine where network traffic from your subnet or gateway is directed.

Each subnet in your VPC must be associated with a route table. This association dictates how traffic flows in and out of that subnet.

Understanding Routes & Gateways

Every route table has a 'local' route by default, allowing communication within the VPC.

To enable internet access for a public subnet, you add a route to an Internet Gateway (IGW). The IGW connects your VPC to the internet.

Private subnets often use a NAT Gateway or NAT instance to send outbound internet traffic while remaining unreachable from the internet.

Test Your Networking Knowledge

Let's check your understanding of VPCs and subnets.

VPC, Subnets, and Routes Recap

In this lesson, you learned about the core components of AWS networking:

  • VPC: Your isolated virtual network.
  • Subnets: Divisions within your VPC, residing in a single AZ, categorized as public or private.
  • Route Tables: Rules that direct traffic from your subnets.
  • Internet Gateway: Connects your public subnets to the internet.

Mastering these concepts is crucial for building robust and secure cloud architectures!

คำถามที่พบบ่อย

บทเรียน “VPC ซับเน็ต และตารางเส้นทาง” ฟรีหรือไม่

ใช่ — ข้อความเต็มของ “VPC ซับเน็ต และตารางเส้นทาง” ฟรีให้อ่านที่นี่บนเว็บ เพื่อปฏิบัติแบบโต้ตอบ (ตัวแก้ไขโค้ดในตัวและติวเตอร์ AI ตลอด 24/7) และปลดล็อคส่วนที่เหลือของคอร์ส AWS for Backend Developers (EC2, S3, RDS, Lambda) ให้อัปเกรดเป็น CoddyKit PRO คอร์ส AWS for Backend Developers (EC2, S3, RDS, Lambda) มีบทเรียนทั้งหมด 4 บทเรียน

คุณจะเรียนรู้อะไรในบทเรียน “VPC ซับเน็ต และตารางเส้นทาง”

ออกแบบและกำหนดค่าเครือข่ายเสมือนแบบแยกของคุณใน AWS พร้อมกำหนดซับเน็ตและจัดเส้นทางการรับส่งข้อมูลอย่างมีประสิทธิภาพ คุณปฏิบัติ AWS for Backend Developers (EC2, S3, RDS, Lambda) ด้วยโค้ดที่ใช้งานได้จริงที่คุณเรียกใช้โดยตรงในเบราว์เซอร์ และติวเตอร์ AI ตลอด 24/7 ตอบคำถามของคุณขณะที่คุณไปผ่านบทเรียน

คุณต้องมีประสบการณ์ก่อนที่จะเริ่มเรียน AWS for Backend Developers (EC2, S3, RDS, Lambda) หรือไม่

ไม่จำเป็นต้องมีประสบการณ์มาก่อน AWS for Backend Developers (EC2, S3, RDS, Lambda) บน CoddyKit ออกแบบมาสำหรับผู้เริ่มต้นไปจนถึงผู้เรียนขั้นสูง คุณสามารถเริ่มต้นที่นี่หรือเริ่มจากตัวแรกและเรียนด้วยความเร็วของคุณเอง นี่คือบทเรียนที่ 1 จากทั้งหมด 4 บทเรียน

บทเรียน “VPC ซับเน็ต และตารางเส้นทาง” ใช้เวลานานแค่ไหน

บทเรียน CoddyKit ส่วนใหญ่ใช้เวลาประมาณ 5–10 นาที แต่ละบทเรียนจึงสั้นและเป็นแบบโต้ตอบ คุณสามารถก้าวหน้าอย่างต่อเนื่องและกลับมาเรียนต่อจากตรงที่เพิ่งหยุดบนเว็บและแอปได้เลย

ฉันเขียนและรันโค้ดในบทเรียน AWS for Backend Developers (EC2, S3, RDS, Lambda) นี้ได้ไหม

ได้ บทเรียน AWS for Backend Developers (EC2, S3, RDS, Lambda) ทุกบทมีตัวแก้ไขโค้ดในตัว คุณจึงเขียนและรันโค้ดจริงได้เลยในเบราว์เซอร์ และได้รับข้อเสนอแนะจาก AI ในทันที — ไม่ต้องติดตั้งในเครื่องของคุณ

บทเรียนทั้งหมดในหลักสูตรนี้

  1. VPC ซับเน็ต และตารางเส้นทาง
  2. กลุ่มความปลอดภัยและ NACL
  3. บทบาทและนโยบาย IAM
  4. จุดปลายทาง VPC และการเชื่อมต่อส่วนตัว
← กลับไปที่ AWS for Backend Developers (EC2, S3, RDS, Lambda)