The dhclient
that NetworkManager
calls should be the same regardless.
On my Fedora 19 system I'm getting the following command run via NetworkManager
when I allow it to connect:
/sbin/dhclient -d -sf /usr/libexec/nm-dhcp-client.action \
-pf /var/run/dhclient-wlp3s0.pid \
-lf /var/lib/NetworkManager/dhclient-5117671a-6bc3-4f6f-a3c0-54e615efe85c-wlp3s0.lease \
-cf /var/lib/NetworkManager/dhclient-wlp3s0.conf wlp3s0
You can go through and check the setup of dhclient
by looking at the various configuration files it's making use of via the command line.
Statically assigning IPs by MAC
I'll mention this even though @DopeGhoti did as well, but, in general, you typically take your systems' MAC addresses and configure your DHCP server so that it statically assigns the same IP addresses to the same MAC addresses. This gives you the best of both worlds, where you can centrally manage this assignment, but still not have to manually configure it on each host.
But in your case it sounds strange to me that the client isn't simply renewing the same IP that it previously had. That's normally the default behavior in DHCP client/server setups so I would suspect that something isn't configured quite right on your DHCP client.
Example
This is just to illustrate what I'm suggesting, realize you'd have to do something similar, configuring your network on whatever device happens to be providing your DHCP service. If you we're running your own DHCP server you could do something like this per host in your /etc/dhcpd.conf
:
host grinchy {
hardware ethernet 00:26:C7:85:A7:20; # wifi (thinkpad 410)
fixed-address grinchy.bubba.net;
# fixed-address 192.168.1.19;
}
Doing it this way the host requires no knowledge of the networking configuration, but could still be given a consistent, static, IP.