Commit 9388785a authored by Thomas Gambier's avatar Thomas Gambier 🚴🏼

several fixes for Xinzhou setup

parent e3ee5ca8
......@@ -4,11 +4,9 @@
MY_IF_NAME=ens9f1
MY_IP_ADDR=10.0.45.51
DHCP_RANGE=10.0.45.100,10.0.45.200,255.255.255.0
ROUTER_ADDR=10.0.45.51
ROUTER_ADDR=10.0.45.1
DNS_SERVER=1.2.4.8
LOCAL_SCRIPT=gen_xinzhou.sh
# apt install -y dnsmasq-base
LOCAL_SCRIPT=$(realpath `dirname "$0"`)/gen_xinzhou.sh
if [ ! -f version.info ]
then
......@@ -35,4 +33,5 @@ exec dnsmasq -d --port=0 --log-dhcp \
--dhcp-option=option:router,$ROUTER_ADDR \
--dhcp-option=option:dns-server,$DNS_SERVER \
--dhcp-boot=debian-installer/amd64/grubx64.efi \
--enable-tftp --tftp-root=$(realpath `dirname "$0"`)
--enable-tftp --tftp-root=$(realpath `dirname "$0"`) \
--conf-file=/dev/null
......@@ -6,6 +6,7 @@ common=console=ttyS1,57600
mac='
b8:59:9f:07:7d:f3
b8:59:9f:07:7f:c3
b8:59:9f:07:7f:bb
'
i=2
hostname_prefix=xinzhou-tiogapass-
......@@ -61,7 +62,7 @@ iface eno1 inet static
allow-hotplug ens9f1
iface ens9f1 inet static
address 10.0.45.$(( 50 + $i ))/24
gateway 10.0.45.51
gateway 10.0.45.1
dns-nameservers 1.2.4.8
#allow-hotplug ens9f0
......@@ -70,4 +71,5 @@ iface ens9f1 inet static
# address 113.24.192.26/30
# gateway 113.24.192.25
EOF
i=`expr $i + 1`
done
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment