How do I Run ns3 on Ubuntu
Let’s get into this article to know about process of running network simulator 3 in Ubuntu along with all the required steps.
Stage: 1
Initially, we have to configure the network simulator 3 over the implementation of the below mentioned commands in the Ubuntu terminal window.
cd /home/research/ns-allinone-3.28/ns-3.28
sudo ./waf configure
![Configuration of Ns3 Packages](https://ns3-code.com/wp-content/uploads/2023/01/configure-ns3.png)
Stage: 2
As the next process, we have to create the ns3 simulation file through storing the C++ code file in the scratch folder along with the file extension .cc.
![](https://ns3-code.com/wp-content/uploads/2023/01/ns3-Code.png)
Stage: 3
Most significantly, the main code has to be implemented through the utilization of the following command in the Ubuntu terminal.
cd /home/research/ns-allinone-3.28/ns-3.28
sudo ./waf –run SimulationCode –vis
![Implementation of Main Code](https://ns3-code.com/wp-content/uploads/2023/01/Main-Code-Execution-1.png)
As a final point, we have highlighted the results that have been acquired through the command execution.
![](https://ns3-code.com/wp-content/uploads/2023/01/result-for-Main-Code-Execution-1.png)
You guys can definitely reach us to clarify all your doubts and our research professionals will provide the complete research support.