Route Table

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

What is Route Table?

  • routing table์€ subnet์— ์˜ํ–ฅ์„ ์ค€๋‹ค

  • routing table์€ VPC์— ์ข…์†์ ์ด๋‹ค

    • ๋‹จ, ํ•˜๋‚˜์˜ routing table์ด 2๊ฐœ ์ด์ƒ์˜ subnet์— ์—ฐ๊ฒฐ๋  ์ˆ˜๋„ ์žˆ๋‹ค

      • ๊ทธ๋ž˜์„œ public subnet, db๋Š” ๊ฐ™์€ routing table์„ ์‚ฌ์šฉํ•œ๋‹ค!

        • but, private์€ NAT gateway ์žฅ์•  ์‹œ์— ๋Œ€๋น„ํ•˜์—ฌ ๊ฐ๊ฐ ๋‹ค๋ฅธ routing table์„ ์‚ฌ์šฉํ•œ๋‹ค!

Route Table in Private Subnet

  • Private subnet์˜ ๊ฒฝ์šฐ

    • FROM์ด ๋‚ด๋ถ€๊ณ , TO๊ฐ€ ์™ธ๋ถ€์ด๋ฉด route table์„ ์„ค์ •ํ•ด์„œ routing ํ•  ์ˆ˜ ์žˆ์ง€๋งŒ

    • FROM์ด ์™ธ๋ถ€, TO ๊ฐ€ ๋‚ด๋ถ€๋ฉด ์•ˆ๋œ๋‹ค!

      • Public LB๋ฅผ ํ†ต๊ณผํ•˜๋„๋ก ์„ค์ •ํ•ด์•ผ ํ•œ๋‹ค!

Last updated