LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 11-22-2023, 03:17 PM   #16
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS, Manjaro
Posts: 5,767

Rep: Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765

Quote:
Originally Posted by michaelk View Post
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.
 
Old 11-23-2023, 08:27 PM   #17
linux-man
Member
 
Registered: Nov 2016
Location: Geneva
Distribution: native install of Parrot Home Edition 5.0 Debian (no security tools) 64 bit, KDE, 5.14.0-9parrot1,
Posts: 872

Rep: Reputation: Disabled
Quote:
Originally Posted by wpeckham View Post
Exactly. Do not connect the two ports on the same MACHINE together, connect ONE to a different machine.
Does the OP need to physically open the machine at any point to do that?
 
Old 11-23-2023, 08:29 PM   #18
linux-man
Member
 
Registered: Nov 2016
Location: Geneva
Distribution: native install of Parrot Home Edition 5.0 Debian (no security tools) 64 bit, KDE, 5.14.0-9parrot1,
Posts: 872

Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
No. Connect one to your other computer or switch and test each port for an active link using ethtool.
@ OP
You would have to install ethtool first if you took the above advice. The command for that on Ubuntu is
Code:
Sudo apt install Ethtool
how to use ethtool

Last edited by linux-man; 11-23-2023 at 08:35 PM.
 
Old 11-23-2023, 09:01 PM   #19
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Quote:
Originally Posted by linux-man View Post
Does the OP need to physically open the machine at any point to do that?
See posts 14, 15, & 16
 
Old 11-23-2023, 09:03 PM   #20
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Quote:
Originally Posted by linux-man View Post
@ OP
You would have to install ethtool first if you took the above advice. The command for that on Ubuntu is
Code:
Sudo apt install Ethtool
how to use ethtool
The earlier suggestion to use the ip command (I would suggest "ip address show") would not require installing anything.
 
Old 11-23-2023, 09:27 PM   #21
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,784

Rep: Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937
How does the ip command associate a name to a physical device that is not labeled itself.
 
Old 11-24-2023, 07:32 PM   #22
linux-man
Member
 
Registered: Nov 2016
Location: Geneva
Distribution: native install of Parrot Home Edition 5.0 Debian (no security tools) 64 bit, KDE, 5.14.0-9parrot1,
Posts: 872

Rep: Reputation: Disabled
Quote:
Originally Posted by wpeckham View Post
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.

Last edited by linux-man; 11-24-2023 at 08:36 PM.
 
Old 11-24-2023, 07:36 PM   #23
linux-man
Member
 
Registered: Nov 2016
Location: Geneva
Distribution: native install of Parrot Home Edition 5.0 Debian (no security tools) 64 bit, KDE, 5.14.0-9parrot1,
Posts: 872

Rep: Reputation: Disabled
Quote:
Originally Posted by computersavvy View Post
See posts 14, 15, & 16
The answer is 'no'.
 
Old 11-24-2023, 08:33 PM   #24
linux-man
Member
 
Registered: Nov 2016
Location: Geneva
Distribution: native install of Parrot Home Edition 5.0 Debian (no security tools) 64 bit, KDE, 5.14.0-9parrot1,
Posts: 872

Rep: Reputation: Disabled
Quote:
Originally Posted by chrism01 View Post
See post #9; just connect one and check it.
Then disconnect that one and connect the other & check ....
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.
 
Old 11-25-2023, 04:13 PM   #25
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS, Manjaro
Posts: 5,767

Rep: Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765
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.
 
1 members found this post helpful.
Old 11-26-2023, 05:54 AM   #26
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Quote:
Originally Posted by linux-man View Post
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How the socket read,write works with the hardware(network card or network card driver)? Yuc Linux - Newbie 1 10-12-2019 01:10 AM
replaced eth0 network card new network card comes up as eth1 glorsplitz Linux - Networking 7 03-26-2009 08:03 PM
Linux and Network card compatbility, will any network card work ? MrMark Linux - Networking 6 02-12-2007 08:17 PM
linux shuts down built in network card then windows tells me network card is unplugge lesmoxhaybaker SUSE / openSUSE 8 08-29-2006 05:10 PM
network card issue (the card itself no network problem) Youri Linux - Hardware 2 01-23-2006 08:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration