From 93e0bfb4f86673a87465d127972c447d7c48cfc0 Mon Sep 17 00:00:00 2001 From: Simon Cornet Date: Thu, 13 Aug 2020 15:18:28 +0200 Subject: [PATCH] [VCREATE] Added prefix variable --- FreeBSD/vm/vcreate.csh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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