Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
we are building dhcp server,
the problem is we are unable to detect DHCP-DECLINE AND DHCP-RELEASE
message types packets from the client.
what may b the problem.
we run the ethereal on the server to detect those packets, but the client is not sending these packets at the time of its shutdown.
We are able to detect DHCP-DISCOVER and DHCP-REQUEST packets from the same client but not DHCP-release from client and dhcp-decline from server.
Perhaps the clients are not sending these messages. I believe that some clients do not do this, so as a dhcp server you have to leave the ipaddress allocated until the lease expires.
Have you got access to the clients? Can you install a packet sniffer on the clients?
Is it possible to look for another lease request from a device with the same mac address and if you get one then delete the old lease?
As I recall that is just the way that their dhcp clients have been programmed! If they're not sending a dhcp release then (in my opinion) you have to assume that the lease is still in use until the lease expires.
Does the rfc for dhcp state anything about this issue?
If you are running ethereal on the client and you can see the dhcp request and discover packets but not the release and decline packets then I would think that that is a very good indication that the client is not sending these responses.
From my understanding DCHP Servers work this way for a reason. You set a release time of say 24 hours. (usually a longer period of time like 3 days) and that way you are not assigning a different IP address every day. It makes life easier for all involved I think.
Why you need to know when its released? whats the purpose of that?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.