LinuxQuestions.org
Visit Jeremy's Blog.
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 03-05-2006, 04:09 AM   #1
CaptainKirk
LQ Newbie
 
Registered: Mar 2006
Distribution: Slackware 10.2
Posts: 13

Rep: Reputation: 0
How to get the Internet working on a 2.6 kernel upgrade?


With Slackware 10.2 that comes with a 2.4 kernel all I need to do is a full install, run netconfig, assign DHCP, and I can browse the internet.

After compiling and getting a 2.6 kernel to run I am very happy. However I have lost the ability to browse the internet. I can ping my router, my IP but I can not view web pages (please don’t try and help me to change my resolv.conf). I have tried changing some things but I have no doubt this issue is with the way I compiled the 2.6 kernel. If I compile the 2.6 kernel right then I have no doubt that I would be browsing the internet no problem.

The 2.6 kernel has a lot of changes when compared to the 2.4 version, especially the networking sections. Trying to cross-reference 2.4 to 2.6 for networking is very difficult. It would be much easier if someone had a basic HOWTO for networking options on the 2.6 ‘make *config’ for the kernel so that we can setup a basic internet connection for web browsing. I have found 2.6 compiling information but they all skip the networking section. Anybody got a working one with networking settings?
 
Old 03-05-2006, 05:21 AM   #2
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
My install dvd came with a 2.6.13 kernel as well..
Can you find it & it's config file?
 
Old 03-05-2006, 09:59 AM   #3
CaptainKirk
LQ Newbie
 
Registered: Mar 2006
Distribution: Slackware 10.2
Posts: 13

Original Poster
Rep: Reputation: 0
Even though the 2.6 test kernel in /Kernel of CD1 in Slackware does boot, sadly it results in the same internet problem. Only the 2.4 kernel settings seem to work.

I am back to my previous problem of finding a working guide for 2.6 Kernel Network/Internet setup.
 
Old 03-06-2006, 06:02 AM   #4
CaptainKirk
LQ Newbie
 
Registered: Mar 2006
Distribution: Slackware 10.2
Posts: 13

Original Poster
Rep: Reputation: 0
Bump... help!
 
Old 03-06-2006, 08:37 AM   #5
__spc__
Member
 
Registered: Feb 2006
Location: Bridgend, Wales
Distribution: Kubuntu 10.04.25 (Feb 2011)
Posts: 172

Rep: Reputation: 30
Run lspci to see what devices/hardware you have.

I then like using xconfig to set up my config file. (I always save the config to another file aswell.)

If the compile doesn't deliver the results I need, I then reload the config and try tweaking a few things (generally adding stuff in). Each compile takes under 45 mins, and eventually I get there!
 
Old 03-06-2006, 11:36 AM   #6
CaptainKirk
LQ Newbie
 
Registered: Mar 2006
Distribution: Slackware 10.2
Posts: 13

Original Poster
Rep: Reputation: 0
Here is some information for both my Internet working 2.4 Kernel and my Internet not working 2.6 Kernel. I also added my lspci at the start just to show what kind of devices I am using.

HARDWARE

bash-3.00# lspci
00:00.0 Host bridge: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX Host bridge (rev 02)
00:01.0 PCI bridge: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX AGP bridge (rev 02)
00:02.0 Ethernet controller: Intel Corporation 82557/8/9 [Ethernet Pro 100] (rev 05)
00:03.0 SCSI storage controller: Adaptec AHA-2940U/UW / AHA-39xx / AIC-7895 (rev 04)
00:03.1 SCSI storage controller: Adaptec AHA-2940U/UW / AHA-39xx / AIC-7895 (rev 04)
00:04.0 ISA bridge: Intel Corporation 82371AB/EB/MB PIIX4 ISA (rev 02)
00:04.1 IDE interface: Intel Corporation 82371AB/EB/MB PIIX4 IDE (rev 01)
00:04.2 USB Controller: Intel Corporation 82371AB/EB/MB PIIX4 USB (rev 01)
00:04.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 02)
00:0d.0 SCSI storage controller: Adaptec AHA-7850 (rev 01)
01:00.0 VGA compatible controller: nVidia Corporation NV5 [RIVA TNT2/TNT2 Pro] (rev 15)



THE 2.4 KERNEL

bash-3.00$ /sbin/ifconfig -a

eth0 Link encap:Ethernet HWaddr 00:60:94:EB:2B:6B
inet addr:192.168.128.37 Bcast:255.255.255.255 Mask:255.255.255.0
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1146 errors:0 dropped:0 overruns:0 frame:0
TX packets:1103 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1200214 (1.1 Mb) TX bytes:173711 (169.6 Kb)
Interrupt:14 Base address:0x5000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

bash-3.00$ /sbin/lsmod

Module Size Used by Not tainted
soundcore 3396 0 (autoclean)
eepro100 18836 1
mii 2272 0 [eepro100]
uhci 24284 0 (unused)
usbcore 59148 1 [uhci]
pcmcia_core 39172 0
ntfs 51232 1 (autoclean)
ide-scsi 9392 0
agpgart 45508 0 (unused)

bash-3.00$ /sbin/route -n

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.128.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.128.1 0.0.0.0 UG 0 0 0 eth0

bash-3.00$ cat /etc/resolv.conf

nameserver 192.168.128.1
search Net1
bash-3.00$




THE 2.6 KERNEL

bash-3.00# /sbin/ifconfig -a

eth0 Link encap:Ethernet HWaddr 00:60:94:EB:2B:6B
inet addr:192.168.128.37 Bcast:255.255.255.255 Mask:255.255.255.0
inet6 addr: fe80::260:94ff:feeb:2b6b/64 Scope:Link
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2 errors:0 dropped:0 overruns:0 frame:0
TX packets:13 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:650 (650.0 b) TX bytes:1508 (1.4 Kb)
Interrupt:19

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:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

sit0 Link encap:UNSPEC HWaddr 00-00-00-00-31-00-00-00-00-00-00-00-00-00-00
-00
NOARP MTU:1480 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

bash-3.00# /sbin/lsmod

Module Size Used by
snd_pcm_oss 46656 -
snd_pcm 76644 -
snd_timer 20140 -
snd_page_alloc 8048 -
snd_mixer_oss 15432 -
snd 43876 -
ipv6 226944 -
ohci_hcd 18892 -
ehci_hcd 28592 -
eepro100 27128 -
uhci_hcd 30008 -
usbcore 112740 -

bash-3.00# /sbin/route -n

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.128.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.128.1 0.0.0.0 UG 0 0 0 eth0

bash-3.00# cat /etc/resolv.conf

nameserver 192.168.128.1
search Net1



--------------------------------------------------------------------------

I am basically dual using two xterm's with make xconfig for 2.4 and 2.6 while cross-referencing as much of the data as I can. The area where things get iffy is with the network configs because much has changed. I am not even sure if it is the networking settings where this problem is being created. I have been compiling variations all week. Strangely enough the 2.4 automatic CD setup detects everything the first time round except for my second processor. With 2.6 I had to specify the right SCSI controller, PS/2 mouse, dual processors and I am stuck with this Internet problem now. Hopefully the above will shed some light on what has gone wrong.

Last edited by CaptainKirk; 03-06-2006 at 11:37 AM.
 
Old 03-06-2006, 08:40 PM   #7
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: Slackware®
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Quote:
Originally Posted by CaptainKirk
Even though the 2.6 test kernel in /Kernel of CD1 in Slackware does boot, sadly it results in the same internet problem. Only the 2.4 kernel settings seem to work.

I am back to my previous problem of finding a working guide for 2.6 Kernel Network/Internet setup.
Hi,

I think the moderator was speaking of the 2.6.13 kernel source not the testing kernel 2.6.

You can find it on install cd2 in linux-2.6.13.

HTH!
 
Old 03-07-2006, 07:28 AM   #8
CaptainKirk
LQ Newbie
 
Registered: Mar 2006
Distribution: Slackware 10.2
Posts: 13

Original Poster
Rep: Reputation: 0
gwsandvik,

