Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 12-02-2005, 05:51 AM   #1
LQ Newbie
Registered: May 2005
Posts: 2

Rep: Reputation: 0
How to detect whether a hub or switch is used ?

Hi all,
How I could find out that a hub or witch is used in the network using linux tools ? I tried following commandsto sniff traffic but it catches traffic to/from my machine only

ifconfig eth0 promisc

Anto Paul
Old 12-02-2005, 08:47 AM   #2
Registered: Jul 2003
Distribution: Solaris 8/9, gentoo
Posts: 41

Rep: Reputation: 15
A quick way to tell if you are plugged into a hub or switch is watch if you recieve traffic on your port destined for another machine. A hub broadcasts packets to all ports so you will recieve everyone's traffic. If you can't see anyone elses traffics, you are pluged into a switch. Also you don't need to set eth to promisc since tcpdump does that for you.


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
Connecting two computers without a hub/switch/router? pilot1 Linux - Networking 8 07-15-2008 04:31 AM
can I set up ethernet between two machines without a hub or switch? Simon Bridge Linux - Networking 13 05-20-2005 01:29 AM
Error occurred when changing from hub to switch onionkn1ght Linux - Software 4 09-09-2004 04:05 PM
connect switch to hub? ody1 Linux - Networking 3 04-12-2004 08:42 AM
10/100 Mbps Hub/Switch Question WeNdeL Linux - Networking 4 01-13-2004 02:52 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:05 AM.

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