Cov txheej txheem:

Kuv yuav ua li cas thiaj ua tau AWS pej xeem thiab ntiag tug subnet?
Kuv yuav ua li cas thiaj ua tau AWS pej xeem thiab ntiag tug subnet?

Video: Kuv yuav ua li cas thiaj ua tau AWS pej xeem thiab ntiag tug subnet?

Video: Kuv yuav ua li cas thiaj ua tau AWS pej xeem thiab ntiag tug subnet?
Video: Tshuaj theem vim li cas thiaj tau nqi ?/ Siv kho mob dab tsi?/paris polyphylla use for? 2024, Hlis ntuj nqeg
Anonim

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 . Ua 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 CIDR 10.0.2.0/24.
  4. Tsim thiab txuas "Internet Gateway"
  5. Ntxiv ib txoj hauv kev rau Public Subnet .

Ua li no, koj yuav kuaj xyuas seb lub subnet yog pej xeem lossis ntiag tug AWS li cas?

Yog li ntawd, rau txiav txim yog tias ib muab subnet yog pej xeem lossis ntiag tug , koj yuav tsum tau piav qhia txog txoj kab lus uas cuam tshuam nrog qhov ntawd subnet . Qhov ntawd yuav qhia koj txoj kev thiab koj ua tau xeem rau 0,0. 0.0/0 txoj kev nrog lub rooj vag ID ntawm igw-xxxxxxxxxxxxxxxxxxxx (as opposed to local). Ntawm no, koj tuaj yeem pom txoj hauv kev ntawm 0.0.

Tsis tas li ntawd, dab tsi yog qhov 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.

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.

Vim li cas VPC yog dab tsi?

Default VPC yog ib lub network Virtual uas tau tsim los rau cov neeg siv khoom AWS tus lej 1st lub sijhawm EC2 cov peev txheej tau muab. Ntawm qhov tod tes, ib qho tsis raug cai (tseem hu ua Cov Neeg Siv Khoom VPC ) tsis tuaj yeem tsim thaum EC2 cov peev txheej tau muab thiab cov neeg siv khoom xav tau los tsim tus kheej VPC.

Pom zoo: