[ns] Adding static routes

2010-05-17 Thread Alexandre Jaron
Hello, I built a wired topology in which I want to edit routing tables for a certain number of nodes. I want to tell a node, every packet coming from this node forward them to that node. Just as simple as it is. I found something on the Internet : [$node set ragent_] addstaticroute number of

Re: [ns] Adding static routes

2010-05-17 Thread Sidney Doria
Alexandre, The original is a big TCL. This excerpt can help you. Enjoy! Sidney Doria UFCG / BRAZIL Thanks to Priscila Doria (UFCG), who created this scenario script. Thanks to somebody who created the two special routines. # Create six nodes (some of them are routers) set x [$ns