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

Re: very simple lan question



The /etc/network/interfaces file is new starting with potato, while
previous releases used /etc/init.d/network. Although
/etc/network/interfaces would now be considered the "preferred Debian
way", I don't know of any reason why you can't continue to use the old
method if you want.

Of course if you try using /etc/network/interfaces, you'll want to
disable or comment out the other file.

Tom
 
Patrick Dahiroc wrote:
> 
> this is the first time i've looked at my /etc/network/interfaces file
> and everything is commented out.  currently i configure my network
> interfaces from /etc/init.d/network.  if i set my network from
> /etc/network/interfaces does this mean that i can remove
> /etc/init.d/network?  what is the preferred way of configuring the
> network?
> 
> On Sat, Aug 26, 2000 at 04:38:53PM -0700, Aaron Maxwell wrote:
> > Hi, I have two boxes (one woody, one potato) with ethernet cards,
> > connected by a RJ45 cable.  I'd like to be able to ssh/sftp betwixt them.
> >
> > [I admit I don't grok networking much yet (that's partly why I'm doing
> > this, to learn).  I've mainly been reading the Net-HOWTO and the man pages
> > for ifconfig, if(up|down), route, and references therein; let me know if
> > there's another FM I should RT.]
> >
> > I've given the two boxes, 'leper-messiah' [1] and 'yomama', which I've
> > given addresses 192.168.0.0 and 192.168.0.1 resp; and I've edited
> > /etc/hosts on each box appropriately.   The file
> > 'leper-messiah:/etc/network/interfaces' contains the stanza
> >   iface eth0 inet static
> >       address  192.168.0.0
> >       netmask 255.255.255.0
> > The file 'yomama:/etc/network/interfaces' contains this stanza
> >   iface eth0 inet static
> >       address  192.168.0.1
> >       netmask 255.255.255.0
> > I've gotten the eth0 interface working fine (I think) on both.  For
> > example, on yomama, 'ifconfig eth0' yields
> > yomama:~# ifconfig eth0
> > eth0      Link encap:Ethernet  HWaddr 00:C0:F0:47:A9:A1
> >           inet addr:192.168.0.1  Bcast:192.168.0.255  Mask:255.255.255.0
> >           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
> >           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
> >           TX packets:1 errors:0 dropped:0 overruns:0 carrier:0
> >           collisions:0 txqueuelen:100
> >           Interrupt:11 Base address:0xdc00
> > I've enabled the appropriate services in /etc/services on both machines,
> > I'm pretty certain, so I don't believe that's the problem.
> >
> > I tried various manipulations of the routing table, but they didn't seem
> > to help.  I'm not sure what other info is useful, so please ask.
> >
> > Thanks in advance.
> > Aaron



Reply to: