Skip to content

gfarrasb/RandomKatharaLabs

Repository files navigation

Random Kathará Labs

In this repository there are some examples developed using the Kathará API that generate network topologies with random elements.

First example: numhosts_and_ips.py

In the first example, numhosts_and_ips, a laboratory is generated with a random number of nodes and IPs.

Captura de pantalla de 2025-11-20 19-28-14 Captura de pantalla de 2025-11-20 19-29-51 Captura de pantalla de 2025-11-20 19-28-55

Second example: more_than_one_network.py

Second example a laboratory is generated with a random number of nodes, IPs and networks. Some hosts have more than one interfaces.

Captura de pantalla de 2025-11-22 10-21-17 Captura de pantalla de 2025-11-22 10-45-56 Captura de pantalla de 2025-11-22 10-46-35

Third example: random_os.py

Random OSs

Captura de pantalla de 2025-11-23 08-58-06

Fourth example: entry_point_with_a_bridge.py

If you want an interface bridged to your host, simply:

n=lab.new_machine(nom, **{"image":"kathara/base", "bridged":"True"})

Fifth example: set_content_into_machine.py

Transferring files and content into Docker instances

Captura de pantalla de 2025-11-26 06-25-14

About

Network Kathará labs with random elements

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages