Skip navigation.
Home
A virtual network infrastructure
PlanetLab logo
Powered by PlanetLab

UmlNetGenerator.rb

UmlNetGenerator Class

External Methods

printConfig(node)
Given the virtual topology defined by the experimenter (i.e., interrelated Node and Link objects), creates a script for configuring the network inside the UML instance running on node. The output file is called umlnet.cfg. It does the following:

  1. Issues some sysctl commands so that each interface only responds to ARP requests addressed to it. All interfaces are connected to the same virtual switch, so without this every interface responds to every ARP request.
  2. Brings up the network interfaces.
  3. Starts up Quagga or XORP.

printDNSNames

Prints an /etc/hosts file for use within UML to allow a shorthand way of identifying every interface in the virtual topology. All nodes in the experiment use the same /etc/hosts file.