Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4990

Networking and servers • Re: How to set correct Ethernet NIC

$
0
0
I don't know if I did manage to figure this out or not but I'll share what I have found and hopefully it will be useful for someone else someday (please note that I have absolutely very lite understanding of what I'm actually doing so this is not a guide by any means)

This was confusing cause the Device ID's* was not fixed (don't ask me why) so when I had two Ethernet cables running from my switch to each port (one is the Pi5 stock one and the other being this NIC I'm trying to set up correctly) .. The MAC-address's per device was unique but not the actual Device ID's*

*lack of a correct/better term


So navigate into the NetworkManager TUI then → Edit a connection → Add → Ethernet → Create
Screenshot from 2024-04-19 20-33-17.png
and now, set it up like this
Screenshot from 2024-04-19 20-39-59.png
next, from the main menu of NetworkManager go to→ Activate a connection → and Activate, like this
Screenshot from 2024-04-19 20-54-17.png
and for the last step I did Deactivate the Wired connection and additionally I went back to Edit and unchecked the "Automatically connect" for the stock Ethernet port which in my case is called "Wired connection 1".


The last above additional or optional steps, if you like me want to make sure you are not running both ports (obviously you could "just" disconnect the cord from the stock Ethernet port..) but I chose to not to do it like that cause I want to make sure I'm using only this new NIC and only one Ethernet cable between it and my switch.

I would appreciate if someone who actually know what he is talking about would step in here, fill in the blanks and most importantly correct me!

Ps, now that I'm reading the result of the commands in code below, I really don't think I got this right, there is some "..unknow!" here and there that I cant figure out.

Code:

i@Pi5:~ $ ip -c link1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:002: end0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN mode DEFAULT group default qlen 1000    link/ether 2c:cf:67:2f:cf:9a brd ff:ff:ff:ff:ff:ff3: enx002427882917: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000    link/ether 00:24:27:88:29:17 brd ff:ff:ff:ff:ff:ff4: wlan0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN mode DORMANT group default qlen 1000    link/ether 2c:cf:67:2f:cf:9c brd ff:ff:ff:ff:ff:ff5: br-1375eb5f9cce: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN mode DEFAULT group default     link/ether 02:42:3e:b6:9b:3e brd ff:ff:ff:ff:ff:ff6: docker0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN mode DEFAULT group default     link/ether 02:42:f5:c9:7d:9b brd ff:ff:ff:ff:ff:ffpi@Pi5:~ $ ifconfig -s -aIface      MTU    RX-OK RX-ERR RX-DRP RX-OVR    TX-OK TX-ERR TX-DRP TX-OVR Flgbr-1375eb5f9cce  1500        0      0      0 0             0      0      0      0 BMUdocker0          1500        0      0      0 0             0      0      0      0 BMUend0             1500        0      0      0 0             0      0      0      0 BMUenx002427882917  1500     8255      0      0 0           805      0      0      0 BMRUlo              65536     1611      0      0 0          1611      0      0      0 LRUwlan0            1500        0      0      0 0             0      0      0      0 BMUpi@Pi5:~ $ netstat -iKernel Interface tableIface             MTU    RX-OK RX-ERR RX-DRP RX-OVR    TX-OK TX-ERR TX-DRP TX-OVR Flgbr-1375eb5f9cce  1500        0      0      0 0             0      0      0      0 BMUdocker0          1500        0      0      0 0             0      0      0      0 BMUend0             1500        0      0      0 0             0      0      0      0 BMUenx002427882917  1500     8283      0      0 0           810      0      0      0 BMRUlo              65536     1629      0      0 0          1629      0      0      0 LRUwlan0            1500        0      0      0 0             0      0      0      0 BMUpi@Pi5:~ $ ethtool end0Settings for end0:Supported ports: [ TP MII ]Supported link modes:   10baseT/Half 10baseT/Full                        100baseT/Half 100baseT/Full                        1000baseT/Half 1000baseT/FullSupported pause frame use: Transmit-onlySupports auto-negotiation: YesSupported FEC modes: Not reportedAdvertised link modes:  10baseT/Half 10baseT/Full                        100baseT/Half 100baseT/Full                        1000baseT/Half 1000baseT/FullAdvertised pause frame use: Transmit-onlyAdvertised auto-negotiation: YesAdvertised FEC modes: Not reportedSpeed: Unknown!Duplex: Unknown! (255)Auto-negotiation: onmaster-slave cfg: preferred slavemaster-slave status: unknownPort: Twisted PairPHYAD: 1Transceiver: externalMDI-X: Unknownnetlink error: Operation not permittedLink detected: no
These are some useful links for understanding some commands and navigating (for me some of them where helpful)
- https://www.howtogeek.com/426199/how-to ... -terminal/
- https://www.cyberciti.biz/faq/show-ethe ... ntu-linux/

Statistics: Posted by Arelius — Fri Apr 19, 2024 7:18 pm



Viewing all articles
Browse latest Browse all 4990

Trending Articles