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

Re: FC8 how to get static IP working

Bill Davidsen wrote:
Mike Wright wrote:

Ed Greshko wrote:

Mike Wright wrote:

Hi Ed,

"static" is not a protocol.

It is in my ifcfg-eth0 file after a clean install....and I didn't put it there.

And you did not. Frustrating, isn't it? It was put there by the anaconda installer. I'm pretty certain that it is an error in the installer; however, the good news is that all the other scripts seem to be aware that it is a mistake and invisibly reset it to "none".

Of course the documentation could be change to cover the use of the far more readable "static" which might be a better solution for user.

Did I hear a volunteer? ;D

I only pointed out ONE place in the docs where that information exists. Somebody would have to scour all of the rest of the documentation to make sure that change is also reflected there. Oh, and then there is the ifup script that would have to be changed. Did I also mention system-config-network? And let's not forget any other scripts, custom or otherwise, that my actually use the currently documented values of BOOTPROTO. They would have to be tracked down, too. If we miss _any single one_ it could break other things that would then have to be chased down and fixed, etc, ad infinitum. Of course, to remain compatible with previous installations they would also have to be changed. And then there is the issue of all those other distros that would have to fall in line...

Or we could make a ONE word fix in anaconda and be done with it.

Fortunately, unless you are writing or using custom scripts that rely on the documentation, everything since that error have error checking that sets it back to what it should have been... everywhere, that is, _except_ in the network-scripts.

C'est la vie.

Gotta love open source.  We would not have known otherwise ;)

I'm curious where you got that information.  I've searched off and on
for years and never found that documented anywhere although I have seen
it used somewhat frequently and which may actually be a source of errors
in some scripts.  From:

The Official Red Hat Linux Reference Guide
Chapter 12. Network Scripts

BOOTPROTO=<protocol>, where <protocol> is one of the following:
     none — No boot-time protocol should be used.
     bootp — The BOOTP protocol should be used.
     dhcp — The DHCP protocol should be used.

Additionally, grepping for BOOTPROTO in /etc/sysconfig/network-scripts/*
finds no test for static.

Based on that I'd have to say BOOTPROTO=none is correct.

Mike Wright

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