On 12 Apr 2017 21:29:13 GMT, Frank Slootweg <th...@ddress.is.invalid>
wrote:
>Since "Static DHCP" is a contradiction in terms, is it so silly to say
>"Static IP" when the actual setting in some router is "Static DHCP IP"?
>No, of course it isn't, because it leaves out the silly contradiction in
>terms. That the static IP is probably managed by the same function which
>also assigns dynamic IPs is totally irrelevant.
Sigh. I think we can all agreed that a (real) static IP LAN address
is NOT delivered by the DHCP server in the router, while a dynamic IP
LAN address is delivered by the DHCP server in the router. Any
objections so far?
Not hearing any, we have our first problem when the static IP address
is configured to be in the middle of the DHCP IP address pool. For
example, some routers assign almost the entire Class C IP address
block to DHCP, usually 192.168.1.2 through 192.168.1.254. That makes
it rather difficult for users to assign static IP's to their
computahs, servers, print servers, etc, and not have the router try to
assign the same address to some other machine. The obvious fix is to
assign a smaller chunk of the Class C IP address block (such as .100
to .199) to the DHCP address pool in the router and not use these for
static IP's, but what happens if the administrator or owner does do
this and leaves everything at the default settings? It's now the
routers job to figure out which IP addresses are being used on the
LAN. It can do this by pinging a prospective IP address, sniffing
traffic, digging though recent DHCP assignments (for dealing with
machines that randomly connect and disconnect), or looking at the ARP
table for addresses in use. There's an RFC for each of these. None
of them are deemed "required", which give router manufactures a great
opportunity to do leave them out, with predictable results.
In theory, if one sets a static IP address for some (mobile) device on
a network managed by a router, the router will be able to detect the
presence of that device, it's MAC address, and what IP address it is
using by one of the aforementioned methods. It will then not assign
in use addresses via DHCP. However, I wouldn't count on it. Just
keep the DHCP IP address pool, and the static assigned IP addresses
separate and you won't have a duplicate IP address problem.
Incidentally, a fun DHCP problem is drive-by DHCP, where a wireless
client, laptop, or smartphone literally drives past an open (no WPA
encryption password required) wireless router, which then assigns it
an IP address. Comcast "gateways" do that so they can do their
xfinitywifi thing. The problem is that unless the router is set to
expire such DHCP assignments rather quickly, the ARP table will
rapidly fill up causing the router to do "unexpected" things. ARP
table overflow is one reason that some coffee shop routers need to be
rebooted quite often.
Of course, there's a security problem with sequentially assigning IP
addresses via DHCP. Some evil hacker (like me) might be able to
predict the assigned IP address of some device as it is turned on or
wakes up. Then, the evil hacker can spoof that IP address on the
network and impersonate the device. So, there's some RFC for
randomizing the assignment of IP addresses by DHCP.
Finally, if you're not asleep from the boring lecture by now, we have
what I'll designate as "pre-assigned, pre-configured, or reserved
static DHCP". There are other names for it, but the mechanisms are
identical. It's considered static because it doesn't change. If you
don't like the term "static", you might be able to substitute
something that means "does not change". It's pre-assigned or
reserved, because the DHCP server is configured to look at the clients
MAC address, and check a list of IP and MAC address pairs, that match
the clients MAC address. If they match, then the DHCP server assigns
it a specific IP address. This is really handy if you want all your
machines and devices configured for just DHCP, without having to
configure IP addresses for the machine, netmask, default gateway, DNS
servers, static routes, etc. Another cool feature is that a machine
can be moved from the network with the pre-assigned static IP address,
plugged into another networks with a completely different router, and
still work without reconfiguration.
--
Jeff Liebermann
je...@cruzio.com
150 Felker St #D
http://www.LearnByDestroying.com
Santa Cruz CA 95060
http://802.11junk.com
Skype: JeffLiebermann AE6KS
831-336-2558