هل يتلقى عميل DHCP DHCP NAK إذا كانت أي من المعلمات خاطئة في إصدار DHCP؟

StackOverflow https://stackoverflow.com/questions/1803870

  •  05-07-2019
  •  | 
  •  

سؤال

أقوم ببناء عميل DHCP باستخدام C على Ubuntu 9.04. الآن أرسل إصدار DHCP إلى خادم DHCP ، لا يرسل أي ACK كما هو متوقع. كنت أتساءل عما إذا كان يرسل أي DHCP NAK إذا كان أي من المعلمات خاطئة.

هناك مشكلة أخرى. بعد إرسال إصدار DHCP ، لا يزال الإنترنت يعمل. أيضًا عندما أفعل ifconfig ، لا يزال يعرض عنوان IP الخاص بـ ETH0. ولكن عندما أقوم بالإنترنت dhclient -r لا يعمل ولا يعرض IfConfig عنوان IP الخاص بـ ETH0.

هل كانت مفيدة؟

المحلول

Are you using tcpdump to inspect the packet traffic while you debug the handshake? That should show you if your server's implementation sends a NAK. RFC 2123: Dynamic Host Configuration Protocol indicates that there is a DHCPNAK.

DHCPNAK -- Server to client indicating client's notion of network address is incorrect (e.g., client has moved to new subnet) or client's lease as expired.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top