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

Re: Lost network after lenny-to-squeeze upgrade



On Sat, 14 May 2011 06:47:43 +0300, Itay wrote:

> I am experiencing major network problems after the upgrade. Rebooting
> solves the problem for a short while - after 5 minutes, or so, network
> will be lost.

Looks like the typical problem coming from a DHCP setup :-)

(...)
 
> I seem to have NetworkManager active (I think I blindly opted for it
> during the upgrade process - not sure) <# ps -efl | grep -i network>
> 5 S root      1832     1  0  80   0 - 19611 -      05:23 ? \
>          00:00:00 /usr/sbin/NetworkManager
> </# ps -efl | grep -i network>
> 
> (
>   Do I really need it?  It's home LAN.  Anyway I configured the router
>   to assign fixed IP's for our PC's, laptops, etc.
> )

No, you don't need it. 

But deciding what to do with NM is a decision that has to be taken by the 
user. Some of us keep NM installed but have it disabled while others 
prefer to directly remove the package. OTOH, other people seems to be 
happy with NM and use it every day :-)

> <$ cat /etc/network/interfaces>
> # The loopback network interface
> auto lo
> iface lo inet loopback
> 
> # The primary network interface
> allow-hotplug eth0
> #NetworkManager#iface eth0 inet dhcp
> </$ cat /etc/network/interfaces>

So your network card settings (IP, netmask, gateway, DNS...) all comes 
from your router, right?

> (
>   Old interfaces file was identical, except that the last line wasn't
>   commented-out, i.e.: 'iface eth0 inet dhcp' I tried it without much
>   success.
> )

You need to configure your "/etc/network/interfaces" file to use a setup 
that suits your needs:

http://wiki.debian.org/NetworkConfiguration

(...)

> <# ifconfig -a>
> eth0      Link encap:Ethernet  HWaddr 00:26:18:72:71:14
>            inet6 addr: fe80::226:18ff:fe72:7114/64 Scope:Link UP
>            BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1 RX
>            packets:4317 errors:0 dropped:0 overruns:0 frame:0 TX
>            packets:3643 errors:0 dropped:0 overruns:0 carrier:0
>            collisions:0 txqueuelen:1000
>            RX bytes:4309480 (4.1 MiB)  TX bytes:490343 (478.8 KiB)
>            Interrupt:20 Base address:0xe000

The above means that your network card has been recognized by the system 
but it has no data on it (no IP, netmask...) so it's normal that you 
cannot browse the network. Either your "interfaces" file is wrong or your 
router cannot reach your computer or has any problem to provide all the 
required parameters to your machine.

I would start by "/etc/network/interfaces", yo can try:

***
# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet dhcp
***

Save the file and then issue "ifdown eth0" and "ifup eth0" to reload the 
interface. After that, run "/sbin/ifconfig" and "ip ro" to check all is 
okay... and if it's not, run "dmesg | grep eth0" to find out why :-)

Greetings,

-- 
Camaleón


Reply to: