You are not logged in.

#1 2024-12-13 08:38:39

barbaros
Member
From: Lisbon, Portugal
Registered: 2017-02-15
Posts: 6
Website

[SOLVED] ethernet interface not recognized

Hello everybody,
I am trying to install archlinux and I have trouble using the ethernet link.
When I boot from archlinux installation media (which I call archlinux-live in the sequel) everything works fine.
In dmesg I see :

[    2.820320] tg3 0000:04:00.0 eth0: Tigon3 [partno(BCM95720) rev 5720000] (PCI Express) MAC address d0:46:0c:70:94:fe
[    2.820325] tg3 0000:04:00.0 eth0: attached PHY is 5720C (10/100/1000Base-T Ethernet) (WireSpeed[1], EEE[1])
[    2.820328] tg3 0000:04:00.0 eth0: RXcsums[1] LinkChgREG[0] MIirq[0] ASF[1] TSOcap[1]
[    2.820330] tg3 0000:04:00.0 eth0: dma_rwctrl[00000001] dma_mask[64-bit]
[   52.270417] tg3 0000:04:00.0 eno8303: renamed from eth0
[   57.024269] tg3 0000:04:00.0 eno8303: Link is up at 1000 Mbps, full duplex
[   57.024280] tg3 0000:04:00.0 eno8303: Flow control is off for TX and off for RX
[   57.024283] tg3 0000:04:00.0 eno8303: EEE is enabled

If I unplug the cable I see :

[  120.954987] tg3 0000:04:00.0 eno8303: Link is down

And when I plug it back :

[  137.632205] tg3 0000:04:00.0 eno8303: Link is up at 1000 Mbps, full duplex
[  137.632224] tg3 0000:04:00.0 eno8303: Flow control is off for TX and off for RX
[  137.632231] tg3 0000:04:00.0 eno8303: EEE is enabled

In the installed archlinux the interface does not work. In dmesg I see :

[    4.014856] tg3 0000:04:00.0 eth0: Tigon3 [partno(BCM95720) rev 5720000] (PCI Express) MAC address d0:46:0c:70:94:fe
[    4.014862] tg3 0000:04:00.0 eth0: attached PHY is 5720C (10/100/1000Base-T Ethernet) (WireSpeed[1], EEE[1])
[    4.014865] tg3 0000:04:00.0 eth0: RXcsums[1] LinkChgREG[0] MIirq[0] ASF[1] TSOcap[1]
[    4.014867] tg3 0000:04:00.0 eth0: dma_rwctrl[00000001] dma_mask[64-bit]
[    4.047177] tg3 0000:04:00.0 eno8303: renamed from eth0

When I unplug the cable the led goes off but dmesg produces no ouput.
When I plug it back the led comes to life but dmesg produces no ouput.
Unsurprisingly, ping reports temporary failure in name resolution.

The machine has other ethernet adapters but I do not include that information since it does not seem relevant.

Thank you for any suggestion. Cristian

Last edited by barbaros (2024-12-19 09:00:23)

Offline

#2 2024-12-13 09:33:48

seth
Member
Registered: 2012-09-03
Posts: 60,816

Re: [SOLVED] ethernet interface not recognized

* Forgot to install linux-firmware ?
* Test the LTS kernel.
* Do you use any power management tools like TLP?

Last resort you'll have to please post your complete system journal for the boot:

sudo journalctl -b | curl -F 'file=@-' 0x0.st

There could be bus errors, an interrupt storm or god knows what else breaking the ethernet down the road.

Offline

#3 2024-12-13 09:47:30

xerxes_
Member
Registered: 2018-04-29
Posts: 846

Re: [SOLVED] ethernet interface not recognized

That is because you have to setup internet connection yourself (as many things in Archlinux) because you have few options to choose (in this case: dhcpcd, NetworkManager, systemd-networkd, etc.). Pick one and go: https://wiki.archlinux.org/title/Network_interface

Offline

#4 2024-12-13 18:23:06

barbaros
Member
From: Lisbon, Portugal
Registered: 2017-02-15
Posts: 6
Website

Re: [SOLVED] ethernet interface not recognized

xerxes_ : That makes sense, thank you. I will try.

seth : What does the command 'curl -F ...' do exactly ? Recall my complaint is that I cannot access the internet in the first place.

Offline

#5 2024-12-13 18:47:18

seth
Member
Registered: 2012-09-03
Posts: 60,816

Re: [SOLVED] ethernet interface not recognized

https://wiki.archlinux.org/title/Tethering but that would only be relevant after all other options have been exhausted.
It'll upload the stdin into 0x0.st and get you a url to share in return, also see the 1st link below.

Offline

#6 2024-12-19 07:57:59

barbaros
Member
From: Lisbon, Portugal
Registered: 2017-02-15
Posts: 6
Website

Re: [SOLVED] ethernet interface not recognized

Here are the steps I took.

Recall that, after boot, 'ip address show' gives

2: eno8303: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether d0:46:0c:70:94:fe brd ff:ff:ff:ff:ff:ff
    altname enp4s0f0
    altname enxd0460c7094fe

I gave the command 'ip link set eno8303 up' and then the output of 'ip address show' changed to

2: eno8303: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether d0:46:0c:70:94:fe brd ff:ff:ff:ff:ff:ff
    altname enp4s0f0
    altname enxd0460c7094fe
    inet6 fe80::d246:cff:fe70:94fe/64 scope link proto kernel_ll 
       valid_lft forever preferred_lft forever

That's an improvement.
Then I installed the package 'dhclient'. After giving the command 'dhclient eno8303', the output of 'ip address show' changed to

2: eno8303: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether d0:46:0c:70:94:fe brd ff:ff:ff:ff:ff:ff
    altname enp4s0f0
    altname enxd0460c7094fe
    inet 10.101.88.16/22 brd 10.101.91.255 scope global eno8303
       valid_lft forever preferred_lft forever
    inet6 fe80::d246:cff:fe70:94fe/64 scope link proto kernel_ll 
       valid_lft forever preferred_lft forever

That's a huge improvement. Now 'ping' works both ways (from my machine I can reach the outside world and from outside I can reach my machine). Cannot log in through 'ssh' yet.

Next challenges :
1. Launch the commands 'ip link set eno8303 up' and 'dhclient eno8303' automatically at boot.
2. Install sshd

Bottom line: archlinux is fun !

Offline

#7 2024-12-19 09:01:40

seth
Member
Registered: 2012-09-03
Posts: 60,816

Re: [SOLVED] ethernet interface not recognized

https://archlinux.org/packages/extra/x86_64/dhclient/ comes w/ a service you can enable.
You could also just use dhcpcd which is a bit more elaborate.

Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

F5…

Last edited by seth (2024-12-19 09:01:58)

Offline

#8 2024-12-19 14:20:04

barbaros
Member
From: Lisbon, Portugal
Registered: 2017-02-15
Posts: 6
Website

Re: [SOLVED] ethernet interface not recognized

Yes, I just enabled dhclient as a service. Relevant commands are 'pacman -Qql dhclient | grep -Fe .service -e .socket' and 'systemctl enable dhclient@eno8303'.

Also, I installed the 'openssh' package. Works OK after adding 'PermitRootLogin yes' to the configuration file. It took me a while to understand that the right file to edit is '/etc/ssh/sshd_config' rather than '/etc/ssh/ssh_config' ...

Thank you both !

Last edited by barbaros (2024-12-19 14:46:22)

Offline

#9 2024-12-19 18:19:36

seth
Member
Registered: 2012-09-03
Posts: 60,816

Re: [SOLVED] ethernet interface not recognized

Works OK after adding 'PermitRootLogin yes'

Fwwi, you should refrain from logging in as root at all, certainly not via ssh and UNDER NO CIRCUMSTANCES enable that for a WAN facing host (if you can reach it from the internet)
In that case rather see https://wiki.archlinux.org/title/OpenSSH#Protection

Offline

Board footer

Powered by FluxBB