Welcome, Guest. Please login or register.

Author Topic: Do you think network DHCP implementation suck?  (Read 1277 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline LoadWB

  • Hero Member
  • *****
  • Join Date: Jul 2006
  • Posts: 2901
  • Country: 00
    • Show all replies
Re: Do you think network DHCP implementation suck?
« on: June 10, 2013, 10:08:57 PM »
DHCP has some short-comings, but it's still useful.  In particular, most DHCP server implementations blindly accept IP address requests provided they don't collide with another existing lease or reservation, or active IP if it's set to ping an IP.  This can cause devices which roam between networks with the same IP scheme to have incorrect settings.  Though Network Location Awareness does a fairly good job to overcome this.

For instance, a home network has IP scheme 192.168.1.0/24 with a DNS server of 192.168.1.1, the laptop has been assigned IP 192.168.1.64.  The laptop gets taken to an office network which also has an IP scheme of 192.168.1.0/24 but the gateway at 1.1 does not offer DNS services and instead gives out 8.8.8.8 as DNS.

However, when the laptop requests the IP address of 192.168.1.64, the office DHCP server sees this address is available and simply acknowledges and the laptop does not get updated configuration information, thus it still queries 192.168.1.1 for DNS which never answers.
 

Offline LoadWB

  • Hero Member
  • *****
  • Join Date: Jul 2006
  • Posts: 2901
  • Country: 00
    • Show all replies
Re: Do you think network DHCP implementation suck?
« Reply #1 on: June 10, 2013, 11:13:18 PM »
Pretty much.  I think NLA probably checks the MAC and IP of the DHCP server serving answers and compares to the last one it talked to.  The problem I described often led to users who couldn't access the Internet either because the DNS server wasn't correct or the stupid DHCP server (it happens in Windows 2003 and Solaris 8, for certain) wouldn't bother to check that the IP being requested was outside the address pool.