Cov txheej txheem:

Yuav ua li cas koj thiaj paub tias lub subnet yog pej xeem lossis ntiag tug?
Yuav ua li cas koj thiaj paub tias lub subnet yog pej xeem lossis ntiag tug?

Video: Yuav ua li cas koj thiaj paub tias lub subnet yog pej xeem lossis ntiag tug?

Video: Yuav ua li cas koj thiaj paub tias lub subnet yog pej xeem lossis ntiag tug?
Video: Yuav xaiv tus txij nkawm lub ntsej muag zoo li cas? 2024, Hlis ntuj nqeg
Anonim

' tus kheej '. Public subnets muaj ib txoj hauv kev mus rau Internet Gateway; private subnets tsis txhob. Yog li ntawd, rau txiav txim yog tias ib muab subnet yog pej xeem lossis ntiag tug , koj yuav tsum tau piav qhia txog cov kab lus uas yog txuam nrog tias subnet . Qhov ntawd yuav qhia koj txoj kev thiab koj tuaj yeem sim rau 0.0.

Yog li ntawd, dab tsi ua rau subnet pej xeem?

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. Ib tug private subnet nrog qhov loj / 24 IPv4 CIDR thaiv (piv txwv: 10.0. 1.0/24). Qhov no muab 256 tus IPv4 chaw nyob.

Qhov thib ob, yog dab tsi yog ib tug private subnet AWS? A tus kheej subnet muaj NAT Gateway txuas thiab qhov no yog siv los ntawm EC 2 piv txwv kom nkag tau hauv internet. EC 2 piv txwv hauv a tus kheej subnet tsis muaj ib tug elastic IP txuas. Tsis muaj subnet configuration uas yuav muab pej xeem thiab private subnets hauv ib subnet.

Tsis tas li ntawd, kuv yuav ua li cas thiaj li ua rau kuv lub subnet ntiag tug?

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.

Kuv yuav ua li cas thiaj ua tau AWS private subnet?

Tsim ib tug Private Subnet

  1. Nyob rau hauv lub pane navigation, xaiv Subnets. Tom qab ntawd xaiv Tsim Subnet.
  2. Hauv Tsim Subnet dialog box, ua cov hauv qab no: Rau Lub Npe lossis, ntaus lub npe uas txheeb xyuas tau xws li CloudHSM ntiag tug subnet.
  3. Rov ua cov kauj ruam 2 thiab 3 los tsim subnets rau txhua qhov seem Muaj nyob hauv cheeb tsam.

Pom zoo: