Fresh install - no internet access

I freshly installed Leap 42.3, but do not have internet access. I can’t ping my router, my desktop is connected via ethernet. I have looked through multiple posts and none of them helped solve my problem, but they did help me gather information. If you would like to see more information please ask.

Here are my terminal commands and their respective responses:


samuel@linux:~> ip address
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 40:8d:5c:86:5d:82 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::428d:5cff:fe86:5d82/64 scope link 
       valid_lft forever preferred_lft forever


samuel@linux:~> ip route


samuel@linux:~> cat /etc/sysconfig/network/ifcfg-eth0 
BOOTPROTO='dhcp'
BROADCAST=''
DHCLIENT_SET_DEFAULT_ROUTE='yes'
ETHTOOL_OPTIONS=''
IPADDR=''
MTU=''
NAME='RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller'
NETMASK=''
NETWORK=''
REMOTE_IPADDR=''
STARTMODE='ifplugd'
IFPLUGD_PRIORITY='0'
PREFIXLEN='24'


samuel@linux:~> ls /etc/sysconfig/network/ -alh
total 56K
drwxr-xr-x 1 root root  192 Jan 21 10:40 .
drwxr-xr-x 1 root root  714 Jan 20 00:45 ..
-rw-r--r-- 1 root root 9.5K Jan 20 00:45 config                                                                                                                                                           
-rw-r--r-- 1 root root  12K Jan 20 00:45 dhcp                                                                                                                                                             
-rw-r--r-- 1 root root  259 Jan 21 09:41 ifcfg-eth0                                                                                                                                                       
-rw------- 1 root root  147 Jan 20 00:45 ifcfg-lo                                                                                                                                                         
-rw-r--r-- 1 root root  22K May  9  2017 ifcfg.template                                                                                                                                                   
drwxr-xr-x 1 root root   66 Jan 20 00:43 if-down.d                                                                                                                                                        
drwxr-xr-x 1 root root  116 Jan 20 00:43 if-up.d                                                                                                                                                          
drwx------ 1 root root    0 May  9  2017 providers                                                                                                                                                        
-rw-r--r-- 1 root root    0 Jan 21 09:58 routes                                                                                                                                                           
-rw-r--r-- 1 root root    0 Jan 21 09:58 routes.YaST2save                                                                                                                                                 
drwxr-xr-x 1 root root  206 Jan 20 00:43 scripts                                                                                                                                                          

                                                                                                                                                                   
samuel@linux:~> cat /etc/sysconfig/network/routes


samuel@linux:~> cat /etc/sysconfig/network/routes.YaST2save 


samuel@linux:~> sudo systemctl status wicked                                                                                                                                                                                                                                                                                                                                         
● wicked.service - wicked managed network interfaces                                                                                                                                                      
   Loaded: loaded (/usr/lib/systemd/system/wicked.service; enabled; vendor preset: disabled)                                                                                                              
   Active: active (exited) since Sun 2018-01-21 10:44:46 MST; 3min 24s ago                                                                                                                                
  Process: 1129 ExecStart=/usr/sbin/wicked --systemd ifup all (code=exited, status=0/SUCCESS)                                                                                                             
 Main PID: 1129 (code=exited, status=0/SUCCESS)                                                                                                                                                           
    Tasks: 0 (limit: 512)                                                                                                                                                                                 
   CGroup: /system.slice/wicked.service                                                                                                                                                                   
                                                                                                                                                                                                          
Jan 21 10:44:16 linux systemd[1]: Starting wicked managed network interfaces...
Jan 21 10:44:46 linux wicked[1129]: lo              up
Jan 21 10:44:46 linux wicked[1129]: eth0            setup-in-progress
Jan 21 10:44:46 linux systemd[1]: Started wicked managed network interfaces.


samuel@linux:~> /sbin/ifstatus eth0
eth0            setup-in-progress
      link:     #2, state up, mtu 1500
      type:     ethernet, hwaddr 40:8d:5c:86:5d:82
      config:   compat:suse:/etc/sysconfig/network/ifcfg-eth0
      leases:   ipv4 dhcp requesting
      leases:   ipv6 dhcp requesting

      
samuel@linux:~> ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
    link/ether 40:8d:5c:86:5d:82 brd ff:ff:ff:ff:ff:ff

    
samuel@linux:~> sudo ifup eth0
eth0            setup-in-progress


samuel@linux:~> sudo journalctl -f
-- Logs begin at Sat 2018-01-20 00:46:53 MST. --
Jan 21 10:50:00 linux kernel: Leftover inexact backtrace:
Jan 21 10:50:00 linux kernel:  <IRQ>  <EOI>  <ffffffff814ed967>] ? cpuidle_enter_state+0xd7/0x270
Jan 21 10:50:00 linux kernel:  <ffffffff814ed942>] ? cpuidle_enter_state+0xb2/0x270
Jan 21 10:50:00 linux kernel:  <ffffffff810c5a1d>] ? cpu_startup_entry+0x2ad/0x3a0
Jan 21 10:50:00 linux kernel:  <ffffffff8104e730>] ? start_secondary+0x150/0x180
Jan 21 10:50:00 linux kernel: --- end trace f058305798b591cf ]---
Jan 21 10:50:00 linux kernel: r8169 0000:03:00.0 eth0: link up
Jan 21 10:54:07 linux sudo[2567]:   samuel : TTY=pts/0 ; PWD=/home/samuel ; USER=root ; COMMAND=/usr/bin/journalctl -f
Jan 21 10:54:07 linux sudo[2567]: pam_unix(sudo:session): session opened for user root by samuel(uid=0)
Jan 21 10:54:07 linux sudo[2567]: pam_systemd(sudo:session): Cannot create session: Already running in a session
Jan 21 10:54:14 linux kernel: r8169 0000:03:00.0 eth0: link down
Jan 21 10:54:17 linux kernel: r8169 0000:03:00.0 eth0: link up
Jan 21 10:54:17 linux wickedd-dhcp4[1116]: eth0: Request to acquire DHCPv4 lease with UUID 70d1645a-a98b-0b00-6104-000005000000
Jan 21 10:54:17 linux wickedd-dhcp6[1110]: eth0: Request to acquire DHCPv6 lease with UUID 70d1645a-a98b-0b00-6104-000006000000 in mode auto
Jan 21 10:54:32 linux wickedd-dhcp4[1116]: eth0: defer timeout 15 reached (state SELECTING)
^C


samuel@linux:~> ping 130.57.66.6
connect: Network is unreachable

Thank you for any help and advice you give me.

How do you set up your Network?

Yast2/wicked or Networkmanager?

If Wicked:
Do you setup it in Yast2----System ----Network?
Do you set a Route/Gateway?

I tried both wicked and NetworkManager, neither worked. Currently I have it setup with wicked. I tried setting a route/gateway but that did not work so I removed it. I did set wicked up through Yast. I don’t have a preference on which one to use.

Thank you for your reply.

Do you have DHCP server on your network?

Yes, my router dynamically assigns ip addresses.

What does


cat /etc/resolv.conf

give

Try this


rm /etc/resolv.conf
rcnetwork restart

C’mon, interface does not have IP address, how exactly gateway or /etc/resolv.conf help in this case? From the posted log snippets wicked appears to have attempted to acquire DHCP address on interface. I would start with setting static address to verify that NIC works at all.

Removing it did nothing, even after rcnetwork restart and a reboot.


samuel@linux:~> cat /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!

Can I just set it statically from wicked, or do I need to set it from the router?

Configure a static IP address (suitable for your LAN network) via YaT > System > Network Settings > Overview, select the NIC and ‘Edit’. Follow the prompts given.

More info here…
https://doc.opensuse.org/documentation/leap/reference/html/book.opensuse.reference/cha.basicnet.html#sec.basicnet.yast.netcard.change

Thank you everyone for your help so far. I statically assigned my desktop an address following the instructions by deano_ferarri and tried to ping my router and it actually tried to ping, but each ping said “Destination Host Unreachable”.

I know posting output can be tedious without a network connection on the machine concerned, but for this to work at all the IP address and subnet mask should be set to be compatible with the router IP addressing. Do you happen to know for sure your router’s LAN IP address? Can you tell us what you assigned on this machine?

My routers IP is 192.168.1.1, I set my IP to 192.168.1.115 because my router will take up to 254 or so. My subnet mask is 255.255.255.0.


samuel@linux:~> sudo ifconfig -a
eth0      Link encap:Ethernet  HWaddr 40:8D:5C:86:5D:82  
          inet addr:192.168.1.115  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:623 errors:0 dropped:5 overruns:0 frame:0
          TX packets:4 errors:0 dropped:79 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:52006 (50.7 Kb)  TX bytes:168 (168.0 b)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:407 errors:0 dropped:0 overruns:0 frame:0
          TX packets:407 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1 
          RX bytes:35056 (34.2 Kb)  TX bytes:35056 (34.2 Kb)


samuel@linux:~> ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
From 192.168.1.115 icmp_seq=1 Destination Host Unreachable
From 192.168.1.115 icmp_seq=2 Destination Host Unreachable
From 192.168.1.115 icmp_seq=3 Destination Host Unreachable
From 192.168.1.115 icmp_seq=4 Destination Host Unreachable
From 192.168.1.115 icmp_seq=5 Destination Host Unreachable
From 192.168.1.115 icmp_seq=6 Destination Host Unreachable
^C
--- 192.168.1.1 ping statistics ---
7 packets transmitted, 0 received, +6 errors, 100% packet loss, time 5999ms
pipe 4


samuel@linux:~> ping 130.57.66.6
connect: Network is unreachable

What does ethtool report about the physical connection?

/sbin/ethtool eth0

Can you ping other hosts on the network successfully?

