LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 02-21-2011, 09:26 PM   #1
nova49
Member
 
Registered: Nov 2010
Distribution: Slackware
Posts: 74

Rep: Reputation: 0
Internet Problem


I am running Slackware -current. Every thing was working fine and suddenly it stopped. I am unable to connect to the router or the internet. Which is a problem since I'm using it right as a server. I am posting all of the information that I think will help. If you need any more just ask.

ifconfig
Code:
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)
contents of rc.inet1.conf
Code:
# /etc/rc.d/rc.inet1.conf
#
# This file contains the configuration settings for network interfaces.
# If USE_DHCP[interface] is set to "yes", this overrides any other settings.
# If you don't have an interface, leave the settings null ("").

# You can configure network interfaces other than eth0,eth1... by setting
# IFNAME[interface] to the interface's name. If IFNAME[interface] is unset
# or empty, it is assumed you're configuring eth<interface>.

# Several other parameters are available, the end of this file contains a
# comprehensive set of examples.

# =============================================================================

# Config information for eth0:
IPADDR[0]="192.168.1.100"
NETMASK[0]="255.255.255.0"
USE_DHCP[0]=""
DHCP_HOSTNAME[0]=""

# Config information for eth1:
IPADDR[1]=""
NETMASK[1]=""
USE_DHCP[1]=""
DHCP_HOSTNAME[1]=""

# Config information for eth2:
IPADDR[2]=""
NETMASK[2]=""
USE_DHCP[2]=""
DHCP_HOSTNAME[2]=""

# Config information for eth3:
IPADDR[3]=""
NETMASK[3]=""
USE_DHCP[3]=""
DHCP_HOSTNAME[3]=""

# Default gateway IP address:
GATEWAY="192.168.1.1"

# Change this to "yes" for debugging output to stdout.  Unfortunately,
# /sbin/hotplug seems to disable stdout so you'll only see debugging output
# when rc.inet1 is called directly.
DEBUG_ETH_UP="no"

## Example config information for wlan0.  Uncomment the lines you need and fill
## in your info.  (You may not need all of these for your wireless network)
#IFNAME[4]="wlan0"
#IPADDR[4]=""
#NETMASK[4]=""
#USE_DHCP[4]="yes"
#DHCP_HOSTNAME[4]="icculus-wireless"
#DHCP_KEEPRESOLV[4]="yes"
#DHCP_KEEPNTP[4]="yes"
#DHCP_KEEPGW[4]="yes"
#DHCP_IPADDR[4]=""
#WLAN_ESSID[4]=BARRIER05
#WLAN_MODE[4]=Managed
##WLAN_RATE[4]="54M auto"
##WLAN_CHANNEL[4]="auto"
##WLAN_KEY[4]="D5AD1F04ACF048EC2D0B1C80C7"
##WLAN_IWPRIV[4]="set AuthMode=WPAPSK | set EncrypType=TKIP | set WPAPSK=96389dc66eaf7e6efd5b5523ae43c7925ff4df2f8b7099495192d44a774fda16"
#WLAN_WPA[4]="wpa_supplicant"
#WLAN_WPADRIVER[4]="ndiswrapper"

## Some examples of additional network parameters that you can use.
## Config information for wlan0:
#IFNAME[4]="wlan0"              # Use a different interface name nstead of
                                # the default 'eth4'
#HWADDR[4]="00:01:23:45:67:89"  # Overrule the card's hardware MAC address
#MTU[4]=""                      # The default MTU is 1500, but you might need
                                # 1360 when you use NAT'ed IPSec traffic.
#DHCP_KEEPRESOLV[4]="yes"       # If you dont want /etc/resolv.conf overwritten
#DHCP_KEEPNTP[4]="yes"          # If you don't want ntp.conf overwritten
#DHCP_KEEPGW[4]="yes"           # If you don't want the DHCP server to change
                                # your default gateway
#DHCP_IPADDR[4]=""              # Request a specific IP address from the DHCP
                                # server
#WLAN_ESSID[4]=DARKSTAR         # Here, you can override _any_ parameter
                                # defined in rc.wireless.conf, by prepending
                                # 'WLAN_' to the parameter's name. Useful for
                                # those with multiple wireless interfaces.
#WLAN_IWPRIV[4]="set AuthMode=WPAPSK | set EncrypType=TKIP | set WPAPSK=thekey"
                                # Some drivers require a private ioctl to be
                                # set through the iwpriv command. If more than
                                # one is required, you can place them in the
                                # IWPRIV parameter (separated with the pipe (|)
                                # character, see the example).

I am not sure what I did to cause this. I was messing with the hard drives and got a kernel panic but that is since fixed. Its not the hardware because the windows install can still get internet. Also the router has been reset so its not that either. Thanks for the help.
 
Old 02-21-2011, 09:28 PM   #2
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Did you update any programs or packages? Things don't break in linux for no reason. Most likely you did something, and/or something happened and in return, cause your problems. Did you install any kernel updates?
 
Old 02-21-2011, 09:43 PM   #3
nova49
Member
 
Registered: Nov 2010
Distribution: Slackware
Posts: 74

Original Poster
Rep: Reputation: 0
I added a new hard drive and installed windows 7 on it. I took the computer to a lan party. It worked before I went. When I got home I had a problem with it booting the wrong hard drive. For a simple fix I unplugged the windows 7 hard drive. Booted into Slackware and I had no connection.
 
Old 02-21-2011, 09:48 PM   #4
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Is this on a laptop or desktop?
 
Old 02-21-2011, 09:56 PM   #5
nova49
Member
 
Registered: Nov 2010
Distribution: Slackware
Posts: 74

Original Poster
Rep: Reputation: 0
Its a Desktop.

I checked to make sure the network card is still working. The network card was listed in lspci so I assume it still works correctly. I wish I had something else to go on other then I don't have internet.

02:05.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8110SC/8169SC Gigabit Ethernet (rev 10)

Last edited by nova49; 02-21-2011 at 10:08 PM.
 
Old 02-21-2011, 11:02 PM   #6
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Post the output of lsmod.
 
Old 02-21-2011, 11:17 PM   #7
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,377

Rep: Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757
Does 'ifconfig -a' show the interface?
Try reloading the kernel module for your interface with 'modprobe -r r8169' then 'modprobe r8169'.
If 'lsmod | grep r8169' shows the module has loaded try reinitialising networking with '/etc/rc.d/rc.inet1 restart'.
 
Old 02-21-2011, 11:33 PM   #8
nova49
Member
 
Registered: Nov 2010
Distribution: Slackware
Posts: 74

Original Poster
Rep: Reputation: 0
The network interface is listed as eth1 instead of eth0. That is what I noticed at least. If you don't mind me asking I'm interested in what you guys are looking for. This way I can solve the problem if something like this ever happens again.

allend
I reloaded the kernel modules and nothing changed.

ifconfig -a
Code:
eth1      Link encap:Ethernet  HWaddr 00:00:49:15:4D:81  
          BROADCAST MULTICAST  MTU:1500  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:1000 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interrupt:21 Base address:0x6000 

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)
Code:
Module                  Size  Used by
radeon                823154  2 
ttm                    44990  1 radeon
drm_kms_helper         22307  1 radeon
drm                   137027  5 radeon,ttm,drm_kms_helper
i2c_algo_bit            4543  1 radeon
snd_seq_dummy           1119  0 
snd_seq_oss            25868  0 
snd_seq_midi_event      4664  1 snd_seq_oss
snd_seq                42584  5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
snd_seq_device          4505  3 snd_seq_dummy,snd_seq_oss,snd_seq
snd_pcm_oss            34042  0 
snd_mixer_oss          14374  1 snd_pcm_oss
ipv6                  231790  20 
pcmcia                 32255  0 
pcmcia_core            10932  1 pcmcia
lp                      7105  0 
fuse                   55929  1 
snd_hda_codec_atihdmi     2167  1 
snd_hda_codec_realtek   192121  1 
snd_hda_intel          18603  0 
snd_hda_codec          64296  3 snd_hda_codec_atihdmi,snd_hda_codec_realtek,snd_hda_intel
processor              26435  0 
thermal                10433  0 
ppdev                   4997  0 
joydev                  7503  0 
snd_hwdep               4772  1 snd_hda_codec
snd_pcm                58919  3 snd_pcm_oss,snd_hda_intel,snd_hda_codec
rtc_cmos                8066  0 
parport_pc             18346  1 
rtc_core               11999  1 rtc_cmos
thermal_sys            11490  2 thermal,processor
r8169                  34831  0 
i2c_i801                7498  0 
intel_agp              24306  0 
led_class               1947  0 
agpgart                24149  3 ttm,drm,intel_agp
snd_timer              15493  2 snd_seq,snd_pcm
snd                    43443  11 snd_seq_oss,snd_seq,snd_seq_device,snd_pcm_oss,snd_mixer_oss,snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_timer
usbhid                 33052  0 
soundcore               4705  1 snd
parport                25499  3 lp,ppdev,parport_pc
evdev                   6944  9 
snd_page_alloc          6021  2 snd_hda_intel,snd_pcm
i2c_core               16118  5 radeon,drm_kms_helper,drm,i2c_algo_bit,i2c_i801
mii                     3334  1 r8169
rtc_lib                 1534  1 rtc_core
button                  4005  0 
hid                    62172  1 usbhid
hwmon                   1097  1 thermal_sys
serio_raw               3574  0 
sg                     21413  0
 
