1、运行TCL $startxwin $ cd ns-allinone-2.33 $ ns ns.tcl 2、编译NS2 $ cd ns-allinone-2.33/ns-2.33 $make clean $make