network not working...knetworkmanager or ifup

Hi,

I was working in 11.4, KDE environment just fine for a month or two. network connection was installed default (network manager), and worked fine.

Then, poof it stopped working.

I know that there is no problem with Cable modem as other machines can easily connect to the internet.

I’ve tried some of the suggestions offered in threads regarding knetworkmanager and use of ifup, and can’t seem to get things working again.

I’ve attached output from lspci any suggestions would be appreciated

00:00.0 Host bridge [0600]: ATI Technologies Inc RS690 Host Bridge [1002:7910]
Subsystem: ATI Technologies Inc RS690 Host Bridge [1002:7910]
00:02.0 PCI bridge [0604]: ATI Technologies Inc RS690 PCI to PCI Bridge (PCI Express Graphics Port 0) [1002:7913]
00:04.0 PCI bridge [0604]: ATI Technologies Inc Device [1002:7914]
00:05.0 PCI bridge [0604]: ATI Technologies Inc RS690 PCI to PCI Bridge (PCI Express Port 1) [1002:7915]
00:06.0 PCI bridge [0604]: ATI Technologies Inc RS690 PCI to PCI Bridge (PCI Express Port 2) [1002:7916]
00:07.0 PCI bridge [0604]: ATI Technologies Inc RS690 PCI to PCI Bridge (PCI Express Port 3) [1002:7917]
00:12.0 SATA controller [0106]: ATI Technologies Inc SB600 Non-Raid-5 SATA [1002:4380]
Subsystem: ASUSTeK Computer Inc. Device [1043:14f7]
Kernel driver in use: ahci
00:13.0 USB Controller [0c03]: ATI Technologies Inc SB600 USB (OHCI0) [1002:4387]
Subsystem: ASUSTeK Computer Inc. Device [1043:14f7]
Kernel driver in use: ohci_hcd
00:13.1 USB Controller [0c03]: ATI Technologies Inc SB600 USB (OHCI1) [1002:4388]
Subsystem: ASUSTeK Computer Inc. Device [1043:14f7]
Kernel driver in use: ohci_hcd
00:13.2 USB Controller [0c03]: ATI Technologies Inc SB600 USB (OHCI2) [1002:4389]
Subsystem: ASUSTeK Computer Inc. Device [1043:14f7]
Kernel driver in use: ohci_hcd
00:13.3 USB Controller [0c03]: ATI Technologies Inc SB600 USB (OHCI3) [1002:438a]
Subsystem: ASUSTeK Computer Inc. Device [1043:14f7]
Kernel driver in use: ohci_hcd
00:13.4 USB Controller [0c03]: ATI Technologies Inc SB600 USB (OHCI4) [1002:438b]
Subsystem: ASUSTeK Computer Inc. Device [1043:14f7]
Kernel driver in use: ohci_hcd
00:13.5 USB Controller [0c03]: ATI Technologies Inc SB600 USB Controller (EHCI) [1002:4386]
Subsystem: ASUSTeK Computer Inc. Device [1043:14f7]
Kernel driver in use: ehci_hcd
00:14.0 SMBus [0c05]: ATI Technologies Inc SBx00 SMBus Controller [1002:4385] (rev 14)
Subsystem: ASUSTeK Computer Inc. Device [1043:14f7]
Kernel driver in use: piix4_smbus
00:14.1 IDE interface [0101]: ATI Technologies Inc SB600 IDE [1002:438c]
Subsystem: ASUSTeK Computer Inc. Device [1043:14f7]
Kernel driver in use: pata_atiixp
00:14.2 Audio device [0403]: ATI Technologies Inc SBx00 Azalia (Intel HDA) [1002:4383]
Subsystem: ASUSTeK Computer Inc. Device [1043:1339]
Kernel driver in use: HDA Intel
00:14.3 ISA bridge [0601]: ATI Technologies Inc SB600 PCI to LPC Bridge [1002:438d]
Subsystem: ASUSTeK Computer Inc. Device [1043:14f7]
00:14.4 PCI bridge [0604]: ATI Technologies Inc SBx00 PCI to PCI Bridge [1002:4384]
00:18.0 Host bridge [0600]: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration [1022:1100]
00:18.1 Host bridge [0600]: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map [1022:1101]
00:18.2 Host bridge [0600]: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller [1022:1102]
00:18.3 Host bridge [0600]: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous Control [1022:1103]
Kernel driver in use: k8temp
01:00.0 VGA compatible controller [0300]: ATI Technologies Inc M76 [Radeon Mobility HD 2600 Series] [1002:9581]
Subsystem: ASUSTeK Computer Inc. Device [1043:1562]
Kernel driver in use: fglrx_pci
01:00.1 Audio device [0403]: ATI Technologies Inc RV630/M76 audio device [Radeon HD 2600 Series] [1002:aa08]
Subsystem: ATI Technologies Inc RV630/M76 audio device [Radeon HD 2600 Series] [1002:aa08]
Kernel driver in use: HDA Intel
05:00.0 SATA controller [0106]: JMicron Technology Corp. JMB360 AHCI Controller [197b:2360] (rev 02)
Subsystem: ASUSTeK Computer Inc. Device [1043:1348]
Kernel driver in use: ahci
07:00.0 Ethernet controller [0200]: Atheros Communications Inc. AR5001 Wireless Network Adapter [168c:001c] (rev 01)
Subsystem: AzureWave AR5007EG 802.11bg Wi-Fi mini PCI express card [1a3b:1026]
Kernel driver in use: ath5k
08:01.0 FireWire (IEEE 1394) [0c00]: Ricoh Co Ltd R5C832 IEEE 1394 Controller [1180:0832] (rev 05)
Subsystem: ASUSTeK Computer Inc. Device [1043:1567]
Kernel driver in use: firewire_ohci
08:01.1 SD Host controller [0805]: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter [1180:0822] (rev 22)
Subsystem: ASUSTeK Computer Inc. Device [1043:1567]
Kernel driver in use: sdhci-pci
08:01.2 System peripheral [0880]: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter [1180:0592] (rev 12)
Subsystem: ASUSTeK Computer Inc. Device [1043:1567]
08:01.3 System peripheral [0880]: Ricoh Co Ltd xD-Picture Card Controller [1180:0852] (rev 12)
Subsystem: ASUSTeK Computer Inc. Device [1043:1567]
Kernel driver in use: r852
08:02.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL-8110SC/8169SC Gigabit Ethernet [10ec:8167] (rev 10)
Subsystem: ASUSTeK Computer Inc. Device [1043:1345]
Kernel driver in use: r8169

