Ok, aside from the script I wrote, wich works if the interface changes it state to down (which doesn't happen on only a link failure) I got another resource. So I will share http://www.eng.auburn.edu/~doug/howtos/multipathing.html It is set up to do like I want, it may work well for others also. Jeremy Russell Network Administrator, CNI 580-272-2707 > >>Well, Thanks to all who replied. These are the resources I was pointed >>to for IPMP >> >>http://www.samag.com/documents/s=7933/sam0305a/0305a.htm >> >>http://www.sun.com/blueprints/ >> >>http://www.eng.auburn.edu/users/doug/howtos/multipathing.html >> >>http://www.sun.com/solutions/blueprints/0327-608/2011.pdf >> >>But, I ended up not using IPMP, I can't have to active IP's. >> >>So I wrote this little script to run. >> >><------------------ cut here -------------------------> >> >>#!/bin/sh >># This script will check the status of the nic, and fail over if there >>is a problem. >>PATH=/bin:/sbin:/usr/bin:/usr/sbin >> >>INTA="iprb0" >>INTB="iprb1" >>IP="10.64.16.1" >>HBIP="192.168.255.1" >> >>FAULT="$1" >> >>PING="ping -c 1 -t 1" >> >>while [ 1 = 1 ] >>do >> case $FAULT in >> 1) >> $PING $IP >>fault.log 1>&2 >> if [ $? = 1 ] >> then >> ifconfig $INTB $IP down >> ifconfig $INTB $HBIP netmask 255.255.255.252 -failover up >> ifconfig $INTA down >> ifconfig $INTA $IP netmask 255.255.0.0 failover up >> FAULT=2 >> fi >> ;; >> 2) >> $PING $IP >>fault.log 1>&2 >> if [ $? = 1 ] >> then >> ifconfig $INTA $IP down >> ifconfig $INTA $HBIP netmask 255.255.255.252 -failover up >> ifconfig $INTB down >> ifconfig $INTB $IP netmask 255.255.0.0 failover up >> FAULT=1 >> fi >> sleep 1 >> ;; >> reset) >> ifconfig $INTB down >> ifconfig $INTB $HBIP netmask 255.255.255.252 -failover up >> ifconfig $INTA down >> ifconfig $INTA $IP netmask 255.255.0.0 failover up >> ;; >> *) >> echo "usage: $0 { 1 | 2 | reset } ( where 1 or 2 is the STANDBY >>nic )" >> exit >> ;; >> esac >>done >> >><----------------------- Cut again >>-------------------------------------> >> >> >>The only problem is this will only fail over on a complete interface >>failure, A link failure will don nothing. Does anyone have a take on >>what I might do to sense a link failure (some ifconfig option maybe?). >> >>Thanks for the help!! >> >> >>Jeremy Russell >>Network Administrator, CNI >>580-272-2707 >>_______________________________________________ >>sunmanagers mailing list >>sunmanagers@sunmanagers.org >>http://www.sunmanagers.org/mailman/listinfo/sunmanagers _______________________________________________ sunmanagers mailing list sunmanagers@sunmanagers.org http://www.sunmanagers.org/mailman/listinfo/sunmanagersReceived on Thu May 1 17:23:41 2003
This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:43:10 EST