Sorry for the delay in getting this summary back.
-----Original Message-----
Solaris 2.6 / 7 on Enterprise machines.
I am considering putting secondary network interfaces in my servers to
provide redundancy.
Can anyone point me at some good web sites outlining how to get this 'fail
over' working?
I'm guessing I can do this at the Unix level without the need for additional
software?
Replies:
===========
Infodoc 17018 available from sunsolve online.
==========
That depends on a couple of things:
1) Is the failover interface going to be the same network as the original?
a) If so, Is the interface going to be ifconfig'd up always or just
when the original goes down
b) if it is always up, the OS will make accomodations to use the
good network path if one goes down.
2) If the failover interface is going to be a total different network, then
it can stay up, but accomodations need to be made in the apps, to check if
the original is up, if down use the secondary.
So it all depends on how it is going to be utilized.
Hope it helps.
Bryan Moore
Systems Administrator
E.W. Scripps
===========
Sun Trunking seems to be the only way to get this in the past. The Solaris8
10/00 release says that it has something along these lines however. Good
Luck,
Gary
===========
here's a quick and dirty script i wrote...
its not fancy, but it does work...
just replace the interface names and netmasks and gateways etc.... you
can also build on this one, tweak it.. just giving you an option :)
#!/bin/sh
###################################
# Failover script to have int
# 1 take over for 0 if
# 0 dies, or has cable unplugged
#
# ed crotty
# ecrotty@vantage.com
###################################
# start a counter called count at 0
count=0
# start a loop (3) that pings until default gateway is no longer reachable
while [ "$count" -lt 3 ]
do
echo "Pinging gw.ip.gw.ip...."
/usr/sbin/ping gw.ip.gw.ip
# grab the status of the ping .. 0 - successful !=0 - unsuccessful
status=$?
# print out status.. debugging purposes
echo "Ping status = $status"
# If the status is not 0 add one to count
if [ $status != 0 ]; then
count=`expr $count + 1`
fi
# print out how many times we missed the default gateway
echo "We have failed to ping the default gateway $count times."
echo ""
# wait 45 seconds before starting the proccess again
sleep 45
done
# If we get down here its time to failover to int1
echo "We have failed to ping the default gateway $count times (MAX)."
echo "Failing over int0..."
# shutdown int0
/usr/sbin/ifconfig int0 unplumb
# startup int1
/usr/sbin/ifconfig int1 plumb
# config ip for int1
/usr/sbin/ifconfig int1 ip.ip.ip.ip up
# config netmask for int1
/usr/sbin/ifconfig int1 netmask 255.255.255.0
# wait 30 seconds
sleep 30
# ping out to the default gateway to make sure int1 is sane
/usr/sbin/ping gw.ip.gw.ip
==========
Hi!
It's very simple. But you can find some useful information
on http://docs.sun.com "TCP/IP and Data Communications Administration
Guide"
in Solaris 7 System Administration Collection. Search the title "Creating a
Multihomed Host".
Best regards.
Andrew Petrov
Unix SA
Impexbank,branch in Nizhny Novgorod, Russia.
===========
Cheers for all your help and i'll post any discoveries i make.
Annie
***************************************************************************
CONFIDENTIALITY NOTICE
The contents of this e-mail are confidential to the ordinary user
of the e-mail address to which it was addressed, and may also
be privileged. If you are not the addressee of this e-mail you may
not copy, forward, disclose or otherwise use it or any part of it
in any form whatsoever.
If you have received this e-mail in error, please e-mail the sender
by replying to this message.
MTV Networks Europe
*****************************************************************************
S
U BEFORE POSTING please READ the FAQ located at
N ftp://ftp.cs.toronto.edu/pub/jdd/sun-managers/faq
. and the list POLICY statement located at
M ftp://ftp.cs.toronto.edu/pub/jdd/sun-managers/policy
A To submit questions/summaries to this list send your email message to:
N sun-managers@sunmanagers.ececs.uc.edu
A To unsubscribe from this list please send an email message to:
G majordomo@sunmanagers.ececs.uc.edu
E and in the BODY type:
R unsubscribe sun-managers
S Or
. unsubscribe sun-managers original@subscription.address
L To view an archive of this list please visit:
I http://www.latech.edu/sunman.html
S
T
This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:14:21 CDT