Are You connecting with wire or are You using wireless or maybe You’re using some dial up, DSL ?
Is there anything particular that happened before the internet stopped working ?

Please use code tags for wrapping output like the one from lspci in your post :slight_smile: You will find the tutorial on how to do this in the link below L
Posting in Code Tags - A Guide
Btw thanks for posting it.

Can You give us the output of these commands :

/sbin/ifconfig
cat /etc/resolv.conf

(you don’t have to be root or use sudo to get the proper output from these :))

Best regards,
Greg

Connecting with wire for now (though eventually wireless would be nice too…walk before you run). Internet provided via DCHP cable modem.

Not sure what I did. I had done some package updates (kde package manager, not via YAST), manually mounted an external USB hard drive (for some reason would no longer automount…couldn’t detect file system), and briefly looked or something on ktorrent. Note sure what was the culprit, though from that list, the package update seems most likely

### /etc/resolv.conf file autogenerated by netconfig!
#
# Before you change this file manually, consider to define the
# static DNS configuration using the following variables in the
# /etc/sysconfig/network/config file:
#     NETCONFIG_DNS_STATIC_SEARCHLIST
#     NETCONFIG_DNS_STATIC_SERVERS
#     NETCONFIG_DNS_FORWARDER
# or disable DNS configuration updates via netconfig by setting:
#     NETCONFIG_DNS_POLICY=''
#
# See also the netconfig(8) manual page and other documentation.
#
# Note: Manual change of this file disables netconfig too, but
# may get lost when this file contains comments or empty lines
# only, the netconfig settings are same with settings in this
# file and in case of a "netconfig update -f" call.
#
### Please remove (at least) this line when you modify the file!
search HitchHiker phub.net.cable.rogers.com
nameserver 192.168.0.1
eth0      Link encap:Ethernet  HWaddr 00:1D:60:D2:4D:C3  
          UP 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:20 Base address:0xc800 

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:182 errors:0 dropped:0 overruns:0 frame:0
          TX packets:182 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:13748 (13.4 Kb)  TX bytes:13748 (13.4 Kb)

wlan0     Link encap:Ethernet  HWaddr 00:15:AF:50:32:09  
          inet addr:192.168.0.196  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::215:afff:fe50:3209/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:16 errors:0 dropped:0 overruns:0 frame:0
          TX packets:36 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:2143 (2.0 Kb)  TX bytes:7438 (7.2 Kb)


Thanks for using the code tags.
The output You posted indicates that You are using wireless not the wire :slight_smile:

Either way try pinging 8.8.4.4 (it’s a google free DNS server). If you can ping that add the following line to your resolv.conf file

nameserver 8.8.4.4

or remove the file whatsoever.

Not sure what You mean by kde package manager. Are You referring to kpackagekit ? If so it’s generally not recommended to use it as it’s still broken for some people (for me it works well). YaST online update is the preferred way to update.

Best regards,
Greg

I couldn’t ping the google server (8.8.4.4) successfully. I did remove the resolve.conf file and that didn’t help either.

When I switched from Yast (ifup method) back to network manager, I received an error indicating that no network was available.

If it helps, my computer is an Asus A7k.

Thanks for your help again

p.s., I did mean that I was using kpackagekit. I never had a problem with it in 11.3, so I didn’t see a reason not to use it in 11.4. However there seem to be alot of posts about it so going forward, I’ll stick with Yast

There was no kpackagekit in 11.3 :slight_smile: that was updater applet as far as I can remember and it was working well.

Ok if You can’t ping google most likely You don’t have a default gateway configured as You get an IP address.
Please use this command to check :

/sbin/route -n

Best regards,
Greg

When i run /sbin/route -n i get only the header and no data under Destination gateway etc. Note that this is with knetwork manager not ifup

I’m going to throw my 2 cents in here and suggest that you use 8.8.8.8 instead. It’s also a free DNS server from Google, but it has the added benefit of being even easier to remember.

Nope 8.8.8.8 didnt work either. Network
Connection error

Is it time for a reinstallation as im wondering if my update munched my configuration somehoe

Odd 11.4 is a significant improvement over its predecessor in many ways but ive had thisnproblem twice now and never had it in 11.3

Using NetworkManager or ifup does not matter for the output of this command. It just prints You the routing table from your linux. Did You run the command as root ?

Here’s an example output :

> /sbin/route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
199.1.1.0       0.0.0.0         255.255.255.0   U     2      0        0 wlan0
**0.0.0.0         199.1.1.1       0.0.0.0         UG    0      0        0 wlan0**

The route in bold is required to get outside and is called the default route because it matches any destination. As the gateway IP You need the ip address of your router, which You should get trough DHCP. I don’t know why You get an IP address and not the default route but this is your problem. To confirm You can use this terminal command to add a default route :

# route add default gw 199.1.1.2

Substitute 199.1.1.2 with the IP of your router and after that You should be able to ping 8.8.8.8 or 8.8.4.4. Please try this out and tell us if that helps.

As for a permanent solution we need to figure out why You don’t get it through DHCP.

Best regards,
Greg

I ran /sbin/route -n as both user and root with the same result

When i try to add the default gateway as suggested i get the following error

SIOCADDRT: no such process

You need to do this as root. Are You trying to do this as root or as a normal user ?

Best regards,
Greg

Always as root

Could You paste here exactly what You’re doing and the exact output ?
Maybe there’s a typo somewhere along the way ?

Best regards,
Greg

So to begin with I am using Network manager (and not ifup) at this point (reminder laptop is an asus a7k with AR5007EG wireless)


/home/#  tcsh
/home/#  whoami
root


/home/#  more /etc/networks


#
# networks      This file describes a number of netname-to-address
#               mappings for the TCP/IP subsystem.  It is mostly
#               used at boot time, when no name servers are running.
#

loopback        127.0.0.0
link-local      169.254.0.0

# End.


/home/# more /etc/resolv.conf
### /etc/resolv.conf file autogenerated by netconfig!
#
# Before you change this file manually, consider to define the
# static DNS configuration using the following variables in the
# /etc/sysconfig/network/config file:
#     NETCONFIG_DNS_STATIC_SEARCHLIST
#     NETCONFIG_DNS_STATIC_SERVERS
#     NETCONFIG_DNS_FORWARDER
# or disable DNS configuration updates via netconfig by setting:
#     NETCONFIG_DNS_POLICY=''
#
# See also the netconfig(8) manual page and other documentation.
#
# Note: Manual change of this file disables netconfig too, but
# may get lost when this file contains comments or empty lines
# only, the netconfig settings are same with settings in this
# file and in case of a "netconfig update -f" call.
#
### Please remove (at least) this line when you modify the file!
search RouterSSID


/home/#  more /etc/sysconfig/network/ifcfg-eth0
BOOTPROTO='dhcp'
BROADCAST=''
ETHTOOL_OPTIONS=''
IPADDR=''
MTU=''
NAME='RTL-8110SC/8169SC Gigabit Ethernet'
NETMASK=''
NETWORK=''
REMOTE_IPADDR=''
STARTMODE='auto'
USERCONTROL='yes'
IFPLUGD_PRIORITY='0'

/home/#  /sbin/route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface

/home/#  /etc/init.d/network start
NetworkManager already running                                                                                                 done

/home/#  /etc/init.d/network stop
Shutting down the NetworkManager                                                                                               done
Shutting down network interfaces:
    eth0      device: Realtek Semiconductor Co., Ltd. RTL-8110SC/8169SC Gigabit Ethernet (rev 10)
    eth0                                                                                                                       done
    wlan0     device: Atheros Communications Inc. AR5001 Wireless Network Adapter (rev 01)
    wlan0                                                                                                                      done
Shutting down service network  .  .  .  .  .  .  .  .  .                                                                       done
/home/# /etc/init.d/network start
Starting the NetworkManager                                                                                                    done
Connecting...............    1s
                                                                                                                               waiting
/home/#   /sbin/route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface


I then connect my laptop to my router (via wire) and get

 /etc/init.d/network stop
Shutting down the NetworkManager                                                                                               done
Shutting down network interfaces:
    eth0      device: Realtek Semiconductor Co., Ltd. RTL-8110SC/8169SC Gigabit Ethernet (rev 10)
    eth0                                                                                                                       done
    wlan0     device: Atheros Communications Inc. AR5001 Wireless Network Adapter (rev 01)
    wlan0                                                                                                                      done
Shutting down service network  .  .  .  .  .  .  .  .  .                                                                       done
/home/#    /etc/init.d/network start
Starting the NetworkManager                                                                                                    done
Connecting...............    1s
                                                                                                                               waiting
/home/#    /sbin/route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
/home/#   /sbin/route add default gw 192.168.0.1
SIOCADDRT: No such process

/home/#  more /etc/hosts
#
# hosts         This file describes a number of hostname-to-address
#               mappings for the TCP/IP subsystem.  It is mostly
#               used at boot time, when no name servers are running.
#               On small systems, this file can be used instead of a
#               "named" name server.
# Syntax:
#    
# IP-Address  Full-Qualified-Hostname  Short-Hostname
#

127.0.0.1       localhost 

# special IPv6 addresses
::1             localhost ipv6-localhost ipv6-loopback

fe00::0         ipv6-localnet 

ff00::0         ipv6-mcastprefix 
ff02::1         ipv6-allnodes 
ff02::2         ipv6-allrouters 
ff02::3         ipv6-allhosts 
127.0.0.2       MACHINENAME MACHINENAME

/home/#  more /etc/HOSTNAME
MACHINENAME


/home/#  more /etc/hosts.YaST2save
#
# hosts         This file describes a number of hostname-to-address
#               mappings for the TCP/IP subsystem.  It is mostly
#               used at boot time, when no name servers are running.
#               On small systems, this file can be used instead of a
#               "named" name server.
# Syntax:
#    
# IP-Address  Full-Qualified-Hostname  Short-Hostname
#

127.0.0.1       localhost

# special IPv6 addresses
::1             localhost ipv6-localhost ipv6-loopback

fe00::0         ipv6-localnet

ff00::0         ipv6-mcastprefix
ff02::1         ipv6-allnodes
ff02::2         ipv6-allrouters
ff02::3         ipv6-allhosts
127.0.0.2       MACHINENAME MACHINENAME


Hopefully this helps to clarify things. If you want me to repeat a particular set of proceedures using ifup, please let me know.

thanks for your efforts:)

Something is wrong here but I’ve got no idea what :slight_smile: I think it will be easiest if You stick with ifup for now and configure everything in YaST from the beginning. Look here :
Chapter

In particular read this :
23.4.1.2.5. Activating the Network Device

I think I would go for On Cable Connection for now but try out different options. Hopefully one of those will work.

Best regards,
Greg

After much wailing and gnashing of teeth I think I’ve kind of sorted out this problem.

I believe the problem has to do with network manager as well as the r8169 driver as well.

I tried a few different distros to see if there was something particular about 11.4, and that wasn’t the case. No success regardless of distro. What I did notice as a result of trying this different distros is that others have recently started having problems with this ethernet card where it used to work but no longer does.

Following a post from kubuntutland, I came across this:
SDB:Realtek 8169 driver problem - openSUSE

I downloaded and built the driver following instructions, but it didn’t help.

SO, as a last effort (before reverting back to 11.3 which always worked) I gave 12.1M3/M4 a try.
Network manager doesn’t work. HOWEVER I can get the ethernet card to work (hooray! break out the champagne!) using YAST and ifup method.

So if anyone else out there is having problems with Realtek cards where they used to work, but no longer are I would suggest the following

  1. try downloading and building the vendor driver. Although it didn’t work for me, it has resolved some issues out there in linuxland.
  2. download and try 12.1Mx.

Thanks for everyones efforts at helping me to sort things out