Step1: sudo apt update
Step2: sudo apt-get install gcc g++ python python3 python3-dev qt5default
python3-setuptools git mercurial gir1.2-goocanvas-2.0 python-gi python-gi-cairo
python-pygraphviz python3-gi python3-gi-cairo python3pygraphviz gir1.2-gtk-3.0
ipython openmpi-bin openmpi-common openmpi-doc libopenmpi-dev autoconf
cvs bzr unrar gdb valgrind uncrustify doxygen graphviz imagemagick python3-
sphinx dia gsl-bin libgsl-dev libgsl23 libgslcblas0 tcpdump libxml2 libxml2-dev
cmake libc6-dev libc6-dev-i386 libclang-6.0-dev llvm-6.0-dev automake python3-
pip vtun lxc uml-utilities libboost-signals-dev libboostfilesystem-dev -y
Step3: pip3 install --user cxxfilt
Step4: Enable ssh service in Ubuntu, you need to install openssh-server
sudo apt install opensh-server –y
Step5: Install NS3
sudo apt install ns3
Step6: Download NS3 from [Link] and extract the folder.
$ cd ns-allinone-3.30.1/ ns-allinone-3.30.1
$ sudo ./[Link]
Step 7: Compiling messages and Compiling Process for this its take apex 30min
Step 8: Configure the NS3
ns-allinone-3.30.1
$ cd ns-3.30.1/ ns-allinone-3.30.1/ns-3.30.1
$ ./waf --build-profile=debug examples --enable-tests configure ns-allinone-
3.30.1/ns-3.30.1
$ ./waf ns-allinone-3.30.1/ns-3.30.1
$ ./[Link] -c core
Step9: ns-allinone-3.30.1/ns-3.30.1 $ ./WAF If we get Hello simulator then we
installed NS3 successfully.