samuel@linux:~> /sbin/ethtool eth0
Settings for eth0:
        Supported ports:  TP MII ]
        Supported link modes:   10baseT/Half 10baseT/Full 
                                100baseT/Half 100baseT/Full 
                                1000baseT/Half 1000baseT/Full 
        Supported pause frame use: No
        Supports auto-negotiation: Yes
        Advertised link modes:  10baseT/Half 10baseT/Full 
                                100baseT/Half 100baseT/Full 
                                1000baseT/Full 
        Advertised pause frame use: Symmetric Receive-only
        Advertised auto-negotiation: Yes
        Link partner advertised link modes:  10baseT/Half 10baseT/Full 
                                             100baseT/Half 100baseT/Full 
        Link partner advertised pause frame use: Symmetric
        Link partner advertised auto-negotiation: Yes
        Speed: 100Mb/s
        Duplex: Full
        Port: MII
        PHYAD: 0
        Transceiver: internal
        Auto-negotiation: on
Cannot get wake-on-lan settings: Operation not permitted
        Current message level: 0x00000033 (51)
                               drv probe ifdown ifup
        Link detected: yes


No, it does not appear so. I only checked a couple.



samuel@linux:~> ping 192.168.1.8
PING 192.168.1.8 (192.168.1.8) 56(84) bytes of data.
From 192.168.1.115 icmp_seq=1 Destination Host Unreachable
From 192.168.1.115 icmp_seq=2 Destination Host Unreachable
From 192.168.1.115 icmp_seq=3 Destination Host Unreachable
From 192.168.1.115 icmp_seq=4 Destination Host Unreachable
From 192.168.1.115 icmp_seq=5 Destination Host Unreachable
From 192.168.1.115 icmp_seq=6 Destination Host Unreachable
^C
--- 192.168.1.8 ping statistics ---
7 packets transmitted, 0 received, +6 errors, 100% packet loss, time 6031ms
pipe 3


samuel@linux:~> ping 192.168.1.11
PING 192.168.1.11 (192.168.1.11) 56(84) bytes of data.
From 192.168.1.115 icmp_seq=1 Destination Host Unreachable
From 192.168.1.115 icmp_seq=2 Destination Host Unreachable
From 192.168.1.115 icmp_seq=3 Destination Host Unreachable
From 192.168.1.115 icmp_seq=4 Destination Host Unreachable
From 192.168.1.115 icmp_seq=5 Destination Host Unreachable
From 192.168.1.115 icmp_seq=6 Destination Host Unreachable
^C
--- 192.168.1.11 ping statistics ---
7 packets transmitted, 0 received, +6 errors, 100% packet loss, time 6000ms
pipe 4


samuel@linux:~> ping 192.168.1.12
PING 192.168.1.12 (192.168.1.12) 56(84) bytes of data.
From 192.168.1.115 icmp_seq=1 Destination Host Unreachable
From 192.168.1.115 icmp_seq=2 Destination Host Unreachable
From 192.168.1.115 icmp_seq=3 Destination Host Unreachable
From 192.168.1.115 icmp_seq=4 Destination Host Unreachable
From 192.168.1.115 icmp_seq=5 Destination Host Unreachable
From 192.168.1.115 icmp_seq=6 Destination Host Unreachable
^C
--- 192.168.1.12 ping statistics ---
7 packets transmitted, 0 received, +6 errors, 100% packet loss, time 6024ms
pipe 3


I note that you’re getting errors reported when pinging. I’m not sure if this is driver or hardware related, but that’s what needs further investigation.

I am going to take a guess and say that it is an issue with the driver since the hardware was working fine when I was running it in windows. I just removed the dual boot by doing a complete fresh install. I was dual booting with opensuse 42.3 before but don’t remember having any issues before. I’m guessing that I will have to try to find the driver from the manufacturer and load it?

Hardware and driver details?

/usr/sbin/hwinfo --netcard

samuel@linux:~> /usr/sbin/hwinfo --netcard
32: PCI 300.0: 0200 Ethernet controller                         
  [Created at pci.378]
  Unique ID: rBUF.BmqBU9Z2gDD
  Parent ID: WL76.sQx2zCXa1Z7
  SysFS ID: /devices/pci0000:00/0000:00:09.0/0000:03:00.0
  SysFS BusID: 0000:03:00.0
  Hardware Class: network
  Model: "Gigabyte Onboard Ethernet"
  Vendor: pci 0x10ec "Realtek Semiconductor Co., Ltd."
  Device: pci 0x8168 "RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller"
  SubVendor: pci 0x1458 "Gigabyte Technology Co., Ltd"
  SubDevice: pci 0xe000 "Onboard Ethernet"
  Revision: 0x0c
  Driver: "r8169"
  Driver Modules: "r8169"
  Device File: eth0
  I/O Ports: 0xd000-0xdfff (rw)
  Memory Range: 0xfe100000-0xfe100fff (rw,non-prefetchable)
  Memory Range: 0xda100000-0xda103fff (ro,non-prefetchable)
  IRQ: 31 (1840 events)
  HW Address: 40:8d:5c:86:5d:82
  Permanent HW Address: 40:8d:5c:86:5d:82
  Link detected: yes
  Module Alias: "pci:v000010ECd00008168sv00001458sd0000E000bc02sc00i00"
  Driver Info #0:
    Driver Status: r8169 is active
    Driver Activation Cmd: "modprobe r8169"
  Config Status: cfg=no, avail=yes, need=no, active=unknown                                                                                                                                               
  Attached to: #9 (PCI bridge)