Initial revision
darcs-hash:20000521125243-92525-6092ab1d3efe6df9898549afb0aa3c7d43983e8b.gz
This commit is contained in:
commit
f1d3de9de7
26 changed files with 621 additions and 0 deletions
26
claque-interfaces
Executable file
26
claque-interfaces
Executable file
|
@ -0,0 +1,26 @@
|
|||
#!/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
|
||||
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
|
Loading…
Add table
Add a link
Reference in a new issue