无效的命令名称"代理/ rtProto / OSPF"

时间:2015-01-24 11:09:59

标签: linux tcl patch ns2 ospf

我为ns2安装了OSPF patch,并且安装正确。现在,当我尝试使用命令tcl运行相同补丁的ns ospf0.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有人说indicates a failed build. (Or you are using a wrong executable 'ns'.),但补丁安装时没有错误。我曾经在没有补丁且没有OSPF的情况下顺利运行带有ns的tcl文件。我ubuntu 14.04 ns2 2.35并已应用10-ospf4ns2.34补丁。任何想法都错了吗?如果有人给我nam文件模拟甚至跟踪文件,那将非常有用。

1 个答案:

答案 0 :(得分:1)

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
相关问题