ethernet works on live usb, does not work on new install

hi all,

just installed opensuse for the first time and having a bit of trouble with the internet.

eternet does not function on my fresh install:

nohostname:/home/user # ifconfig
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:65536  Metric:1
          RX packets:8080 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8080 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1 
          RX bytes:667410 (651.7 Kb)  TX bytes:667410 (651.7 Kb)

nohostname:/home/user # iwconfig
enp6s0    no wireless extensions.

lo        no wireless extensions.

nohostname:/home/user # route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
nohostname:/home/user # /sbin/lspci | grep thernet
06:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)
nohostname:/home/user # ping 192.168.178.1
connect: Network is unreachable
nohostname:/home/user # ping 8.8.8.8
connect: Network is unreachable

but it works fine on the live usb that i used to install:

nohostname:/home/linux # ifconfig
enp6s0    Link encap:Ethernet  HWaddr 1C:1B:0D:38:3E:20  
          inet addr:192.168.0.3  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: 2600:8803:8602:1400:1e1b:dff:fe38:3e20/128 Scope:Global
          inet6 addr: 2600:8803:8602:1400:ad35:eff5:d204:dc94/64 Scope:Global
          inet6 addr: fe80::5e03:709:ddf:e387/64 Scope:Link
          inet6 addr: 2600:8803:8602:1400:ec37:af06:accb:6751/64 Scope:Global
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:10186 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3321 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:6923527 (6.6 Mb)  TX bytes:386020 (376.9 Kb)

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:65536  Metric:1
          RX packets:5 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1 
          RX bytes:665 (665.0 b)  TX bytes:665 (665.0 b)

nohostname:/home/linux # iwconfig
enp6s0    no wireless extensions.

lo        no wireless extensions.

nohostname:/home/linux # route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         192.168.0.1     0.0.0.0         UG    100    0        0 enp6s0
192.168.0.0     *               255.255.255.0   U     100    0        0 enp6s0
nohostname:/home/linux # /sbin/lspci | grep thernet
06:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)
nohostname:/home/linux # ping 192.168.178.1
PING 192.168.178.1 (192.168.178.1) 56(84) bytes of data.

any help or advice would be much appreciated.

thank you.

What did you do to configure it?

Is the device in the list of YaST > Network Devices > Network Settings?

Am Thu, 27 Oct 2016 12:56:02 GMT
schrieb hcvv <hcvv@no-mx.forums.microfocus.com>:

> What did you do to configure it?
>
> Is the device in the list of YaST > Network Devices > Network Settings?
>
>

As an addendum (which might be of interest here):

The “ifcfonfig” command without any further arguments only shows interfaces
which are “UP”, so better use “/sbin/ip addr show” or if you really still
want to use the (deprecated) legacy-command “ifconfig”, then use it with the
“-a” switch.

Example:

ifconfig
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:69621 errors:0 dropped:0 overruns:0 frame:0
TX packets:69621 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:34882122 (33.2 Mb) TX bytes:34882122 (33.2 Mb)

“Nothing to see here” (because eth0 is present, but down), as one can see with
“-a”:

ifconfig -a
eth0 Link encap:Ethernet HWaddr DE:AD:BE:EF:13:37
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:132509 errors:0 dropped:0 overruns:0 frame:0
TX packets:83647 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:170587424 (162.6 Mb) TX bytes:24612038 (23.4 Mb)
Interrupt:20 Memory:d4800000-d4820000

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:69681 errors:0 dropped:0 overruns:0 frame:0
TX packets:69681 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:34885572 (33.2 Mb) TX bytes:34885572 (33.2 Mb)

AK


Never attribute to malice that which can be adequately explained by stupidity.
(R.J. Hanlon)

Try this


su
rcnetwork stop
rm /etc/resolv.conf
rcnetwork start


A couple of reports on the ML showed an empty resolv.conf, i.e. no nameservers.

But the output of the OP shows:

  • no NIC configured at all;
  • no route at all (which is not a surprise when there is no NIC in UP status);
  • ping to 8.8.8.8 gives package loss (which is no suprise because of no rout to the Internet);

Thus why concentrating on the DNS servers?

The OP showed ifconfig (where indeed ifconfig -a would have been better), conclusion: no NIC in the UP status.

The OP showed iwconfig, which is rather useless, because there no wifi device and he never claimed there is one, but it has as side effect that we see enp6s0, that we missed because of the missing -a option above. :wink:

Then he shows there is no route, which is logical and thus superfluous.

Then he shpws a ping to an Internet address, which is likewise superfluous because there is no route and no NIC up.

But I rather prefer to get some computer output from an OP, even when useless, then nothing at all, what most seem to do.

My conclusion: there is enp6s0 and it is not configured. So I started to work on that. Can you explain what DNS has to do with it.

Misread the info provided ( read the one from the USB boot as the system’s ), mixed that with some issues seen on the ML with recent TW releases, drew a quick conclusion. Which was wrong.

i hadn’t done anything. a google search had me looking at a part of yast with way too many advanced settings to be comfortable. but i got back from work and started looking at YaST again

YaST > System > Network Settings > Overview > Edit the eternet controller which was unconfigured and somehow defaulted to static IP?

switched to DHCP and now everything is awesome and working

Thank you very much for your time and effort.

Well done!

Normaly it is set to DHCP at installation, that is why I asked how you did it. But it could be that configuring at installation was skipped, e.g. because the cable was not connected at that time.

In any case YaST is the system management tool of openSUSE. My advice is to take some of your time looking around at it’s different modules, not to change things, but to get an impression on where it can help you in the future.