26 lines
989 B
Bash
Executable file
26 lines
989 B
Bash
Executable file
#!/bin/sh
|
|
# CC 2/2/1999 horrible kludge
|
|
#
|
|
#
|
|
# Pour des raisons bizarres (bug driver SMC ? matériel ?), les interfaces
|
|
# eth1 et eth2 bloquent régulièrement.
|
|
# en général, un claquage suffit à les relancer. Par ailleurs, un claquage
|
|
# ne bloque pas les communications -- on peut donc jouer à le faire
|
|
# régulièrement.
|
|
#
|
|
|
|
#a enlever les commentaires! 19.02
|
|
# 20/01/2000 jerome reactive le script
|
|
|
|
echo "Claquage des interfaces" | /usr/bin/logger -t "Claque" -p user.warn
|
|
|
|
ifconfig eth0 down; ifconfig eth0 up; route add default gw 138.231.136.2
|
|
|
|
ifconfig eth1 down; ifconfig eth1 up 138.231.136.130 netmask 255.255.252.0 broadcast 138.231.139.255
|
|
#ifconfig eth2 down; ifconfig eth2 up
|
|
#ifconfig eth3 down; ifconfig eth3 up
|
|
|
|
#ifconfig eth2 up 138.231.138.2 netmask 255.255.255.0 broadcast 138.231.138.255
|
|
#ifconfig eth2:1 up 138.231.138.2 netmask 255.255.255.0 broadcast 138.231.138.255
|
|
#ifconfig eth1:1 down 138.231.139.2 netmask 255.255.255.0 broadcast 138.231.139.255
|
|
#ifconfig eth1 up
|