You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

57 lines
818 B

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