Commit b283f220 authored by Thomas Gambier's avatar Thomas Gambier 🚴🏼

New IP for hsinchu

parent 7ba31c7f
......@@ -8,30 +8,30 @@ $SCRIPT_DIR/download_boot_systems.sh
#UPDATE THOSE VARIABLES DEPENDING ON YOUR SITE
MY_IF_NAME=VLAN100
MY_IP_ADDR=10.0.45.1
DHCP_RANGE=10.0.45.100,static,255.255.255.0
ROUTER_ADDR=10.0.45.1
DNS_SERVER=1.2.4.8
MY_IP_ADDR=124.219.111.33
DHCP_RANGE=124.219.111.33,static,255.255.255.224
ROUTER_ADDR=124.219.111.62
DNS_SERVER=8.8.8.8
common=console=ttyS0,57600
mac='
98:03:9b:9b:8a:46
b8:59:9f:37:9a:bc
b8:59:9f:37:9a:c4
b8:59:9f:37:9a:9c
b8:59:9f:36:2b:e2
b8:59:9f:37:9f:cc
b8:59:9f:37:9f:9c
b8:59:9f:37:9b:8c
b8:59:9f:35:68:06
b8:59:9f:35:5f:66
98:03:9b:9a:e5:8a
b8:59:9f:37:9a:a4
b8:59:9f:37:9a:b4
98:03:9b:9c:22:88
98:03:9b:9b:8a:47
b8:59:9f:37:9a:bd
b8:59:9f:37:9a:c5
b8:59:9f:37:9a:9d
b8:59:9f:36:2b:e3
b8:59:9f:37:9f:cd
b8:59:9f:37:9f:9d
b8:59:9f:37:9b:8d
b8:59:9f:35:68:07
b8:59:9f:35:5f:67
98:03:9b:9a:e5:8b
b8:59:9f:37:a3:a5
b8:59:9f:37:9a:b5
98:03:9b:9c:22:89
'
i=2
i=1
hostname_prefix=hsinchu-tiogapass-
(
......@@ -84,15 +84,9 @@ iface eno1 inet static
allow-hotplug ens9f1
iface ens9f1 inet static
address 10.0.45.$(( 50 + $i ))/24
gateway 10.0.45.1
dns-nameservers 1.2.4.8 223.5.5.5 223.6.6.6
#allow-hotplug ens9f0
##iface ens9f0 inet dhcp
#iface ens9f0 inet static
# address 113.24.192.26/30
# gateway 113.24.192.25
address 124.219.111.$((33 + $i ))/27
gateway 124.219.111.62
dns-nameservers 8.8.8.8 8.8.4.4
EOF
i=`expr $i + 1`
done
......@@ -111,5 +105,18 @@ exec dnsmasq -d --port=0 --log-dhcp \
--dhcp-boot=debian-installer/amd64/grubx64.efi \
--enable-tftp --tftp-root=$(realpath `dirname "$0"`) \
--conf-file=/dev/null \
--dhcp-host=98:03:9b:9b:8a:47,10.0.45.101,1h
--dhcp-host=98:03:9b:9b:8a:47,124.219.111.34,1h \
--dhcp-host=b8:59:9f:37:9a:bd,124.219.111.35,1h \
--dhcp-host=b8:59:9f:37:9a:c5,124.219.111.36,1h \
--dhcp-host=b8:59:9f:37:9a:9d,124.219.111.37,1h \
--dhcp-host=b8:59:9f:36:2b:e3,124.219.111.38,1h \
--dhcp-host=b8:59:9f:37:9f:cd,124.219.111.39,1h \
--dhcp-host=b8:59:9f:37:9f:9d,124.219.111.40,1h \
--dhcp-host=b8:59:9f:37:9b:8d,124.219.111.41,1h \
--dhcp-host=b8:59:9f:35:68:07,124.219.111.42,1h \
--dhcp-host=b8:59:9f:35:5f:67,124.219.111.43,1h \
--dhcp-host=98:03:9b:9a:e5:8b,124.219.111.44,1h \
--dhcp-host=b8:59:9f:37:a3:a5,124.219.111.45,1h \
--dhcp-host=b8:59:9f:37:9a:b5,124.219.111.46,1h \
--dhcp-host=98:03:9b:9c:22:89,124.219.111.47,1h
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