wiki:Old/NodeHandler/Commands/nodes-route

Documentation | NodeHandler | Commands | nodes | route

WARNING: Not implemented yet'''

route: Manipulate the IP Routing Table

This command allows the experimenter to manipulate the IP routing table entries associated with a specific interface.

Syntax

nodeSet.net.ifName.route.add(network, options = nil)
nodeSet.net.ifName.route.delete(network, options = nil)

  • network: Target of route command in the format 'network/netmask'.
  • options: List of options as key ⇒ value

The following options and their respective value ranges are listed below:

  • gw IP address of gateway.
  • metric Metric field in the routing table
  • mss TCP Maximum Segment Size (MSS) in bytes.
  • window TCP window size for connections over this route in bytes.
  • irtt The initial round trip time (irtt) for TCP connections over

this route in milliseconds (1-12000).

Usage

nodes('sender1').net.e0.route.add('192.56.76.0/24')

nodes('sender1').net.w0.route { |r|
  r.add('default', 'gw' => 'mango-gw')
  r.add()
}

See Also

nodes

Last modified 18 years ago Last modified on Nov 5, 2006, 12:10:40 PM
Note: See TracWiki for help on using the wiki.