Go back to post # 3, read, and consider.
Check the path's with the command : env | grep PATH
Install to the system for easier path's ( # 3 again ).
And please read other LQ threads from users of ns2.
> > LQ 'Search' > "Tag Name" = ns2 . ( e.g. 6 months back.)
You will find examples and links to examples + documentation.
Use words and sentences of your interest as keywords
The basic command is : ns <file>.tcl
which either opens nam and / or writes a file nam.out,
to be used with nam : ' nam nam.out '