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

Re: problem with network configurations



Jan Minar <Jan.Minar@seznam.cz> wrote in message news:<1eekB-1NV-43@gated-at.bofh.it>...
> Hi, enantiomer.
> 
> On Wed, Jan 14, 2004 at 06:43:41PM -0800, enantiomer wrote:
> >                                             I was very careful to
> > return the file back to it's original state.  Any help?
> 
> Backup copies are really worth them.
Good idea.  I will do so in the future.
> 
> > -----------------------File begins below line -----------------------
> > # /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
> > # The loopback interface
> > 
> > #the first network card - this entry was created during debian
> > installation
> 
> This was just line-wrapping, so there is no uncommented ``installation''
> stanza, right?
that is correct.
> 
> > #(network, broadcast and gateway are option)
> > 
> > iface eth0 inet dynamic
> >   address 192.168.1.22
> >   netmask 255.255.255.0
> >   network 192.168.1.0
> >   broadcast 192.168.1.255
> >   gateway 192.168.1.1
> 
> If ``ip l'' lists eth0 among the interfaces, ``ifup eth0'' should work.
> If you want this to be done automatically @ bootup, add ``auto eth0''
> stanza above the ``iface eth0...'' line (maybe below it would be fine,
> too, just for sure).
> 
> HTH,
> Jan.
ok, i was not being very observant and forgot to switch the 'dynamic'
word to 'static' when I got home to my static IP network.  I still
dont know how to make it so I can switch back and forth from static to
dhcp though.  one way I have gathered is by switching the 'static'
word with 'dynamic' in my interfaces file and typing ifdown eth0 and
then ifup eth0 (I haven't tried that yet), but that seems like kind of
a hassle.  Anyone know if that will work?  Anyone know of a better
way?  Thanks for the input,
    Enantiomer



Reply to: