SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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?
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.
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.
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'.
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)
'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.
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.
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.
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.
'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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.