LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Internet Problem (https://www.linuxquestions.org/questions/slackware-14/internet-problem-864204/)

nova49 02-21-2011 09:26 PM

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.

corp769 02-21-2011 09:28 PM

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?

nova49 02-21-2011 09:43 PM

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.

corp769 02-21-2011 09:48 PM

Is this on a laptop or desktop?

nova49 02-21-2011 09:56 PM

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)

corp769 02-21-2011 11:02 PM

Post the output of lsmod.

allend 02-21-2011 11:17 PM

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'.

nova49 02-21-2011 11:33 PM

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


allend 02-21-2011 11:52 PM

'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.

phi11ip 02-22-2011 05:26 AM

Quote:

Originally Posted by nova49 (Post 4266812)
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.

allend 02-22-2011 05:35 AM

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

phi11ip 02-22-2011 05:46 AM

Quote:

Originally Posted by allend (Post 4267171)

I am running current - 64 bit. After the last kernel upgrade I still had to load the Realtek drivers to get an internet connection.

allend 02-22-2011 06:50 AM

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.

mariano 02-22-2011 07:00 AM

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

nova49 02-22-2011 11:03 AM

Quote:

Originally Posted by allend (Post 4266913)
'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.


All times are GMT -5. The time now is 11:54 PM.