Ns2 in Ubuntu

For your ease, our technical professionals have derived this article to show the execution of network simulator 2 in Ubuntu.

Step: 1 Ns2 Download in Ubuntu

As the first process, we have to download the packages based on network simulator 2 in Ubuntu through the web link highlighted in the following.

https://sourceforge.net/projects/nsnam/files/allinone/ns-allinone-2.35/ns-allinone-2.35.tar.gz/download

Download Ns2 Packages

Step: 2 Ns2 Installation in Ubuntu

After downloading, we have to copy and paste the ns-allinone-2.35 package location. In addition, the package location has to be changed through the execution of below mentioned commands.

cd ns-allinone-2.35

Change Package Location

Following that, we have to install the network simulator 2 in Ubuntu over the implementation of the below mentioned commands.

sudo ./install

Installation of Ns2

Step: 3 Configuration of Ns2 in Ubuntu

Then, we have to configure the installed packages of network simulator 2 in Ubuntu through the execution of below mentioned commands.

cd ns-2.35

sudo ./configure

sudo make

Build Ns2 in Ubuntu

Step: 4 Run Ns2 Simulation in Ubuntu

Finally, we have to create the Ns2 based simulation with the main file which is stored with the file extension of .tcl and the execution of below mentioned commands to run Ns2 simulation.

cd /home/research/NS2_Simulation

sudo ./ns main.tcl

Run Ns2 Simulation

With a bit of luck, we have come up with the most wanted process based on the execution of network simulator 2 in Ubuntu.