Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
No. Connect one to your other computer or switch and test each port for an active link using ethtool.
Exactly. Do not connect the two ports on the same MACHINE together, connect ONE to a different machine. Then you can test for link. The one reported by the software as having a link is the physical one you have connected.
Distribution: native install of Parrot Home Edition 5.0 Debian (no security tools) 64 bit, KDE, 5.14.0-9parrot1,
Posts: 872
Rep:
Quote:
Originally Posted by wpeckham
MAC addresses are displayed as ether in the output of
Code:
ip link show
. Figuring out the map from the reported NIC ports to the physical port connections might be interesting, but the easy way is to connect one and detect the link state.
@OP
The following commands will all show MAC addresses under link/ether in the terminal
Code:
ip link show
Code:
ip ip -d a
Code:
ip link show
Code:
ip link
Code:
ip addr
ether stands for ethernet address to IP number database
The naming of your network interface will depend on whether your linux system (kernel) uses eth0, eth1 and wlan0 or enp3s0 and wlp2s0 for naming when it comes to hardware locations.
No. To check for link you run a software command to detect the link states of the ports. To connect or disconnect them to get physical link to detect you are plugging the Ether jumper into the NIC connection on the outside of the case.
In other words, it is plugging in a network cable or wire that has another network device on the other end that makes the physical link you want to detect.
To disconnect you would use (depending on your port name):
If port name is eth0
Code:
sudo ifconfig eth0 down
to reconnect
Code:
sudo ifconfig eth0 up
If port name is enp2s0
Code:
sudo ifconfig enp2s0 down
to reconnect
Code:
sudo ifconfig enp2s0 up
Reboot will return to default settings.
No.
In this case the 'connect' means to physically connect the cable from the card to another machine so the card is activated.
'disconnect' means to physically disconnect that cable.
The suggestion was not based on the software since the OP does not know how to identify each card separately within the machine.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.