1. kathara-lab.ext(5)
  2. Kathara manual
  3. kathara-lab.ext(5)


kathara-lab.ext - Network scenario external networks file


This feature allows Kathara to outsource collision domains to external networks by sending network traffic created by devices to the host's physical interfaces.

It is possible to separate traffic of different collision domains using VLANs. Many sub-interfaces, one for each VLAN tag used, of a physical network interface are created to separate the various domains.

This feature is only available on Linux platforms and need root permissions to be used.


It is necessary to write a configuration file named lab.ext, with the following syntax:

collision_domain physical_interface.VLAN_ID

Each line requires two parameters: collision domain and physical network interface on which traffic is sent.

Optionally, the second parameter can have a syntax like: physical_interface.VLAN_ID. In this way, the traffic of the specified collision domain will be tagged with the specified VLAN ID. It is also possible to use the same physical network interface to generate different sub-interfaces, each one with a different VLAN ID.

Lines starting with a hash character (#) are assumed to be comments and simply ignored.

VLAN ID 0 and 4095 are reserved and can not be used.

** Keep in mind that these operations could damage your network if performed incorrectly. Use them with caution. **


	# Collision domain A, on interface enp9s0
	A enp9s0
	# Collision domain B, on interface enp9s0 with VLAN ID = 20
	B enp9s0.20
	# Collision domain C, on interface eth1 with VLAN ID = 4001
	C eth1.4001

Example of a lab.ext(5) file.


Report bugs opening an issue on the official GitHub repository where the development and maintenance is primarily done.
Issues which are security relevant should be disclosed privately to the Kathara mailing list. You do not have to be subscribed to the list to send a message there.
When reporting a bug, remember to write used commands, eventually attach your network scenario, and include the output of kathara-check(1) in order to make possible to reproduce the bug.


Kathara was born from Netkit. Its first version was developed by Gaetano Bonofiglio and Veronica Iovinella. Currently it is mantained by Mariano Scazzariello, Tommaso Caiazzi and Lorenzo Ariemma.

People involved also include:

Copyright © 2017-2024 License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.


kathara(1), kathara-lstart(1), Kathara official site

  1. July 2024
  2. kathara-lab.ext(5)