Networking Forums

Networking Forums > Computer Networking > Linux Networking > Which ethernet configuration files to edit

Reply
Thread Tools Display Modes

Which ethernet configuration files to edit

 
 
Jonathan Taub
Guest
Posts: n/a

 
      05-03-2004, 01:15 PM
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.
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.
 
Reply With Quote
 
 
 
 
Andrei Ivanov
Guest
Posts: n/a

 
      05-03-2004, 06:17 PM
Jonathan Taub <(E-Mail Removed)> wrote:
> 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.
> 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.


I've got several RedHat -based servers. RHL6.2 servers
have no /etc/sysconfig/networking/ directory at all. RHL7.2
and RHEL3 servers have *empty* /etc/sysconfig/networking/devices/
and /etc/sysconfig/networking/profiles/default/ directories.
All NICs are configured by editing /etc/sysconfig/network
and /etc/sysconfig/network-scripts/ifcfg-eth[01] files
(sometimes /etc/sysconfig/network-scripts/ifcfg-eth0:?,
when secondary addresses on the same NIC are required).

--
andrei
 
Reply With Quote
 
P Gentry
Guest
Posts: n/a

 
      05-03-2004, 06:38 PM
(E-Mail Removed) (Jonathan Taub) wrote in message news:<(E-Mail Removed). 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
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't edit shared files over network... just locally Tim Miller Windows Networking 2 11-20-2008 06:11 PM
Wireless Zero Configuration (WZC) -> Files missing ... Truty Wireless Networks 5 05-14-2006 11:36 PM
Wireless Zero Configuration (WZC) -> Files missing ... Truty Wireless Internet 0 05-11-2006 01:04 PM
Network configuration files under Windows XP Petr Windows Networking 2 10-15-2004 06:49 PM
How to set the IP and which configuration files? Jonathan Taub Linux Networking 6 05-04-2004 04:07 PM



1 2 3 4 5 6 7 8 9 10 11