next up previous contents
Next: Example Up: Using multiple interfaces Previous: Using multiple interfaces   Contents

Configuration

When using multiple interfaces, the usage of tcsim changes as follows:

Furthermore, the host construct is used to define logical groupings of devices and to specify routes:

host {
    dev ...
    tc ...
    route ...
    ...
}

The dev and tc commands are used like in single-interface configurations. route is used as follows:

Syntax:
route destination $[$netmask netmask$]$ device
route default device
Example:
route 10.0.0.0 netmask 255.0.0.0 b_eth1

It is an error to try to enter a more specific route after entering a more general route. (This restriction may be removed in the future.)

Interfaces are connected with the connect command:

Syntax:
connect device device
Example:
connect a_eth0 b_eth0

connect may appear inside a host construct or at any other place where commands are allowed. connect creates a bidirectional connection. Connections in tcsim currently have no delay.


next up previous contents
Next: Example Up: Using multiple interfaces Previous: Using multiple interfaces   Contents
Martin A. Brown 2003-11-06