[Cialug] RedHat ES 4 - static IP's?

Dave J. Hala Jr. dave at 58ghz.net
Mon Nov 20 11:05:58 CST 2006


What seems wierd to me is that it boots with DHCP. That leads me to
believe there is a DHCP config somewhere or somehow it is a default.
Could it be that on boot, the init scripts look for an eth0 config and
when they don't find it, they default to dhcp?
 
If you do an "ifconfig", that will show you the config for all the
interfaces. 


On Mon, 2006-11-20 at 10:52, David Champion wrote:
> No references to dhcp in any of the ifcfg files. There's no ifcfg-eth1:1 
> or anything like that. This first server has no ifcfg-eth0, the other 
> one does, with BOOTPROTO=dhcp, but ONBOOT=no, so I don't think that's an 
> issue.
> 
> Here's the ifcfg-eth1 (after I changed BOOTPROTO=static). I looked at 
> the ifup script, looks to me like it's checking for the word "dhcp", and 
> any other value it treats as a static address.
> 
> DEVICE=eth1
> HWADDR=00:18:8B:33:64:56
> ONBOOT=yes
> TYPE=Ethernet
> BOOTPROTO=static
> NETMASK=255.255.255.0
> IPADDR=10.10.0.72
> USERCTL=no
> PEERDNS=yes
> GATEWAY=10.10.0.1
> IPV6INIT=no
> 
> 
> Dave J. Hala Jr. wrote:
> > Is there by chance an ifcfg-eth1:1 in your network-scripts folder that
> > is by chance has a BOOTPROTO=DCHP line it?
> > 
> > Grep network-scripts for BOOTPROTO=DHCP and see what it finds.
> > 
> > 
> > On Mon, 2006-11-20 at 10:16, David Champion wrote:
> >> I have couple of new servers with RedHat ES 4. During the setup process, 
> >>   I configured them to have a static IP address. When the system booted, 
> >> and again after I did a full up2date (600+ mb later...) they come up 
> >> with a DHCP address. If I do a "system network restart", they get the 
> >> static IP I assigned again.
> >>
> >> The only thing I see odd is in the 
> >> /etc/sysconfig/network-scripts/ifcfg-eth1 (eth1 is is the first ethernet 
> >> port labelled GB 1 on these Dell 2950's, and GB 2 is apparantly eth0 - 
> >> but that's another story) - is  it has "BOOTPROTO=none". I'm used to 
> >> seeing "BOOTPROTO=static". I looked in the RH knowledgbase, and a lot of 
> >> the documentation doesn't mention "static" anywhere, but is is sometimes 
> >> shown on other articles.
> >>
> >> Any ideas on this?
> >>
> >> -dc
> >>
> >> _______________________________________________
> >> Cialug mailing list
> >> Cialug at cialug.org
> >> http://cialug.org/mailman/listinfo/cialug
> 
> 
> _______________________________________________
> Cialug mailing list
> Cialug at cialug.org
> http://cialug.org/mailman/listinfo/cialug
-- 

Open Source Information Systems, Inc. (OSIS)
Dave J. Hala Jr., President <dave at osis.us>
641.485.1606 www.osis.us
Save a life: Adopt a shelter animal!



More information about the Cialug mailing list