Old 02-21-2011, 11:52 PM   #9
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,377

Rep: Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757
'lspci' shows that the interface is recognised as being present by the kernel.
'lsmod' shows that the r8169 kernel module required to use the interface has been loaded.
'ifconfig -a' shows all the available interfaces.

Your interface is now being assigned to eth1, rather than the eth0 expected by rc.inet1.conf.

I think you need to edit your /etc/udev/rules.d/70-persistent-net.rules (note this from 'ifconfig -a' HWaddr 00:00:49:15:4D:81) to force your interface to be assigned to eth0, then reboot.
 
1 members found this post helpful.
Old 02-22-2011, 05:26 AM   #10
phi11ip
Member
 
Registered: Jul 2007
Location: Nottingham, UK
Distribution: Slackware64-current
Posts: 93

Rep: Reputation: 23
Quote:
Originally Posted by nova49 View Post
Its a Desktop.

I checked to make sure the network card is still working. The network card was listed in lspci so I assume it still works correctly. I wish I had something else to go on other then I don't have internet.

02:05.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8110SC/8169SC Gigabit Ethernet (rev 10)
My output from lspci:
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 03)
I have a newly acquired dual boot Slackware/Windows 7 system. When I first booted into Windows ethernet worked ok, but when I rebooted into Slackware I had no ethernet connection at all, even when I went back to Windows. The connection LED on my router was off indicating "No connection". Cold rebooting wouldn't cure the problem. The only way to get the NIC working again was by powering down and disconnecting from the mains for a short period. From searching with Google I found that the kernel was loading the wrong drivers (r8169 rather thanr8618). Downloading new drivers from Realtek website cured my problem.
I wonder if downloading drivers from Realtek website would cure your problem as well.
 
Old 02-22-2011, 05:35 AM   #11
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,377

Rep: Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757
Quote:
The only way to get the NIC working again was by powering down and disconnecting from the mains for a short period. From searching with Google I found that the kernel was loading the wrong drivers (r8169 rather thanr8618). Downloading new drivers from Realtek website cured my problem.
I wonder if downloading drivers from Realtek website would cure your problem as well.
This should be fixed in -current. http://comments.gmane.org/gmane.linux.kernel/1035007
 
Old 02-22-2011, 05:46 AM   #12
phi11ip
Member
 
Registered: Jul 2007
Location: Nottingham, UK
Distribution: Slackware64-current
Posts: 93

Rep: Reputation: 23
Quote:
Originally Posted by allend View Post
I am running current - 64 bit. After the last kernel upgrade I still had to load the Realtek drivers to get an internet connection.
 
Old 02-22-2011, 06:50 AM   #13
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,377

Rep: Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757
Quote:
I am running current - 64 bit. After the last kernel upgrade I still had to load the Realtek drivers to get an internet connection.
Well, I can't argue with your personal experience with your hardware. :-)

The OP did say:
Quote:
Every thing was working fine and suddenly it stopped.
 
Old 02-22-2011, 07:00 AM   #14
mariano
LQ Newbie
 
Registered: Feb 2011
Posts: 7

Rep: Reputation: 0
if you made ifconfig command, on eth0 you must have the ip of the rc.inet1.conf file. Otherwise your net will never work.

Last edited by mariano; 02-22-2011 at 07:02 AM.
 
Old 02-22-2011, 11:03 AM   #15
nova49
Member
 
Registered: Nov 2010
Distribution: Slackware
Posts: 74

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by allend View Post
'lspci' shows that the interface is recognised as being present by the kernel.
'lsmod' shows that the r8169 kernel module required to use the interface has been loaded.
'ifconfig -a' shows all the available interfaces.

Your interface is now being assigned to eth1, rather than the eth0 expected by rc.inet1.conf.

I think you need to edit your /etc/udev/rules.d/70-persistent-net.rules (note this from 'ifconfig -a' HWaddr 00:00:49:15:4D:81) to force your interface to be assigned to eth0, then reboot.
This seemed to fix my problem. I changed the name of the interface from eth1 to eth0. Any ideas on what caused the name of change in a configuration file. Regardless thank you every one for your time and solutions.
 
  


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
regarding the internet connection problem,and graphics enabling problem, jitulove Linux - Laptop and Netbook 1 02-19-2009 08:17 PM
wireless internet problem and DVD drive problem Legion Linux - Hardware 2 08-28-2006 09:09 PM
internet problem jitheshmurali Linux - General 1 04-18-2006 09:28 AM
Internet and LAN access is unstable-is this a hardware problem or a software problem? soren625 Linux - Networking 1 06-07-2004 06:43 AM
Printer Problem AND internet problem Evolutio Linux - Software 0 04-08-2002 02:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:51 PM.

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