Linux system

DHCP ์ž„๋Œ€ ์ˆœ์„œ

NENGIN 2024. 3. 4. 17:20

DHCP๋ž€?

์ž์‹ ์˜ ๋„คํŠธ์›Œํฌ ์•ˆ์— ์žˆ๋Š” ํด๋ผ์ด์–ธํŠธ ์ปดํ“จํ„ฐ๊ฐ€ ๋ถ€ํŒ…๋ ๋•Œ

IP์ฃผ์†Œ, ์„œ๋ธŒ๋„ท ๋งˆ์Šคํฌ, ๊ฒŒ์ดํŠธ์›จ์ด ์ฃผ์†Œ, DNS ์„œ๋ฒ„ ์ฃผ์†Œ๋ฅผ ์ž๋™์œผ๋กœ ์ œ๊ณตํ•˜๋Š” ํ”„๋กœํ† ์ฝœ์ด๋‹ค.

UDP ํฌํŠธ๋ฒˆํ˜ธ 67๋ฒˆ(์ถœ๋ฐœ์ง€),68๋ฒˆ(๋„์ฐฉ์ง€)์„ ์‚ฌ์šฉํ•œ๋‹ค.

 

์žฅ์  : ํ•œ์ •๋œ IP ์ฃผ์†Œ๋กœ ๋” ๋งŽ์€ IP ์ฃผ์†Œ๊ฐ€ ์žˆ๋Š” ๊ฒƒ์ฒ˜๋Ÿผ ํ™œ์šฉ

 

 

 

DHCP ์ž„๋Œ€์ˆœ์„œ

1. Discover

Client๋Š” DHCP Server๋ฅผ ์ฐพ๋Š”(Discover) ๋ฉ”์„ธ์ง€๋ฅผ ๋ณด๋‚ธ๋‹ค.

 

2. Offer

์ฃผ์†Œ๊ฐ€ ์ •ํ•ด์ง€์ง€ ์•Š์€ ์ƒํƒœ์—์„œ ์„œ๋ฒ„๊ฐ€ ํด๋ผ์ด์–ธํŠธ์—๊ฒŒ ๋ฉ”์„ธ์ง€๋ฅผ ๋ณด๋‚ธ๋‹ค.

์‚ฌ์šฉ ๊ฐ€๋Šฅํ•œ IP, SM, ์ž„๋Œ€์‹œ๊ฐ„, Domain ์ด๋ฆ„, DNS์ฃผ์†Œ, Gateway๋ฅผ ์‘๋‹ตํ•œ๋‹ค.

3. Request

ํด๋ผ์ด์–ธํŠธ๊ฐ€ ์„œ๋ฒ„์—๊ฒŒ IP ์ฃผ์†Œ์˜ ์Šน์ธ์„ ์š”์ฒญํ•œ๋‹ค

 

4. Ack

์„œ๋ฒ„์—์„œ IP ์ฃผ์†Œ ์‚ฌ์šฉ์„ ์Šน์ธํ•œ๋‹ค.

 

์ฃผ์†Œ ์ž„๋Œ€ ๋ฐฉํ–ฅ ์—ญํ•  ํ†ต์‹ ๋ฐฉ์‹
Discover Client Server DHCP Server Discover
(DHCP์„œ๋ฒ„ ์ฐพ๊ธฐ)
Broadcast
Offer Client Server IP Address Offer
(์‚ฌ์šฉํ•  IP์ฃผ์†Œ ์ œ์•ˆ)
Broadcast
Request Client  Server IP Address Offer Ack Request
(์ฃผ์†Œ ์‚ฌ์šฉ ์Šน์ธ ์š”์ฒญ)
Broadcast
(๋ฆฌ๋ˆ…์Šค์—์„œ Unicast)
Ack Client   Server IP address Ack(์ฃผ์†Œ ์‚ฌ์šฉ ์Šน์ธ) Broadcast