DHCP 관련
글쓴이: goodlsc / 작성시간: 수, 2009/05/27 - 9:58오전
DHCPDISCOVER
DHCPOFFER
DHCPREQUEST
DHCPACK
찾아보면 모두 브로드캐스트를 한다라고나온 곳도 있고
OFFER와 ACK는 유니캐스트라고 나온 곳도 있는데...
실제로 패킷을 잡아보니 OFFER ACK는 유니캐스트를 하고 있더라구요....
그런데 책과 인터넷에 브로드캐스트를 한다라고 나온 것이 결코 오타로 나온 것 같지는 않은데....
답답하네요... 혹시 아시는 분?
Forums:


상황에 따라 broadcast,
상황에 따라 broadcast, unicast 둘 다 가능한 것으로 보입니다.
RFC2131 - DHCP
http://www.ietf.org/rfc/rfc2131.txt?number=2131
4.1 Constructing and sending DHCP messages 부분에 나오네요.
If the 'giaddr' field in a DHCP message from a client is non-zero,
the server sends any return messages to the 'DHCP server' port on the
BOOTP relay agent whose address appears in 'giaddr'. If the 'giaddr'
field is zero and the 'ciaddr' field is nonzero, then the server
unicasts DHCPOFFER and DHCPACK messages to the address in 'ciaddr'.
If 'giaddr' is zero and 'ciaddr' is zero, and the broadcast bit is
set, then the server broadcasts DHCPOFFER and DHCPACK messages to
0xffffffff. If the broadcast bit is not set and 'giaddr' is zero and
'ciaddr' is zero, then the server unicasts DHCPOFFER and DHCPACK
messages to the client's hardware address and 'yiaddr' address. In
all cases, when 'giaddr' is zero, the server broadcasts any DHCPNAK
messages to 0xffffffff.