Re: setting up a static IP address
On Mon, 15 Aug 2011 16:01:17 +0000, Steve Kleene wrote:
> On Mon, 15 Aug 2011 11:49:24 +0000, I wrote:
>
>> I asked my organization to assign me a static IP address within their
>> network, and they obliged. The problem is that every time I boot now,
>> I still get the old address in DHCP space that I had before.
>
> On Mon, 15 Aug 2011 13:26:32 +0000 (UTC), Camaleón replied:
>
>> How about "ifdown eth0 && ifup eth0" and then "ifconfig"?
>
> That still leaves me with the unwanted DHCP address.
Mmm...
>> Is dhclient runnig in background?
>
> Now that looks interesting. On the machine trying to set the static IP,
> this is running:
>
> /sbin/dhclient -d -4 -sf /usr/lib/NetworkManager/nm-dhcp-client.action
> \
> -pf /var/run/dhclient-eth0.pid \
> -lf
> /var/lib/dhcp/dhclient-ea3f96a9-7876-448b-b213-bbd10424e4f7-eth0.lease
> \ -cf /var/run/nm-dhclient-eth0.conf eth0
>
> The parent process is shown as /usr/sbin/NetworkManager. On my other
> machine, which is successfully using a static IP, dhclient is not
> running. Both machines have identical versions of
> /etc/init.d/network-manager, neither of which shows any obvious call to
> dhclient.
(...)
NM calls -by default- "dhclient", so... is NM running?
If so, stop NM ("/etc/init.d/network-manager stop") or kill "dhclient"
process and then restart the network service (also run ifdown/ifup, just to
be sure). After that run "ifconfig" to check the current IP. If that solves
your problem, just disable NM and your happiness will inmediately start :-)
Greetings,
--
Camaleón
Reply to: