ARP Communication

半腔热情 提交于 2020-01-05 04:33:05

问题


Does DHCP use ARP only as communication protocol to assign an IP Address?


回答1:


No. Read this page, and if you'll have further questions, ask.




回答2:


No ARP at all.

1.Client ff:ff:ff:ff:ff:ff 0.0.0.0 255.255.255.255 DHCP Discover

2.DHCPsrvr ff:ff:ff:ff:ff:ff 192.168.1.1 255.255.255.255 DHCP Offer

3.Client ff:ff:ff:ff:ff:ff 0.0.0.0 255.255.255.255 DHCP Request

4.DHCPsrvr mac address of client 192.168.1.1 192.168.1.102 DHCP ACK

  1. Client send ethernet frame saying "where is the DhCP server?" so, he sends to broadcast MAC address, because he does not the mac address of dhcp. There can be several DHCP servers. He has no ip, so in the IP packet source is 0.0.0.0. Destination IP reflects Destination MAC => Broadcast

  2. Server answers with an unicast IP (OFFER), a default gateway, a DNS & other options. Since the host has not yet agreed anything with the DHCP server, the DHCP serv. will send a broadcast frame.

  3. Client officially requests (REQ) the IP lease from the server. Since no agreement has been made he just sends a broadcast. from 0.0.0.0 since he stills has no confirmed IP address.

  4. Server acknowledges it(ACK), from its own mac address, from its own IP, to the IP of the host with the MAC address of the host.




回答3:


When DHCP Server assign a IP Address to DHCP Client, Server use broadcast to let Client and other DHCP Servers, which is located in the same local network(There may be more than one DHCP Server in the local network), know this offered IP Address. However, it could be some ARP packets during DISCOVER/ OFFER/ REQUEST/ ACK, because Client Server want to know whether this offered IP Address is available in the local network.



来源:https://stackoverflow.com/questions/2521102/arp-communication

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!