Ubuntu Geek

Ubuntu Linux Tips,Howtos&Tutorials|Edgy,Feisty,Gutsy,Hardy

  • Subscribe RSS Feed

    subscribe to the ubuntu Geek RSS feed




  • Sponsor

  • Categories

  • Meta

  • Sponsor

  • Archives



  • WidgetBucks - Trend Watch - WidgetBucks.com

lanmap - Network discovery tool that produces nice 2d images

Posted by admin on February 2nd, 2008 Email This Post Email This Post

Lanmap Listens to all available traffic on the interface of your choice, figures out who’s talking to who, how much, using which protocols.

This information is then put into a nice human-readable 2d image (various formats are available) which can be used to understand a network’s topology.

Install lanmap in Ubuntu

sudo aptitude install lanmap

This will complete the installation

Using lanmap

lanmap syntax

lanmap [-o directory] [-e program] [-T {png,gif,svg}] [-f filtetr] [-D {#,all,raw}] [-r seconds]

[-i {?,*wildcard*,iface}] [-h] [-v] [-V]

lanmap example

lanmap -i eth0 -r 30 -T png -o /tmp/

This will create a lanmap.png file under tmp folder

You can see the same screen here

lanmap available options

-o directory - The directory in which to save the generated images. Default is the current directory.

-e program - The program to use to generate images. Default is twopi.

-T {png,gif,svg} - Output image format. Default is png.

-f filter - Traffic filter, in libpcap syntax.

-D {#,all,raw} - Debug mode; lots of output, use with caution. #: payload bytes to dump (default: 0)

-r seconds - Set the time interval between 2 consecutive graph generations. Default is 60 seconds.

-i {?,*wildcard*,iface} - Interface to use: ?: list all devices and exit *3Com*: use the first NIC with

“3Com” in it

-V - Version info.

-vv - Verbose mode, up to 3 levels (-vv, -vv09:21 29/11/2007v).

-h - Help message.

If you want to be notified the next time we write something please subscribe to our RSS feed.Thanks for Visiting!

Related Articles

4 Responses to “lanmap - Network discovery tool that produces nice 2d images”

  1. MDL Says:

    I don’t know if it is the same way in Debian, but in Ubuntu you most likely have to sudo the command for it to work.

  2. Li, Rui Says:

    My ubuntu need sudo to run it

  3. Bytes-Delivery Says:

    ein lanmap-network-discovery-tool was auch noch schicke Bilder produziert…

    Ich glaube das werde ich mal auf meinem Eee installieren, da ich ja den “kleinen” an vielen Unterschiedlichen Netzwerken benutzen werde. http://www.ubuntugeek.com/lanmap-network-discovery-tool-that-produces-nice-2d-images.html

  4. kIdFrY Says:

    Not sure what I’m doing wrong but when I run lammap, I receive the following output after 30 seconds of monitoring.

    kidfry@XPS420_Linux:~$ sudo lanmap -i eth0 -r 30 -T png -o /tmp/
    protocols.c:3090: ASSERTION FAILED: isalpha((unsigned char)node->data.nb_dgm.src_name[0]) && isalpha((unsigned char)node->data.nb_dgm.dest_name[0])
    0000 00 00 11 00 00 00 65 74 68 30 00 00 00 00 00 00 ……et h0……
    0010 00 00 11 00 00 00 01 00 00 00 8F 00 00 00 00 00 …….. ……..
    0020 00 00 09 00 01 00 00 00 FF FF FF FF FF FF 00 50 …….. …….P
    0030 8D F7 58 73 08 00 45 00 00 ED 2E 45 00 00 80 11 ..Xs..E. …E….
    0040 89 07 C0 A8 00 64 C0 A8 00 FF 00 8A 00 8A 00 D9 …..d.. ……..
    0050 A5 5E .^

    currpos: 82

    Any ideas on what this means? I’ll see what I can locate on the forums as well.

    Thank you,

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>