Elastic IP

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

Elastic IP == ๊ณ ์ • IP

  • EC2 Instance์˜ Elastic IP ๊ฐ’์€ ๋น„์–ด ์žˆ๊ณ , Public IPv4 ๊ฐ’์€ ์ฑ„์›Œ์ ธ ์žˆ์„ ๋•Œ

    • Instance๊ฐ€ stopn & start ํ•  ๋•Œ IP๊ฐ€ ๋ฐ”๋€๋‹ค

      • Elasitc IP์— ๊ฐ’์„ ํ• ๋‹น ๋ฐ›์œผ๋ฉด ์ด๋Ÿฌํ•œ ํ˜„์ƒ ์—†์ด ๊ณ ์ •๋œ IP๋ฅผ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๋‹ค!

        • but, ๊ธฐ์กด์— ํ• ๋‹น๋ฐ›์€ Public IP๋ฅผ ๋ฐ”ํƒ•์œผ๋กœ Elastic IP๋ฅผ ์ƒ์„ฑํ•  ์ˆ˜๋Š” ์—†๋‹ค

          • ์• ์ดˆ์— ์ฒ˜์Œ instance๋ฅผ ์ƒ์„ฑํ•  ๋•Œ Elastic IP๋ฅผ ์„ค์ •ํ•˜๋Š” ๊ฒƒ!

Elasic IP Charges

  • Elasic IP๊ฐ€ ์–ด๋”˜๊ฐ€์— ํ• ๋‹น๋˜์–ด ์žˆ์ง€ ์•Š์œผ๋ฉด AWS์—์„œ ๊ณผ๊ธˆ์„ ์‹œํ‚จ๋‹ค!

    • EC2์— ์—ฐ๊ฒฐ๋˜์–ด ์žˆ์œผ๋ฉด ๊ณผ๊ธˆํ•˜์ง€ ์•ˆํ”๋‹ค

      • why?

        • "IPv4๋Š” ์œ ํ•œ ์ž์›์ด๊ธฐ ๋•Œ๋ฌธ์— ์‚ฌ์šฉํ•˜์ง€ ์•Š์œผ๋ฉด ์•„๊ปด์“ฐ๋ผ๋Š” ์˜๋ฏธ๋กœ ๊ณผ๊ธˆํ•œ๋‹ค" ๋Š” AWS์˜ ์˜๊ฒฌ์ด ์žˆ๋‹ค

          • but, EC2์— ์—ฐ๊ฒฐ๋˜์–ด ์žˆ์œผ๋ฉด ๊ทธ๋งŒํผ์˜ ๋น„์šฉ์„ ์–ด์งœํ”ผ ๋‚ด๋Š” ๊ฒƒ์ด๋ฏ€๋กœ ๊ณผ๊ธˆํ•˜์ง€ ์•Š๋Š” ๊ฒƒ ๊ฐ™๋‹ค

Elastic IP address limit

  • ํ•œ ๊ณ„์ •๋‹น ์†Œ์œ ํ•  ์ˆ˜ ์žˆ๋Š” Elastic IP์˜ ๊ฐœ์ˆ˜๋Š” ์ œํ•œ์ ์ด๋‹ค

    • IPv4๋Š” ์œ ํ•œ ์ž์›์ด๊ธฐ ๋•Œ๋ฌธ์— ๋„ˆ๋ฌด ๋งŽ์ด ์š”์ฒญํ•˜๋ฉด AWS์—์„œ ์ œ๊ณตํ•˜์ง€ ์•Š๋Š”๋‹ค

    • Default๋กœ๋Š” region ๋‹น 5๊ฐœ์˜ Elastic IP๋ฅผ ์†Œ์œ ํ•  ์ˆ˜ ์žˆ๋‹ค

+

Public IP

  • Public subnet์— ์žˆ๋‹ค๊ณ  ๊ผญ public IP๋ฅผ ๊ฐ€์ ธ๊ฐ€์•ผ ํ•˜๋Š” ๊ฒƒ์€ ์•„๋‹ˆ๋‹ค!

    • ํ•˜์ง€๋งŒ public ์—ฐ๊ฒฐ์ด ํ•„์š”ํ•ด์„œ public subnet์— ์ƒ์„ฑํ–ˆ๊ฒ ์ง€?

  • EC2๊ฐ€ Public subnet์— ์กด์žฌํ•˜๋Š”๋ฐ Public IP๊ฐ€ ์—†์œผ๋ฉด

    • ์™ธ๋ถ€์—์„œ ๋‚ด๋ถ€๋กœ ์ ‘๊ทผ ๋ถˆ๊ฐ€

    • ๋‚ด๋ถ€์—์„œ ์™ธ๋ถ€๋กœ๋„ ์ ‘๊ทผ ๋ถˆ๊ฐ€

  • Private subnet์— ์กด์žฌํ•˜๋Š”๋ฐ Public IP๊ฐ€ ์—†์–ด๋„ ์™ธ๋ถ€๋กœ ์ ‘๊ทผ ๊ฐ€๋Šฅํ•œ ์ด์œ ๋Š” NAT Public IP๋ฅผ ํƒ€๊ณ  ๋‚˜๊ฐ€๊ธฐ ๋•Œ๋ฌธ์ด๋‹ค

  • Public IP ๊ฐ€ ์—†์–ด๋„ ssh๋กœ ์ ‘๊ทผ์ด ๋˜๋Š” ์ด์œ 

    • ๋ฐฉํ™”๋ฒฝ ์„ค์ •์ด ๋˜์–ด ์žˆ์–ด์„œ์ด๋‹ค

Last updated