Welcome to the networkmapper’s documentation!
This is a network mapping module which will help you map a real network of routers into a .NET file which can be opened in GNS3, thus emulating a real network.
When the program starts, please enter the required information as asked, for example, enter the name you want to save the .DOT file as, the .PNG file and the IP address of the router which you are connected to. Then, a little while later, if all goes well, just enter the name of the .NET file which you want to save the network to and you’ll find these 3 files saved in the same directory as the project.
The default options of the files are - a.dot a.png abc.net
In case you do not have access to a network of routers but still want to test this module, just build a GNS3 network, connect it to a cloud and then run the networkmapper.py module to build a .NET file (redundant, but useful to test the code).
A necessity to run this code successfully with GNS3 is to get the Cloud to be able to access the whole network. To do this -
In Windows, build a Microsoft Loopback Adapter and configure it to have an IP address which is in the same subnet as the first router’s IP address to the Cloud. Ex. >>> If R1<-->Cloud and R1's interface has an IP address 198.0.0.2 then your MSLoopback Adapter's IP will be 198.0.0.1 In a Mac or *nix OS, you need to connect R1 to the Cloud with a tap0 interface with the tap0’s interface with the IP 198.0.0.1 and a default route in your computer to the router (whose IP is 198.0.0.2) Ex. >>> sudo ifconfig tap0 198.0.0.1 >>> sudo route add default 198.0.0.2
Anonymous