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

Re: network configuration scripts



> the debian way is now to edit /etc/network/interfaces
> this is mine (there are 2 network cards in my box) :
>
> <-- cut here -->
> # /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
>
> # The loopback interface
> auto lo
> iface lo inet loopback
>
> # ADSL interface
> auto eth0
> iface eth0 inet static
>         address 10.0.0.10
>         netmask 255.255.255.0
>         network 10.0.0.0
>         broadcast 10.0.0.255
>         up /etc/network/ipchains.rules
>
> # Local network
> auto eth1
> iface eht1 inet static
>         address 192.168.1.1
>         netmask 255.255.255.0
>         network 192.168.1.0
>         broadcast 192.168.1.255
> <-- cut here -->
>
> note that it acts as a firewall and i run the ipchains rules when the
> interface comes up
> this way you can just do 'ifup eth0' and 'ifdown eth0' to raise/shutdown
an
> interface =)
>
> IMHO, there shouldnt be any customization in /etc/init.d, it's just a
place
> for startup and
> shutdown scripts (you can add yours for your particular services if you
> want).
>
> Silver
>
> ----- Original Message -----
> From: "Keegan Prendergast" <keegan@miller.cs.uwm.edu>
> To: <debian-user@lists.debian.org>
> Sent: Wednesday, November 15, 2000 10:27 PM
> Subject: network configuration scripts
>
>
> >    I have my debian linux box setup as a masqing gateway for the rest of
> > the computers in the house.  The problem is, I did it by hand and have
not
> > rebooted since, because i could not figure out where i should put the
> > commands =).  Should they go in /etc/init.d/networking, or some local
init
> > file. Also has the structure of the network startup changed, because all
> > of the documentation i have found refers to paths or files, that are not
> > the same as the ones i have....At anyrate if any one knows the source of
> > any detailed/current documentation on the way debian runs startup files,
> > network configuration, or just has an answer to my question please
> > reply...thanks...oh yeah...i am running potato..




Reply to: