diff --git a/FreeBSD/vm/vcreate.csh b/FreeBSD/vm/vcreate.csh index 8ddd98f..b95c31c 100644 --- a/FreeBSD/vm/vcreate.csh +++ b/FreeBSD/vm/vcreate.csh @@ -16,6 +16,7 @@ set IMAGE=ubuntu20.img set PUBKEY=/home/simon/.ssh/id_ed25519.pub set NAMESERVER=192.168.10.254 set GATEWAY=192.168.10.254 +set PREFIX=24 # create vm $VM create \ @@ -23,5 +24,5 @@ $VM create \ -s $SIZE \ -i $IMAGE \ -C -k $PUBKEY \ - -n "ip=$IP/24;gateway=$GATEWAY;nameservers=$NAMESERVER" \ + -n "ip=$IP/$PREFIX;gateway=$GATEWAY;nameservers=$NAMESERVER" \ $HOSTNAME