LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-02-2004, 07:37 AM   #1
markraem
Member
 
Registered: Nov 2003
Posts: 82

Rep: Reputation: 15
How can i see if an ethernet interface is physically up/down ?


I am using LINUX with a 4 port ethernet interface.

I login via telnet via one of the 4 ports.

Is there a command that tells me whether or not the physical link on interfaces is up / down ?

I tried ifconfig -a, but I do not see any difference between a port where the physical link is up and a port where the physical link is down.
 
Old 07-02-2004, 07:49 AM   #2
tom_on_linux
LQ Newbie
 
Registered: Jul 2004
Location: Cologne, DE
Distribution: RedHat | Debian
Posts: 6

Rep: Reputation: 0
if all your int's are on the same subnet (unless there is routing) you can ping 'em...
if ping is successful int is UP.

if you don't know if int is physically UP but has no IP assigned (so you can't ping it) check your RX/TX output
in 'ifconfig'.
[#| ifconfig -a eth2 (so you only get info for the specs. on eth2...)]
EDIT: maybe the -a param. is ambiguous... cause this means: show ALL interfaces no matter if UP/DOWN...

every int sends/recieves bcast packets every once in a while, no matter if an IP has been assigned or not.

so if the count on bcast packets increases you know the int is physically UP...

this of course does not matter if there is no media attached to the int, so this hint is not multi-purpose... ;-)

EDIT:
also i came up with the idea of 'ethtool'. this shows an output that marks the state of an int.
http://www.its.monash.edu.au/project...lex/linux.html

hope it helps...

tom


----------------------
please sign here!

Last edited by tom_on_linux; 07-02-2004 at 08:33 AM.
 
Old 07-02-2004, 09:50 AM   #3
markraem
Member
 
Registered: Nov 2003
Posts: 82

Original Poster
Rep: Reputation: 15
I tried ethtool but unfortunately my card is not supported (no data available).

However, I tried it on another machine (wiht other NIC offcourse) and I must say that ethtool is very usable when your NIC is supported.

Are there any other commands possible, except the packet counters from ifconfig -a ?
 
Old 07-02-2004, 12:39 PM   #4
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 69
mii-tool ?
 
Old 07-02-2004, 03:06 PM   #5
markraem
Member
 
Registered: Nov 2003
Posts: 82

Original Poster
Rep: Reputation: 15
mii-tool is perfect and works on the NIC where ethtool didn't.

Thanks !
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Failed to bring up ethernet interface sparks_lu Linux - Networking 5 03-27-2005 10:57 AM
second ethernet interface will not configure using ifconfig akay Linux - Hardware 0 12-14-2004 06:45 PM
Ethernet interface problems on Solaris 8. franklint99 Solaris / OpenSolaris 1 08-12-2004 03:58 PM
ethernet interface fails (Fedora) legendaryfox Linux - Networking 6 04-11-2004 08:45 PM
Help me bringing up an ethernet interface Maranza Linux - Networking 4 12-25-2003 07:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:26 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration