LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   New install Slackware64 14.2 and Realtek RTL8101/2/6e Ethernet. No connection. (https://www.linuxquestions.org/questions/slackware-14/new-install-slackware64-14-2-and-realtek-rtl8101-2-6e-ethernet-no-connection-4175706744/)

globetrotterdk 01-21-2022 07:06 AM

New install Slackware64 14.2 and Realtek RTL8101/2/6e Ethernet. No connection.
 
New Slackware64 14.2 install on Acer Aspire One 725 60kk. lspci shows the Ethernet controller to be Realtek RTL8101/2/6e. I have run watch -n 1 ethtool eth0 and there appears to be a link to the attached Ethernet cable, as well as a blue indicator light on my laptop that appears to confirm the same thing. I have tried to run # slackpkg update but it is unable to connect to the relevant mirror. Yes, I have updated / corrected the URL in /etc/slackpkg/mirrors.

I need to get this working if I am at all to get this system working. Next step will be to get WiFi working, but I have documentation for that…

Windu 01-21-2022 07:31 AM

It is not clear if you have network connectivity. Is your only problem that slackpkg cannot connect? Does this return anything (as root)?
Code:

ifconfig eth0
route -n
ping 8.8.4.4
host 8.8.4.4


globetrotterdk 01-21-2022 09:19 AM

Quote:

Originally Posted by Windu (Post 6320557)
It is not clear if you have network connectivity. Is your only problem that slackpkg cannot connect? Does this return anything (as root)?
Code:

ifconfig eth0
route -n
ping 8.8.4.4
host 8.8.4.4


The first two commands gave 0 packets, while the last two gave “network is unreachable” and “connection timed out: no servers could be reached”, so that would be a big no, I don’t have any network connectivity.

enorbet 01-21-2022 11:46 AM

I don't understand why you would get "0 packets" or any packets result from "ifconfig" or "route" commands. Those commands should show what IPs are assigned to what devices. Whether eth0 or eth1 or whatever your Realtek is assigned, should be accompanied by an IP and a Gateway whether setup manually in "/etc/rc.d/rc.inet1.conf" or via Network Manager or the like. If you still need this setup could you please copy and paste the full output of those 2 commands results?

Windu 01-21-2022 12:00 PM

Also the output of "ifconfig -a" would be welcome since that will show all network interfaces that are recognized by your system.

marav 01-21-2022 12:11 PM

lspci | grep Network

could also give useful information

globetrotterdk 01-21-2022 01:46 PM

Thanks for all of the replies. Here is the output:

Code:

root@minislack:~# ifconfig eth0
eth0: flags=4098<BROADCAST,MULTICAST>  mtu 1500
        ether 04:7d:7b:cb:91:77  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

root@minislack:~# route -n
Kernel IP routing table
Destination    Gateway        Genmask        Flags Metric Ref    Use Iface
127.0.0.0      0.0.0.0        255.0.0.0      U    0      0        0 lo

root@minislack:~# ping 8.8.4.4
connect: Network is unreachable

root@minislack:~# host 8.8.4.4
;; connection timed out; no servers could be reached

root@minislack:~# ifconfig -a
eth0: flags=4098<BROADCAST,MULTICAST>  mtu 1500
        ether 04:7d:7b:cb:91:77  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1  (Local Loopback)
        RX packets 13  bytes 1085 (1.0 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 13  bytes 1085 (1.0 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

root@minislack:~# lspci | grep Network
02:00.0 Network controller: Broadcom Corporation BCM43228 802.11a/b/g/n


marav 01-21-2022 01:48 PM

You don't have an IP address

Is NetworkManager running ?
Is dhcpcd running ?

enorbet 01-21-2022 02:50 PM

Thanks globetrotterdk. That really helps a lot for helping you get connected.

Network Manager would certainly make it easier but the dhcp daemon will be essential unless you have a Static IP from your ISP or setup manually. Please note that your route -n command didn't result in a Gateway access address. Commonly that should be something like 192.168.0.1 or 10.0.0.1.

I feel pretty confidant that making sure dhcpcd is running and running Network Manager or the cli version "nmtui" will get you up and running. Network Manager has gotten quite powerful and flexible in the last year or three in that one app can handle both wired and wireless connections and even override mode negotiation for max transfer rates.

globetrotterdk 01-21-2022 03:24 PM

Quote:

Originally Posted by marav (Post 6320699)
You don't have an IP address

Is NetworkManager running ?
Is dhcpcd running ?

Shouldn’t this be preconfigured from the installation at netconfig time?

I tried rerunning netconfig and then running # /etc/rc.d/rc.inet1 eth0_start and still no luck.

marav 01-21-2022 04:03 PM

1 Attachment(s)
Quote:

Originally Posted by globetrotterdk (Post 6320719)
Shouldn’t this be preconfigured from the installation at netconfig time?

I tried rerunning netconfig and then running # /etc/rc.d/rc.inet1 eth0_start and still no luck.

which option did you choose ?

Arnulf 01-21-2022 05:42 PM

Quote:

Originally Posted by globetrotterdk (Post 6320698)
Code:

root@minislack:~# lspci | grep Network
02:00.0 Network controller: Broadcom Corporation BCM43228 802.11a/b/g/n



Broadcom BCM43228 is your Wi-Fi device. Realtek ethernet device isn't listed. Please submit complete output of lspci -v.

enorbet 01-21-2022 07:00 PM

Allow me to suggest running (as root) "lspci -nnk" so you will see what kernel module is supposed to be used or which one is currently running so you can try more if one isn't working with your chip.

Gerard Lally 01-21-2022 07:30 PM

deleted

globetrotterdk 01-22-2022 12:32 AM

Quote:

Originally Posted by marav (Post 6320727)
which option did you choose ?

DHCP.


All times are GMT -5. The time now is 03:36 AM.