LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-19-2011, 01:40 PM   #1
rdozijn_2
Member
 
Registered: Feb 2009
Distribution: debian
Posts: 39

Rep: Reputation: 0
upgrade kernel: no network. Solution OK?


hello forum,

yesterday I decided to upgrade my linux debian kernel as well as lots of other packages to the squeeze distribution.
Everything went well, until I had to restart my computer. After the computer was up again, I had no network anymore.

On another computer I did some googling because my network knowledge is not the best. With the information I gathered I did

Code:
$ sudo ifconfig
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:146 errors:0 dropped:0 overruns:0 frame:0
          TX packets:146 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:13772 (13.4 KiB)  TX bytes:13772 (13.4 KiB)
So eth0 appeared to be missing. Thanks to google I knew where to look: /etc/network/interfaces. That contained
Code:
# The loopback network interface
auto lo                
iface lo inet loopback 

# The primary network interface
allow-hotplug eth0
#NetworkManager#iface eth0 inet dhcp
Some advice said to change 'allow-hotplug' to 'auto'. After doing
Code:
$ sudo /etc/init.d/networking restart
Running /etc/init.d/networking restart is deprecated because it may not enable again some interfaces ... (warning).
Reconfiguring network interfaces...Ignoring unknown interface eth0=eth0.
done.
I decided this was a bad idea. Out of google advices I decided to experiment and to uncomment the iface eth0 line. Now it reads
Code:
# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth0
#NetworkManager#iface eth0 inet dhcp
iface eth0 inet dhcp
This didn't gave me result after the init.d/networking restart, but after a reboot, I had network again:
Code:
$ sudo ifconfig
eth0      Link encap:Ethernet  HWaddr 00:23:54:19:af:13  
          inet addr:192.168.1.6  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::223:54ff:fe19:af13/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:53797 errors:0 dropped:0 overruns:0 frame:0
          TX packets:33218 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:69976450 (66.7 MiB)  TX bytes:3530064 (3.3 MiB)
          Interrupt:27 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:167 errors:0 dropped:0 overruns:0 frame:0
          TX packets:167 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:18032 (17.6 KiB)  TX bytes:18032 (17.6 KiB)
A long introduction to my question: was uncommenting this line an acceptable solution, or should I have done something else? Can anyone explain what happens?

thanks in advance! Ruud
 
Old 10-19-2011, 02:03 PM   #2
realbluntz
Member
 
Registered: Jun 2010
Location: the D
Distribution: arch x86_64
Posts: 57

Rep: Reputation: 3
Yes, that starts your network.

You set it for dhcp, there are other options:

Code:
man interfaces
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Network problems after kernel upgrade or1onas Debian 4 02-22-2006 04:09 PM
Network problems after kernel upgrade pwaring Debian 5 11-01-2005 03:43 AM
No Network After Kernel Upgrade(2.6.6) Chryzmo Slackware 3 06-14-2004 11:05 PM
Kernel upgrade, still no network Ook Slackware 2 04-10-2004 12:05 PM
No network/internet after Kernel upgrade Thomas M. Slackware 3 02-09-2004 01:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration