To receive notifications about scheduled maintenance, please subscribe to the mailing-list gitlab-operations@sympa.ethz.ch. You can subscribe to the mailing-list at https://sympa.ethz.ch

Commit f223eeae authored by Reto Da Forno's avatar Reto Da Forno

network config for observers changed to DHCP

parent 95c0c563
...@@ -8,14 +8,21 @@ iface lo inet loopback ...@@ -8,14 +8,21 @@ iface lo inet loopback
# Wired interfaces # Wired interfaces
# #
# Dynamic IP (DHCP)
auto eth0 auto eth0
iface eth0 inet static #allow-hotplug eth0
address 129.132.177.XX iface eth0 inet dhcp
netmask 255.255.255.192 udhcpc_opts -x hostname:flocklab-observer029.flocklab-dyn.ethz.ch
broadcast 129.132.177.127
gateway 129.132.177.65 # Static IP
up /bin/echo -en 'search ethz.ch\nnameserver 129.132.119.181\n' | /sbin/resolvconf -a eth0 -m 1; /usr/sbin/ifmetric eth0 1 #auto eth0
down /sbin/resolvconf -d eth0 #iface eth0 inet static
# address 129.132.177.95
# netmask 255.255.255.192
# broadcast 129.132.177.127
# gateway 129.132.177.65
# up /bin/echo -en 'search ethz.ch\nnameserver 129.132.119.181\n' | /sbin/resolvconf -a eth0 -m 1; /usr/sbin/ifmetric eth0 1
# down /sbin/resolvconf -d eth0
# #
......
...@@ -386,12 +386,12 @@ if [ ! "$2" = "-sdsetuponly" ]; then ...@@ -386,12 +386,12 @@ if [ ! "$2" = "-sdsetuponly" ]; then
echo "Upload and register watchdogs..."; echo "Upload and register watchdogs...";
scp network/ping_watchdog.sh root@$GUMSTIX:/usr/bin/.; scp network/ping_watchdog.sh root@$GUMSTIX:/usr/bin/.;
ssh root@$GUMSTIX "sed -i '/ping_watchdog\.sh/d' /etc/crontab"; ssh root@$GUMSTIX "sed -i '/ping_watchdog\.sh/d' /etc/crontab";
ssh root@$GUMSTIX "echo \"*/2 * * * * root /usr/bin/ping_watchdog.sh carrel 8.8.8.8 10\" >> /etc/crontab"; ssh root@$GUMSTIX "echo \"*/2 * * * * root /usr/bin/ping_watchdog.sh whymper 8.8.8.8 10\" >> /etc/crontab";
fi fi
if [ ! "$2" = "-sdsetuponly" ]; then if [ ! "$2" = "-sdsetuponly" ]; then
# adjust the DHCP client # adjust the DHCP client
ssh root@$GUMSTIX "sed -i 's/\/etc\//\/var\/tmp\//g' /etc/udhcpc.d/50default"; ssh root@$GUMSTIX "sed -i 's/\/etc\/udhcpc.d/\/var\/tmp/' /etc/udhcpc.d/50default";
fi fi
echo "Creating directory needed for flocklab tests..."; echo "Creating directory needed for flocklab tests...";
......
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