Subnet

Subnet ์ž์„ธ-ํžˆ ์•Œ์•„๋ณด๊ธฐ ์‹ค๋ฌด ver.

Subnet์ด๋ž€?

  • VPC์˜ IP ์ฃผ์†Œ ๋ฒ”์œ„

    • VPC ์•ˆ์—์„œ ๊ตฌ๊ฐ„์„ ๋‚˜๋ˆ ์ฃผ๋Š” ๊ฒƒ

  • AWS์˜ VPC๋Š” Subnet ์—†์ด ๋™์ž‘ํ•  ์ˆ˜ ์—†๋‹ค!

Subnet ์ด๋ฆ„

  • ๊ฐœ๋…์ ์œผ๋กœ ๋‚˜๋ˆˆ ๊ฒƒ

    • public

    • private

  • ๊ผญ subnet์˜ ์ด๋ฆ„์œผ๋กœ public ์ด๋‚˜ private์„ ์“ฐ์ง€ ์•Š์•„๋„ ๋œ๋‹ค

  • DB subnet์„ ๋ณ„๋„๋กœ ๋‚˜๋ˆ„๋Š” ๊ฒƒ์€ ์ทจํ–ฅ์ฐจ์ด๋‹ค

Subnet์˜ CIDR Block

  • Subnet๋„ CIDR block์„ ์ง€์ •ํ•ด์•ผ ํ•œ๋‹ค

  • Subnet๋ผ๋ฆฌ CIDR์ด ์ถฉ๋Œ๋‚˜๋ฉด ์•ˆ๋œ๋‹ค

  • Subnet CIDR์€ VPC ๋ฒ”์œ„๋ฅผ ๋ฒ—์–ด๋‚˜๋ฉด ์•ˆ๋œ๋‹ค

    • IP์˜ ์ตœ๋Œ€ ์ œ์•ฝ์€ VPC size๋‹ˆ๊นŒ!

  • VPC ๋‚ด์— Subnet์œผ๋กœ ๋•…๋”ฐ๋จน๊ธฐ ํ•˜๋Š” ๊ฒƒ์ด๋‹ค

    • ๋งŒ์•ฝ, Subnet์˜ IP๊ฐ€ ๋ถ€์กฑํ•˜๋ฉด ๋•…๋”ฐ๋จน๊ธฐ ๋นˆ ๊ณต๊ฐ„์— subnet์„ ํ•˜๋‚˜ ๋” ๋งŒ๋“ค๋ฉด ๋œ๋‹ค!

      • but, resource ์ƒ์„ฑ ์‹œ subnet option ์ด ๋‘ ๊ฐ€์ง€๊ฐ€ ๋˜๋ฏ€๋กœ ์–ด๋–ค subnet์„ ์„ ํƒํ• ์ง€ ๊ณ ๋ฏผ ๋  ๊ฒƒ์ด๋‹ค..

        • ์ค‘๊ฐ„์— ์ถ”๊ฐ€๋กœ subnet์„ ๋งŒ๋“ค์ง€ ๋ง๊ณ  ์ฒ˜์Œ์— ์ž˜ ์„ค๊ณ„ํ•˜์ž!

    • Subnet์„ VPC ๋นˆ๊ณต๊ฐ„์— ์ถ”๊ฐ€๋กœ ์ƒ์„ฑํ•  ์ˆ˜๋Š” ์žˆ์ง€๋งŒ, Subnet ๋‘ ๊ฐœ๋ฅผ ํ•ฉ์น  ์ˆ˜๋Š” ์—†๋‹ค

Last updated