Laboratorio

Netkit l-command scripting

Lo script di tipo l-command per la costruzione di una esperienza virtuale è uno source shell che segue un prefissato template la cui sintassi è dettagliata in man lstart. È una lista di assegnamenti del tipo vm[arg]=value dove:

# lab.conf: main lab configuration file

# define the set of virtual machines that are part of the lab
machines="pc1 pc2 router"

# pc1 vm
pc1[0]=CD1                   # --eth0=CD1
pc1[mem]=64                  # --mem=64

# pc2 vm
pc2[0]=CD2                   # --eth0=CD2

# router vm
router[0]=CD1                # --eth0=CD1
router[1]=CD2                # --eth1=CD2
router[mem]=128              # --mem=128
Creative Commons License FREE THE MOUSE Valid HTML! Sandro Doro (email me)
Ultima modifica: $Date: 2006-09-29 16:10:36 $