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

Re: Proper way to restart network after modem/router reset



On Sun, Feb 13, 2011 at 12:27 PM, Joe Riel <joer@san.rr.com> wrote:
> On Sun, 13 Feb 2011 19:10:08 +0200
> Andrei Popescu <andreimpopescu@gmail.com> wrote:
>
>> On Du, 13 feb 11, 08:39:06, Joe Riel wrote:
>> >
>> > may be the proper way, however that was unclear.  I haven't tried
>> > that yet.   Is there a recommended method?  Is there a Debian howto
>> > that recommends what should be done?
>>
>> Assuming your network is configured via /etc/network/interfaces (you
>> didn't mention) then 'ifup' and 'ifdown' is what you are looking for
>> AFAIK.
>
> $ grep -v '^\#' /etc/network/interfaces
>
> auto lo
> iface lo inet loopback
> allow-hotplug eth0
>
> Should I then do
>
> sudo ifdown eth0
> sudo ifup etho0
>
> Hmm.  That doesn't work:
>
> $ sudo ifdown eth0
> ifdown: interface eth0 not configured
>
> I haven't done anything in particular to configure my
> installation of Squeeze for the local network; just accepted
> the defaults.

Your "/etc/network/interfaces" is incorrect.

If you're using NM, "allow-hotplug eth0" shouldn't be included.

If you're not using NM, "iface eth0 inet dhcp" should be added.


Reply to: