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
|