Red Hat Bugzilla – Bug 447423
NetworkManager assigns DHCP address to primary interface, even if configured "static"
Last modified: 2008-05-20 05:09:04 EDT
Description of problem:
First off, let me say that I do not yet quite understand how NetworkManager does
its magic, so maybe I have understood something wrongly.
I have an interface eth0, on which I want to have two IP addresses:
192.168.1.1 on eth0 and
192.168.1.3 on eth0:2
I have configured these two interfaces through some manual work in
/etc/sysconfig/networking/devices and "Network Device Control" so that the
following two files exist in /etc/sysconfig/networking/devices:
Copies of the above can now be found in /etc/sysconfig/network-scripts/ too,
like in the good old times.
When NetworkManager runs, eth0 is NOT given 192.168.1.1. Instead, it seems it is
given an address from the DHCP server running on this machine, in this case
192.168.1.253 (/var/lib/dhcpd/dhcpd.leases says as much). eth0:2 is given the
correct static address. An "ifdown eth0; ifup eth0" does not give eth0 a static
So I stop NetworkManager, and run "ifdown eth0; ifup eth0" again. eth0 shows up
with its expected static address 192.168.1.1.
If I now start NetworkManager again, the Networking Icon in the taskbar says "no
connection" but this is not true; correction is as it should and IP assignements
are as they should be.
Version-Release number of selected component (if applicable):
Further NM updates fix the NM_CONTROLLED=no issue to make NM actually ignore
But for the moment, you'll probably want to disable NM anyway, until NM gets
support for reading multiple IP addresses from ifcfg files. NM supports
multiple static IP addresses internally, but does not yet read more than one
static IP address from ifcfg-* files. This support is being worked on.