Re: Which ethernet configuration files to edit

From: P Gentry (rdgentry1_at_cablelynx.com)
Date: 05/03/04


Date: 3 May 2004 11:38:43 -0700

yonatan@il.nlayers.com (Jonathan Taub) wrote in message news:<24300f00.0405030515.2223dc66@posting.google.com>...
> I've got a couple of Redhat linux OSs installed on a couple of
> computers.
> A web application of ours is supposed to configure the NICs on the
> computer.

Is this why the multiple location question is relevant? Do you have a
need for homegrown vs. WebMin?

> On one computer, the "ifcfg-eth0" and other NICs files are located in
> "/etc/sysconfig/networking/devices" directory and
> "/etc/sysconfig/network-scripts" directory.
>
> On another computer, the files are located *only* in
> "/etc/sysconfig/network-scripts".
>
> There are also files (sometimes) in the
> "/etc/sysconfig/networking/profiles/default" directory.
>
> My question is why should the files be located in two directories?
> Which files does the OS actually *should* read and refer to.

AFAIK, the RH Reference Guide and perhaps the Customization Guide (?)
lists the files used for networking. Whether the dir
contents/placements vary substantially with RH version, I'm not sure.

I believe the /network-scripts dir is for the various scripts run via
ifup and ifdown.

The files in some of the other dirs are duplicates produced by
dhclient or gui tools. Haven't looked closely enough at ifup for the
purpose of discerning the purpose of the layout -- that's where you'ld
start. Then check other scripts to get the other details and overall
picture.

Also, keep in mind the possible use of net config "profiles" for
easier config switching.

Which files are read will depend on which script runs to bring up the
networking. Remember, that these files and scripts must be setup by
RH to install on a number of different networking environments, so
almost certain that a number of them are not needed for _your_
environment.

Find which scripts are used in setting up _your_ net configuration and
see what files they read/write.

hth,
prg
email above disabled



Relevant Pages

  • Re: Stale Records...
    ... but I created the scripts at work (ie. ... To get a list of all the (PTR) records and place them into a text file, ... Now you should have two Dictionary objects containing live computers. ... records and delete any incorrect records. ...
    (microsoft.public.windows.server.active_directory)
  • Re: EXAMPLE -- Re: Strange issue with `CHOMP not working...
    ... Computers are not random. ... Then, obviously, there is nothing wrong with the scripts you wrote, and ... I asked for suggestions, and received one good suggestion to check the ... I then reviewed the module and found a bug (not certainly related to ...
    (comp.lang.perl.misc)
  • Re: Bog basic- getting pcitures to iPad
    ... You have to understand that my soul still belongs to CP/M. ... I'm so glad I got started in big computers with MSDOS3 - not because ... I'd write TV scripts in Protext ... But thanks for the habitual useful reply. ...
    (uk.comp.sys.mac)
  • Re: Communication between python scripts
    ... > computers communicate with each other? ... have the scripts update web-pages which can be accessed by the other script ... socket server which can be used to query their ...
    (comp.lang.python)
  • Re: Mass Machine Login
    ... I once looked after a lab of UNIX machines. ... can send you my scripts. ... has 75 computers all on the same vlan and we would like to login ... >Computer Emergency Response Teams, and Digital Investigations. ...
    (Security-Basics)