Kennt sich jemand mit DHCP aus?
Ich bin grade verwirrt welches der beiden Sachen stimmt. Laut Wireshark wird beim Process immer ein Broadcast gesendet. Auf Netacad Folien hab ich mir damals das rausgeschrieben. Was davon stimmt jetzt?
1: (Broadcast|Unicast|Broadcast|Unicast)
DHCPDISCOVER (Client to sever; client is looking for a DHCP server) -> broadcast
DHCPOFFER (Server to client; DHCP server is responding with an address offer) -> unicast
DHCPREQUEST (Client to sever; client is requesting offeredaddress) -> broadcast
DHCPACK (Server to client; DHCP server is assigning the address) -> unicast
2: (4 mal Broadcasts)
Weiß jemand was stimmt 1 oder 2?
2 Antworten
beides
https://wiki.wireshark.org/DHCP
aber eigentlich das erste .
Es ist theoretisch beides korrekt, soweit ich weiß
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.