Skip to content

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

Notifications You must be signed in to change notification settings

Ignema/ns2-nam-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published