AutoNetkit is a software for creating Netkit configurations.
Dependencies:
AutoNetkit requires the following modules: netaddr, mako, networkx, pydot, pyparse, graphviz and pexpect.
These can be installed using:
sudo easy_install netaddr
sudo easy_install mako
sudo easy_install networkx
sudo easy_install pydot
sudo easy_install pyparsing
sudo easy_install pexpect
for plotting you will need graphviz. On Linux this can be installed as:
sudo apt-get install graphviz
Configuring:
A sample AutoNetkit lab can be found in the labs folder. This lab will create a small internet of 3 Autonomous Systems, with a number of routers in each. These routers are connected. This lab is then plotted.
The lab also can be deployed. For deployment, you must provide the details of your Netkit host machine. This can either be the same machine or a different machine.
The settings required are the address of the machine (use "localhost" if you are running Netkit on the same machine as AutoNetkit), your username to log into the machine (using ssh), and your password.
For example:
host = "netkithost.adelaide.edu.au"
username = "sknight"
password = "12345"
or if running on the same machine:
host = "localhost"
username = "sknight"
password = "12345"
You can then deploy the lab using:
myNetkit.deploy(myInternet)
Running:
Once you have configured your lab, you can start AutoNetkit using:
python AutoNetkit.py
If you wish to specify your lab in a different configuration file, eg myLab.txt, use the following command:
./AutoNetkit.py -f labs/myLab.txt
And you should see output such as:
INFO Loading network from labs/myLab.txt
INFO Compiling configuration for AS1
INFO Compiling configuration for AS2
INFO Compiling configuration for AS3
INFO Connecting to netkithost.adelaide.edu.au
INFO Connected to netkithost.adelaide.edu.au
INFO Halting previous lab
INFO Copying Lab over
INFO Checking all previous machines shutdown
INFO Some hosts still running, retrying in 5 seconds
INFO All previous machines shutdown, starting lab
INFO Starting r1B (1/10)
INFO Starting r1C (2/10)
INFO Starting r1A (3/10)
INFO Starting r1D (4/10)
INFO Starting r1E (5/10)
INFO Starting r2A (6/10)
INFO Starting r3A (7/10)
INFO Starting r3B (8/10)
INFO Starting r3C (9/10)
INFO Starting r3D (10/10)
INFO Finished starting Lab, 10 machines started
Lab generated in 28.14 seconds
Product's homepage
Requirements:
· Python
Site Download Here
Dependencies:
AutoNetkit requires the following modules: netaddr, mako, networkx, pydot, pyparse, graphviz and pexpect.
These can be installed using:
sudo easy_install netaddr
sudo easy_install mako
sudo easy_install networkx
sudo easy_install pydot
sudo easy_install pyparsing
sudo easy_install pexpect
for plotting you will need graphviz. On Linux this can be installed as:
sudo apt-get install graphviz
Configuring:
A sample AutoNetkit lab can be found in the labs folder. This lab will create a small internet of 3 Autonomous Systems, with a number of routers in each. These routers are connected. This lab is then plotted.
The lab also can be deployed. For deployment, you must provide the details of your Netkit host machine. This can either be the same machine or a different machine.
The settings required are the address of the machine (use "localhost" if you are running Netkit on the same machine as AutoNetkit), your username to log into the machine (using ssh), and your password.
For example:
host = "netkithost.adelaide.edu.au"
username = "sknight"
password = "12345"
or if running on the same machine:
host = "localhost"
username = "sknight"
password = "12345"
You can then deploy the lab using:
myNetkit.deploy(myInternet)
Running:
Once you have configured your lab, you can start AutoNetkit using:
python AutoNetkit.py
If you wish to specify your lab in a different configuration file, eg myLab.txt, use the following command:
./AutoNetkit.py -f labs/myLab.txt
And you should see output such as:
INFO Loading network from labs/myLab.txt
INFO Compiling configuration for AS1
INFO Compiling configuration for AS2
INFO Compiling configuration for AS3
INFO Connecting to netkithost.adelaide.edu.au
INFO Connected to netkithost.adelaide.edu.au
INFO Halting previous lab
INFO Copying Lab over
INFO Checking all previous machines shutdown
INFO Some hosts still running, retrying in 5 seconds
INFO All previous machines shutdown, starting lab
INFO Starting r1B (1/10)
INFO Starting r1C (2/10)
INFO Starting r1A (3/10)
INFO Starting r1D (4/10)
INFO Starting r1E (5/10)
INFO Starting r2A (6/10)
INFO Starting r3A (7/10)
INFO Starting r3B (8/10)
INFO Starting r3C (9/10)
INFO Starting r3D (10/10)
INFO Finished starting Lab, 10 machines started
Lab generated in 28.14 seconds
Product's homepage
Requirements:
· Python
Site Download Here
Tidak ada komentar:
Posting Komentar
Hanya manusia yang berkomentar baik dan sopan. sedangkan hanya binatang yang berkomentar buruk dan tidak memikirkan perasaan dan tidak menghargai orang lain... Trima kasih....