Skip to content

Latest commit

 

History

History
53 lines (28 loc) · 1.49 KB

README.md

File metadata and controls

53 lines (28 loc) · 1.49 KB

Mobile Networks: Setting up ns2 and nam with Docker

This repository contains instructions on how to work with ns2 (network simulator) and its graphical user interface nam using docker containers.

Installation

1. Make sure you have docker set up

2. Build the docker image using the Dockerfile in this repo

docker build . -t ignema/ns2

Choose any name you want for your image.

3. (For Windows Only) Set up an X11 Session to run GUI apps with Docker

1st way (using chocolatey)

choco install vcxsrv

2nd way

Download it directly from the sourceforge website.

Important: Make sure you start XLaunch.exe that we just downloaded and keep it running in the background.

XLaunch

Make sure you check Disable Access Control !

4. Look up your private IP address

Windows

C:\> ipconfig

ipconfig

Linux

# sudo apt-get install net-tools
#
# ifconfig

ifconfig

5. Run the docker container from the image we built

docker run -it --rm -e DISPLAY=<YOUR-IP-ADDRESS>:0.0 ignema/ns2

Enjoy!

nam