How does DHCP react if i remove the LAN cable and re attach
Ethernet Chips
No replies yet. Be the first to reply.
Join the discussion.
Ethernet Chips
No replies yet. Be the first to reply.
Join the discussion.
Share projects and connect with makers.
Joined before the site update? first.
New to WIZnet Makers?
We sent a verification link to your address. Open it to activate your account, then log in.
Accounts from this email provider are reviewed by an administrator after verification. Approval usually takes one business day.
Already have an account?
Enter your email address. If it belongs to an account, we'll send a link to set a new password. Members who joined before the site update use this to set their password.
If an account uses that address, we sent a link to set a new password. The link works once and expires in 30 minutes.
Know your password?
Need an account?
RE: How does DHCP react if i remove the LAN cable and re attach
by Coccoliso ·
You can have a single DHCP in a subnet and the DHCP server has a release time of the address ( also for a week ) … even if you change your router in the same subnet the address remains the same throughout the period of lease.
.
Is there a DHCP protocol message to release the address of the client but the devices usually do not know when user may unplug cable from the network and does not send a DHCP Release message.
If you want to try the condition must send this request when the cable is still attached
In my opinion it is important to always respected the sequence:
In this way is the DHCP server that will continue to send you back the same address until the end of the lease time.
As long as your device is connected to the network the DHCP server will not give this address to other device.
The important thing is the conflict of addresses but in the source of W5500 is checked at lease time.
RE: How does DHCP react if i remove the LAN cable and re attach
by hjjeon0608 ·
Hi,
I think you should detect the PHY_LINK_OFF condition and call DHCP_init().
If W5500 get IP address already, although router is changed, W5500 doesn’t try to call DHCP_init().