[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: setting up a static IP address



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.

> 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.

On Mon, 15 Aug 2011 08:05:43 -0700 (PDT), gnubayonne-debian451@yahoo.com wrote:

> Have u tried putting the auto eth0 before the lines specifying the static ip?

Thanks, but that caused some real havoc.  First I got errors about the
interfaces file, and then shutdown and reboot both went badly.

On Mon, 15 Aug 2011 16:54:26 +0100, Lisi <lisi.reisz@gmail.com> wrote:

> I also wondered whether you were trying to run both your boxen with the
> same IP, since you say that the other one works.

That is not the problem.  I have two distinct static IPs, one for each box.


Reply to: