我已经安装了 OSPF patch对于 ns2
并且它安装正确。现在,当我尝试使用命令 ns ospf0.tcl
运行同一补丁的 tcl
示例时,出现此错误:
(TCL) Creating simulator & trace files...
(TCL) Setting up nodes and links...
(TCL) Configuring traffic objects...
(TCL) Configuring routing protocol...
invalid command name "Agent/rtProto/OSPF"
while executing
"Agent/rtProto/OSPF set helloInterval 1"
(file "ospf0.tcl" line 132)
Here有人说 表示构建失败。 (或者您使用了错误的可执行文件“ns”。)
,但是补丁安装没有错误。我曾经在没有补丁和没有 OSPF 的情况下使用 ns
顺利运行 tcl 文件。我有 ubuntu 14.04
和 ns2 2.35
并且应用了 10-ospf4ns2.34
补丁。任何想法怎么了?如果有人只是给我 nam
文件来模拟甚至跟踪文件,那也会非常有帮助。
NS-2.35 :补丁 10-ospf4ns2.34-base.patch
将因 common/packet.h 失败。
请阅读帖子 #4 here... 关于 » ospf_ns235.patch «
以下是您可以执行的操作:
Ubuntu 14.04 : $ sudo apt-get remove ns2
$ tar xvf ns-allinone-2.35_gcc482.tar.gz
https://drive.google.com/file/d/0B7S...ew?usp=sharing
$ cd ns-allinone-2.35/
$ patch -p0 < ospf_ns235.patch
https://drive.google.com/file/d/0B7S...ew?usp=sharing
$ ./install
$ cd ns-2.35/
$ sudo make install
$ cp ns ns-ospf
$ sudo cp ns-ospf /usr/local/bin/
$ cd tcl/ex/ospf/
$ mkdir out_ospf0 out_ospf1 out_ospf2 out_ospf3 out_ospf4 out_ospf5 out_ospf6 out_ospf7 out_ospf8 out_ospf9
$ ns-ospf ospf0.tcl
.
.
$ ns-ospf ospf9.tcl
我是一名优秀的程序员,十分优秀!