Skip to content


Creating map of local network

There is this cool little that helps us create map of local area network. As a bonus, we get the mac and the IP addresses of all the devices in the network. It passively listens for all network traffic and creates a image file for the network map.
Well, the utility is called lanmap.

if you run it without any arguments, it will use the defaults and will create a png image in the current directory named lanmap.png using the first network interface.

lanmap

On my system, it created the following map:

Network map using lanmap

Network map using lanmap

To use a specific interface, use the -i switch

lanmap -i eth1

or you can use wildcard for the interface name, for example,

lanmap -i *3Com*

will use the first interface having the name *3Com* in it.

If you want the image in another format. You can create images in png, gif and svg format.

lanmap -T gif

By default, lanmap generates a report every 60 seconds, use -r to change the default interval.

lanmap -r 30

Lanmap also supports filtering traffic with -f string switch. The string is in libpcab syntax formt.

Link: http://parseerror.com/lanmap/

Share The Knowledge:
  • Print this article!
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • blogmarks
  • Diigo
  • E-mail this story to a friend!
  • LinkedIn
  • Live
  • Reddit
  • StumbleUpon
  • Twitter
  • Blogosphere News
  • Identi.ca
  • Slashdot
  • Technorati

Posted in Centos, Debian, Fedora, Network, Red Hat, Ubuntu.

Tagged with , , , .


One Response

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

  1. Michael Carson says

    This is interesting; thanks for the link. As with any passive network utility, it’s limited by the traffic it can see, so the user must be responsible for ensuring the device lanmap is listening to has visibility to the entire network they want mapped.

    Did you look at lanmap2 at all?



Some HTML is OK

or, reply to this post via trackback.