Re: Howto setup eth0
On Tue, Apr 03, 2001 at 09:10:01AM +0200, Jan Ulrich Hasecke wrote:
> Hallo Mircea!
> Pardon me for intruding your thread.
> > /etc/init.d/network was the old script used in slink.You've been
> > reading some old docs.Not applicable anymore. Now in potato you
> > ahve the daemon /etc/init.d/networking which starts/stops/restarts
> > ALL interfaces listed in /etc/network/interfaces (man interfaces for
> > a description of the file) ,and for individual interfaces you use
> > ifup/ifdown interface -also based on /etc/network/interfaces .
> This was exactly what disturbed me, when I configured DSL.
> I did the following which seems not to be the debian way.
> ,----[ /etc/init.d/network ]
> | ifconfig eth0 up
> I even run update-rc.d network default
> ,----[ interfaces ]
> | # /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
> | # The loopback interface
> | iface lo inet loopback
> | #iface eth0 inet static # MY HOME NET
> | # address 192.168.1.1
> | # network 192.168.1.0
> | # netmask 255.255.255.0
> | # broadcast 192.168.1.255
> So how can I configure DSL the debian way. I would like to use my
> homenet _and_ DSL at the same time.
> Shall I simply insert:
> iface eth0 up
> in interfaces?
Here's what I have in /etc/network/interfaces:
# The loopback interface
# automatically added when upgrading
iface lo inet loopback
#home network on eth0
iface eth0 inet static
#ethernet connection to DSL modem
iface eth1 inet static
address w.x.y.z <my ip>
gateway <ISP's default gateway address>