Dab tsi yog qhov txawv ntawm tus kheej thiab pej xeem subnet hauv AWS?
Dab tsi yog qhov txawv ntawm tus kheej thiab pej xeem subnet hauv AWS?

Video: Dab tsi yog qhov txawv ntawm tus kheej thiab pej xeem subnet hauv AWS?

Video: Dab tsi yog qhov txawv ntawm tus kheej thiab pej xeem subnet hauv AWS?
Video: Qhov Kev Sib Txheeb Ntawm Vajtswv thiab phau Vajluskub Yog Dab Tsi? 2024, Hlis ntuj nqeg
Anonim

Lub ntsiab txawv yog txoj kev rau 0.0. A tus kheej subnet teeb tsa txoj kev ntawd mus rau qhov piv txwv NAT. Private subnet piv txwv tsuas yog xav tau a tus kheej ip thiab internet tsheb khiav los ntawm NAT hauv public subnet . Koj tuaj yeem tsis muaj txoj hauv kev mus rau 0.0.

Kuj paub, dab tsi yog pej xeem thiab ntiag tug subnet hauv AWS?

A pej xeem subnet nrog qhov loj / 24 IPv4 CIDR (piv txwv: 10.0. 0.0/24). Qhov no muab 256 tus kheej IPv4 chaw nyob. A pej xeem subnet yog a subnet uas yog txuam nrog ib txoj kab lus uas muaj ib txoj kev mus rau lub rooj vag hauv Internet. VPN nkaus xwb subnet nrog qhov loj me / 24 IPv4 CIDR (piv txwv: 10.0.

Qhov thib ob, kuv yuav ua li cas thiaj ua tau AWS pej xeem thiab ntiag tug subnet? Tsim VPC nrog Public thiab Private subnets

  1. Tsim VPC. Nkag mus rau AWS tswj console thiab mus rau VPC console.
  2. Tsim Public Subnet. Nco ntsoov xaiv "MyVPC" hauv qab "VPC" cov ntawv qhia zaub mov thiab nkag mus 10.0.
  3. Tsim Private Subnet. Tam sim no tsim Private subnet nrog CIDR 10.0.2.0/24.
  4. Tsim thiab Txuas "Internet Gateway"
  5. Ntxiv ib txoj hauv kev rau Public Subnet.

Tom qab ntawd, ib tug kuj yuav nug, dab tsi yog ib tug private subnet hauv AWS?

Amazon VPC Concepts Cov hauv qab no yog cov ntsiab lus tseem ceeb rau VPCs: Ib qho virtual tus kheej huab (VPC) yog lub network virtual tshwj xeeb rau koj AWS tus account. A subnet yog ntau qhov chaw nyob IP hauv koj VPC. Ib lub rooj sib tham muaj cov cai, hu ua txoj kev, uas yog siv los txiav txim seb qhov twg yog qhov kev sib txuas hauv network.

Public subnet yog dab tsi?

A pej xeem subnet muaj Internet Gateway txuas uas yog siv los ntawm EC2 piv txwv kom nkag mus rau hauv internet. EC2 piv txwv hauv a pej xeem subnet muaj ib tug elastic IP txuas. Ib tug private subnet muaj NAT Gateway txuas thiab qhov no yog siv los ntawm EC2 piv txwv kom nkag mus rau hauv internet.

Pom zoo: