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

Re: Network configuration file



Russell wrote:
Johan Ehnberg wrote:

Russell wrote:

Johan Ehnberg wrote:


Adam Majer wrote:


On Tue, Aug 13, 2002 at 01:02:57PM +1000, Russell wrote:


...


If you want to connect to your ISP, just use DHCP or PPP which
configures all of this stuff for you.

If you want your own network and other things, first read the
Networking HOWTO.

- Adam

The /etc/network/interfaces is the main config file used when interfaces
are brought up.
'man interfaces' gives you all the info you need.


I'm a bit confused now. It seems you can use ifup/ifdown to read the
"interfaces" file. Do you manually edit the interfaces file, or is
there a configuration program for it? Is there a debian book
explaining all this?

There might be a config program for it, but it's very easy to edit
yourself, that is the normal way as far as I know.

Look in

http://www.debian.org/doc/

for docs.


I found that "dpkg-reconfigure etherconf" fills the "interface" file.
However, even tho there's entries for "iface lo inet loopback", this
loopback (127.0.0.0) doesn't appear when i type "route -nv" (after
restarting the pc). Is there an easy way to bypass the 'interface'
method for bootup? Are the old conventional files such as
/etc/init.d/network still used?


Route -nv need not show a route for lo. That's the default and should work fine. Try ifconfig to see if lo is working.

Bypassing is possible, but I really don't think that's a good idea, as you get some extra protection for free :) if you use the default script.

The way debian loads the network during startup is:

Init starts, and looks for /etc/rcS.d/(everything) and finds S40networking (symlink to /etc/init.d/networking).
It then knows to run '/etc/init.d/networking restart'.
'networking' runs ifup.
ifup reads /etc/networking/interfaces, and starts all interfaces specified as 'auto'.

Your interfaces file looks ok btw. What is it that you still need to configure?

--
Johan Ehnberg
johan@ehnberg.net
"Windows? No... I don't think so."




Reply to: