【问题标题】:Invalid command name "Agent/rtProto/OSPF"无效的命令名称“代理/rtProto/OSPF”
【发布时间】:2015-01-24 11:09:58
【问题描述】:

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

【问题讨论】:

    标签: linux tcl patch ns2 ospf


    【解决方案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
    

    【讨论】:

    • 欢迎来到StackOverflow,再次感谢您也在这里回答。
    • 另一个问题,你如何设置跟踪文件set sim_annotation {Agente OSPF ...}} 中显示在nam 中的句子?除了更改所有 nam 文件行之外,还有什么地方可以更改吗?我希望他们是英语
    猜你喜欢
    • 1970-01-01
    • 2021-08-15
    • 2011-05-14
    • 2020-01-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多