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:
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:
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.