LinuxQuestions.org
Help answer threads with 0 replies.
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 04-08-2005, 02:33 AM   #1
cutejai
LQ Newbie
 
Registered: Aug 2003
Posts: 23

Rep: Reputation: 15
determine network topology


hi all.
i've been given a project recently concerning about networking and programming on linux. and this project will involve sniffing the network traffic and gathering the source and destination IP addresses. From this data, this program should determine the existence of LAN segments and construct the resulting network topology. So my question to you all is that, Do you have any idea how to achieve this? could anyone give me a brief step by step guide on how to do it?

my guess is,
1.first you need to open the network card in promiscuous mode (what command to use in linux? and how?).
2. sniff the network traffic and gather all the source and dest ip address (what command to use?? how to list all the source and dest ip out??).
3. analyse the net mask and determine the topology.


thanx in advance for any input
 
Old 04-08-2005, 06:56 PM   #2
zeos
Member
 
Registered: Aug 2003
Posts: 150

Rep: Reputation: 15
I'm getting a vision.....I see you and Ethereal becomming fairly intimate in the very near future
 
Old 04-14-2005, 08:01 PM   #3
cutejai
LQ Newbie
 
Registered: Aug 2003
Posts: 23

Original Poster
Rep: Reputation: 15
thanx you for the reply Zeos.
i've looked at ethereal, but their code is not in java and abit too confusing. So could anyone give me a step by step guide to do it in linux??

like you show me how would you do it using command in linux. or just convert these steps into linux command. so i will try to convert all those steps into java code.

1.first you need to open the network card in promiscuous mode (what command to use in linux? and how?).
2. sniff the network traffic and gather all the source and dest ip address then output it(what command to use?? how to list all the source and dest ip out??).

please help. coz this is a major project and i'm not familiar with linux at all.
 
Old 04-15-2005, 11:19 AM   #4
benjithegreat98
Senior Member
 
Registered: Dec 2003
Location: Shelbyville, TN, USA
Distribution: Fedora Core, CentOS
Posts: 1,019

Rep: Reputation: 45
Look at tcpdump. You can direct that output to a file for analysis. Type "man tcpdump" to learn more about it.

Ethereal has a command line version called tethereal
 
  


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
network topology visualization grimse Linux - Software 9 06-19-2005 04:24 PM
graphing a network topology? software? gottin Linux - Software 12 03-17-2005 05:37 PM
Build Network Topology arch4n93l Linux - Networking 1 01-04-2005 07:04 AM
Could not determine network interfaces? _TK_ Linux - Networking 1 12-16-2002 03:38 PM
Network Topology chaste Linux - Networking 6 08-06-2002 09:27 AM

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

All times are GMT -5. The time now is 12:22 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
Open Source Consulting | Domain Registration