LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-07-2006, 09:06 PM   #1
CaptainKirk
LQ Newbie
 
Registered: Mar 2006
Distribution: Slackware 10.2
Posts: 13

Rep: Reputation: 0
Slackware 10.2: 2.4 to 2.6 kernel upgrade no Internet problem.


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?

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 have a working Windows XP machine on the same network and I can see the DNS servers in its network settings.

In /etc/resolv.conf I have set the nameservers to my ISP's DNS sever addresses. There are two of them: Preferred and Alternate.

My resolv.conf now reads...

nameserver 192.228.x.x
nameserver 192.228.xx.xxx
search Net1

I also included and excluded search Net1 to see if that will work. Neither worked.

I noticed two things about all of this.

With the 2.4 kernel this change means I can not access the internet anymore. I must revert back to the old gatway/router settings below:

nameserver 192.168.128.1
search Net1

Then it works again in 2.4

In 2.6 neither of these options work.

First of all I do not understand why my old resolv.conf works with 2.4 and not 2.6? I do not understand how changes to 2.6 resolv.conf would work if they differ from the one in 2.4? Is there something about the 2.6 kernel that makes it different here?

I also ran "netconfig" setup. The changes I made there are - Hostname is Terminal2, Domainname is Terminal2, DHCP, skip DHCP hostname, pressed YES to continue. This changes resolv.conf to read search Terminal2. This used to work in the past to get the internet working on a fresh install, but now it does not like it, but prefers the old resolv.conf info above.

Hope this sheds some more light on my big internet problem.

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

HELP!
 
Old 03-07-2006, 09:42 PM   #2
Shade
Senior Member
 
Registered: Mar 2003
Location: Burke, VA
Distribution: RHEL, Slackware, Ubuntu, Fedora
Posts: 1,418
Blog Entries: 1

Rep: Reputation: 46
This is interesting.

resolv.conf should work exactly the same under either kernel.
Are you able to ping past your router by using IP instead of DNS name
under both kernels?

I can also tell you that your ethernet card is well supported, and configuring
networking options under 2.6.x is fairly straightforward. You should be able
to disable most settings and still keep a working internet connection.

Make sure you are able to ping your ISP's DNS servers (by IP). This should
function perfectly fine. What kind of router are you using?

-- Shade
 
Old 03-07-2006, 10:46 PM   #3
CaptainKirk
LQ Newbie
 
Registered: Mar 2006
Distribution: Slackware 10.2
Posts: 13

Original Poster
Rep: Reputation: 0
ok I found out what was wrong. My router DNS settings where on automatic and not set to 2 DNS as per above. This solved the problem right away. No idea why it worked with 2.4 though...

Anyway... solved... thanks.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How to get the Internet working on a 2.6 kernel upgrade? CaptainKirk Linux - Networking 9 03-07-2006 10:47 PM
2.4-2.6 kernel upgrade->slow internet connection Swift&Smart Slackware 5 02-10-2006 02:39 PM
Slackware Kernel upgrade carlosinfl Slackware 8 06-18-2005 12:33 AM
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 - Distributions > Slackware

All times are GMT -5. The time now is 11:18 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