/NS2-installation

Primary LanguageCGNU General Public License v3.0GPL-3.0

NS2-installation

A very simple way to install NS2 on your Linux devices.
Compatible with Ubuntu 18.04 LTS or below.

All you need to do is copy and paste the following commands.

git clone https://github.com/vincentho66/NS2-installation.git
cd NS2-installation
sudo ./install

Tt will take a while, after seeing "Done!", run:

source ~/.bashrc

And there you go, try "ns" command and see if it works.

Verify installation

There's a test script in ns-allinone-2.35/ns-2.35. Simply run the script which calls validate.

sudo ./validate

Run a simple simulation

You can find lots of test file in ns-allinone-2.35/ns-2.35/tcl/ex. For instance, you wanna simulate example.tcl, just type:

ns example.tcl