Okay this is a bit off-topic from my original question but could you elaborate a bit on this?

Slackware 10.2 as a 4 x CD bundled package contains some 2.6 test modules. I originally just downloaded 2.6 from kernel.org and compiled a new 2.6 kernel.

However I am interested in the two type of 2.6 kernels that come with Slackware.

I understand that in CD1 there is a test 2.6 kernel in /kernels/test26.s, that is pretty much a compiled bzImage, system.map and config file we can add to /boot and link to LILO or we can load config into make xconfig. This I can follow.

The problem is what to do with what is in CD2.

I believe the package /Linux-2.6.13 on CD2 is supposed to be added to the contents of the test kernel in CD1? This is where things are vague as the README with it doesn't give us much info on what to do with all these files in CD2 /Linux-2.6.13. Do we extract them all or only some? Where is the tutorial for what to do with these packages in CD2? Can anyone here walk us through the process of what to do with CD2. There is like 10 tgz files.

Anyway it is off-topic, but important to learn non-the-less.
 
Old 03-07-2006, 10:15 AM   #9
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: Slackware®
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Quote:
Originally Posted by CaptainKirk
gwsandvik,

Okay this is a bit off-topic from my original question but could you elaborate a bit on this?

Slackware 10.2 as a 4 x CD bundled package contains some 2.6 test modules. I originally just downloaded 2.6 from kernel.org and compiled a new 2.6 kernel.

However I am interested in the two type of 2.6 kernels that come with Slackware.

I understand that in CD1 there is a test 2.6 kernel in /kernels/test26.s, that is pretty much a compiled bzImage, system.map and config file we can add to /boot and link to LILO or we can load config into make xconfig. This I can follow.

The problem is what to do with what is in CD2.

I believe the package /Linux-2.6.13 on CD2 is supposed to be added to the contents of the test kernel in CD1? This is where things are vague as the README with it doesn't give us much info on what to do with all these files in CD2 /Linux-2.6.13. Do we extract them all or only some? Where is the tutorial for what to do with these packages in CD2? Can anyone here walk us through the process of what to do with CD2. There is like 10 tgz files.

Anyway it is off-topic, but important to learn non-the-less.

Hi,

Not off topic The linux-2.6.13 on cd2 is the source with needed packages. Includes a compiled version of this source with modules. You can choose to install the 2.6.13 compiled version of this source from this directory. Along with other support packages.

edit: note that this is seperate from the testing kernel, You use this to compile your new kernel image for 'your' configuration.

edit: end



What you can do is place the cd2 in your drive then mount by;

#I am root but you can build as a user

#mount /dev/hdc /mnt/cdrom #assume dev is hdc
#cd /mnt/cdrom/linux-2.6.13
#pkgtool #start the pkgtool script

You should now choose to install from current directory.
The script will prompt you to install, press ok for desired packages. I would install all. You can adjust lilo.conf for the 2.6.13 kernel image if you installed it.

You will now have the linux-2.6.13 source, headers,modules and a kernel image loaded. Along with the ALSA drivers if you chose to install them.

Now you can run your choice of config, be it menuconfig or xconfig. There is sticky by shilo in the slackware forum that can guide you through the tough (easy really) parts.

HTH!

Last edited by onebuck; 03-07-2006 at 10:17 AM.
 
Old 03-07-2006, 10:47 PM   #10
CaptainKirk
LQ Newbie
 
Registered: Mar 2006
Distribution: Slackware 10.2
Posts: 13

Original Poster
Rep: Reputation: 0
Ok solved it.

Basically it was a bad DNS setting in the router.
 
  


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
internet not working after upgrade Beire Ubuntu 6 07-13-2005 03:36 PM
arts not working after kernel upgrade dARkHunTEr Linux - Hardware 2 11-12-2004 01:00 PM
upgrade kernel to 2.6 net not working Longinus Linux - Networking 8 08-06-2004 09:46 PM
no internet connection after kernel upgrade from 2.4 to 2.6.5 cademeijere Linux - Networking 5 05-27-2004 03:56 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 06:28 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