I got the solution for those who are interested.
Instead of using :
$n1 add-route-to-adj-node -default $n2
you should use:
[$n1 get-module "Manual"] add-route-to-adj-node -default $n2
Reply message to myself. lol
Best regards.
Alexandre Malhão escreveu:
> Hi,
>
> Does anyone knows how to use manual routing?
>
> I use the command "$ns rtproto Manual" after creating the simulation
> object que I use:
>
> $n1 add-route-to-adj-node -default $n2
> $n2 add-route-to-adj-node -default $n3
>
> Unfortunately I get the following message:
>
> (_o16 cmd line 1)
> invoked from within
> "_o16 cmd add-route-to-adj-node -default _o21"
> invoked from within
> "catch "$self cmd $args" ret"
> invoked from within
> "if [catch "$self cmd $args" ret] {
> set cls [$self info class]
> global errorInfo
> set savedInfo $errorInfo
> error "error when calling class $cls: $args" $..."
> (procedure "_o16" line 2)
> (SplitObject unknown line 2)
> invoked from within
> "$n0 add-route-to-adj-node -default $n1"
> (file "test.tcl" line 70)
>
> What could be my problem??
>
> Best regards,
>
> Alexandre Malhão
>
>
>