#!/usr/bin/env bash DESC="Configuration de s2." run() { . common.sh name="s2" startAndWaitSsh $name configBase $name cat << EOF | setHosts s2 127.0.0.1 localhost 192.168.6.2 s2 192.168.1.2 s1 192.168.2.1 r1 192.168.4.1 r2 192.168.6.1 r3 192.168.8.1 r4 192.168.7.1 r5 EOF cat << EOF | setInterfaces s2 # The loopback network interface auto lo iface lo inet loopback auto eth0 iface eth0 inet static address 192.168.6.2 netmask 255.255.255.0 EOF endConfig }