Sudo apt-get Install Ns2
At this point, our research professionals have highlighted the steps that are required to install network simulator 2 using the command sudo apt-get.
Phase: 1 Installation of Ns2 in Ubuntu
Here by, we have depicted the process of installation based on network simulator 2 in Ubuntu using the command which is highlighted in the following in the Ubuntu terminal window.
sudo apt-get install ns2
![Installation of Ns2 Packages](https://www.ns2project.com/wp-content/uploads/2023/06/install-ns2-in-ubuntu-5.png)
Phase: 2 Creation of Simulation Using Ns2
To create the simulation process using network simulator 2, we have to create the main file along with the file extension of .tcl and store that in the workspace and the workspace includes the below mentioned main file.
![Simulation Main File](https://www.ns2project.com/wp-content/uploads/2023/06/simulation-main-file-using-ns2-2.png)
Phase: 3 Execute Simulation Using Ns2
To execute the simulation using network simulator 2, we have to implement the comments that have been mentioned below in the terminal window.
cd /home/research/Desktop/ns2_simulation
sudo ./ns Main.tcl
![Execution of Simulation Using Ns2](https://www.ns2project.com/wp-content/uploads/2023/06/execute-simulation-using-ns2-1.png)
Finally, we have highlighted the result of executing the simulation based on network simulator 2.
![](https://www.ns2project.com/wp-content/uploads/2023/06/the-simulation-execution-result-1024x569.png)
So, the research scholars can join hands with our experts to get succeed in your research career.