On 22 Mar 2006, in the Usenet newsgroup comp.os.linux.networking, in article
<(E-Mail Removed) .com>,
(E-Mail Removed) wrote:
>I'm trying to change the IP address on eth1, and I think I'm doing
>everything required:
>
># vi /etc/sysconfig/network-scripts/ifcfg-eth1
># /etc/rc.d/init.d/network restart
Looks good, except there might be something lurking elsewhere relating
to the firewall scripts and /etc/hosts file.
>I've confirmed the changes to ifcfg-eth1. The old IP address is still
>there. I've rebooted the box, and the old IP address is still there.
Then there is a problem somewhere ;-)
>I can't find any reference to the old address anywhere on the system,
>using a brute force find-and-grep search. It's nowhere in /etc, for
>sure. Where is it coming from? Why won't the IP address change
What you are showing _should_ work correctly. There are only two places
where the system can _normally_ be getting an IP - the scripts in
/etc/sysconfig/network-scripts/, and a DHCP/BOOTP server. The latter is
unlikely, as your ifcfg-eth1 script is telling the system to use "none"
as a boot protocol.
>Linux roch-bwconf-1 2.4.20-8smp #1 SMP Thu Mar 13 17:45:54 EST 2003
>i686 i686 i386 GNU/Linux
For what it's worth, that kernel is the original "out-of-box" version, and
at least seven updates behind what is on the download.fedoralegacy.org site
(kernel-smp-2.4.20-46.9.legacy was put on the errata server about 3 weeks
ago). The updates are there for a reason. 'nuff said.
>[root@roch-bwconf-1 network-scripts]# cat ifcfg-eth1
That looks fine.
>[root@roch-bwconf-1 network-scripts]# ifconfig eth1
>eth1 Link encap:Ethernet HWaddr 00:0E:0C:08:6F:36
> inet addr:10.254.254.1 Bcast:10.254.254.255 Mask:255.255.255.0
That is completely baffling. The ONLY thing I can think of is something
screwy with the networking scripts - though your power grep should have
caught it unless something _else_ is causing the card to grab an address
off a boot server or some such trash. I'd look there. As a quick guess,
try 'rpm -qf /etc/sysconfig/network-script/if*' which probably should tell
you that everything comes out of the 'initscripts' package. Then try a
verification of that package (rpm -V initscripts) and see if anything barfs.
That stuff is explained in the 'rpm' man page. If that doesn't find the
problem, I'd grab a bucket of coffee, and start tracing the boot scripts
to see that they are doing what I'd expect. As is usual with distribution
scripts, they were written by someone who is good, and is flaunting their
skills, but they should none-the-less be understandable.
Old guy