Network config...why so many??

2000-12-26 Thread Xucaen

--- Terry Boon [EMAIL PROTECTED] wrote:

 /etc/network/interfaces is where you may want
 to look.  Here's mine as
 an example (with one ethernet card):
 
# /etc/network/interfaces -- configuration
 file for ifup(8), ifdown(8)
 
# The loopback interface
iface lo inet loopback
 
# The first network card - this entry was
 created during the Debian
# installation
# (network, broadcast and gateway are
 optional)
iface eth0 inet static
  address 172.16.0.2
  netmask 255.255.255.0
  network 172.16.0.0
  broadcast 172.16.0.255
#  gateway 172.16.0.1
 

Hi all, I'm just curious. why are there so many
files that apparently hold the same information?
I thought the network configuration were kept in
files hosts, hostname, gateways, route.something,
and a few others that I can't think of the
names..  now there's this file called interfaces?
how will I know which files to change and which
ones not to change? I have been looking through
many many books and docs and this is the first
time I've heard of the interfaces file. why have
all of the other files if everything can be
configured in this one interfaces file?

xucaen 

__
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/



Re: Network config...why so many??

2000-12-26 Thread Phil Brutsche
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

A long time ago, in a galaxy far, far way, someone said...

 Hi all, I'm just curious. why are there so many files that apparently
 hold the same information? I thought the network configuration were
 kept in files hosts, hostname, gateways, route.something, and a few
 others that I can't think of the names..  now there's this file called
 interfaces?

There are really only two or three files that you need to pay attention
to.

1) /etc/hostname
2) /etc/hosts
3) /etc/network/interfaces

/etc/hostname is the computer's name

/etc/hosts is a local name database

/etc/network/interfaces contains

I've never needed to use /etc/gateways and I don't have any /etc/route.*
files

 how will I know which files to change and which ones not to change?

Experience and asking people questions

 I have been looking through many many books and docs and this is the
 first time I've heard of the interfaces file.

It's specific to Debian.  Besides, most of those books are specific to
RedHat.

 why have all of the other files if everything can be configured in
 this one interfaces file?

But that would make it too easy :)

- -- 
- --
Phil Brutsche   [EMAIL PROTECTED]

GPG fingerprint: 9BF9 D84C 37D0 4FA7 1F2D  7E5E FD94 D264 50DE 1CFC
GPG key id: 50DE1CFC
GPG public key: http://tux.creighton.edu/~pbrutsch/gpg-public-key.asc
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE6SLTk/ZTSZFDeHPwRAoqnAKCNoopwxjwziOaWsmNyV33jGaE4MgCffPUh
AsB/ddOJ0zJpuc11P/7fodU=
=9dOO
-END PGP SIGNATURE-