[ns] Need help for multi-interface based NS-2

Elena ele_putzolu at yahoo.it
Wed Apr 11 02:51:19 PDT 2007


Das Santos Kumar ha scritto:
>
> Hi Elena,
>
>  
>
> I have installed in ns-2.30 patch MW-node, http://www.q2s.ntnu.no/~paquerea/ns.html <http://www.q2s.ntnu.no/%7Epaquerea/ns.html>.
>  
> But couldn't run the ns-allinone-2.30/tcl/ex/mwnode-ex.tcl. I'm getting the following errors.:
>  
>
> $ ns mwnode-ex.tcl
>
>  
>
> invalid command name "Channel/Wireless"
>
>  
>
>     while executing
>
>  
>
> "Channel/Wireless create _o14 "
>
>  
>
>     invoked from within
>
>  
>
> "catch "$className create $o $args" msg"
>
>  
>
>     invoked from within
>
>  
>
> "if [catch "$className create $o $args" msg] {
>
>  
>
> if [string match "__FAILED_SHADOW_OBJECT_" $msg] {
>
>  
>
> delete $o
>
>  
>
> return ""
>
>  
>
> }
>
>  
>
> global errorInfo
>
>  
>
> error "class $..."
>
>  
>
>     (procedure "new" line 3)
>
>  
>
>     invoked from within
>
>  
>
> "new $val_(channel)"
>
>  
>
>     invoked from within
>
>  
>
> "$ns_ wireless-config    -routing        $val_(routing) \
>
>  
>
>                         -mac            $val_(mac) \
>
>  
>
>                         -phy            ..."
>
>  
>
>     (file "mwnode-ex.tcl" line 86)
>
>  
>
>  
>
> If you have simulated anything for multi-interface on this 
> configuration please help me.
>
>  
>
>  
>
> Thank you.
>
>  
>
>  
>
>  
>
> Best Regards,
>
>  
>
>  
>
>  
>
> *Santos** Kumar Das*
>
> Research Associate
>
> Centre for Multimedia & Network Technology
>
> School of Computer Engineering, NTU Singapore
>
> N4-B2c-06
>
> Extn: 6579
>
>  
>
hi Santos, I'm elena
also I have had the same problem, but then I have followed exactly the 
instructions in the site  http://www.q2s.ntnu.no/~paquerea/ns.html and 
works! it tries re-installed ns2-30 and the pach then.

Laurent had answered to me therefore:
After applying a patch to a source code, you need to recompile... Run
make and it will work.

For the detailed sequence of commands to run:
http://www.q2s.ntnu.no/~paquerea/ns.html

Laurent Paquereau
Q2S Centre of Excellence, NTNU





More information about the Ns-users mailing list