<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<font face="Helvetica, Arial, sans-serif">I'm using bonding in
active-fallback mode to guarantee maximum availability on some critical
servers.<br>
The mii mode is active so I can detect things like dead card and/or
unplugged cable even on the inactive slave.<br>
But how do I check that the inactive slave is properly
configured/connected to the switch/vlan?<br>
I ask this question because it has just bitten me in a part I'll keep
undisclosed.<br>
<br>
Scenario:<br>
your bond0 is running fine. it uses eth0 as active slave and eth2 as
inactive slave (different cards/ different driver to be safe)<br>
some bozo reconfigures the switch port where your eth2 is plugged in
and you don't notice it (the crucial point here)<br>
later on, your eth0 dies (or is unplugged by the brother of the first
bozo)<br>
and bamm... your nice HA node is off-line.<br>
note: eth2 is still plugged and fine at the mii level.<br>
even an arp would return OK so going from mii to arp for the bond is
not the right option.<br>
<br>
So. How could I check that an IP packet send via eth2 would really
reach its vlan?<br>
I tried a probably naive thing:<br>
ifenslave -d bond0 eth2<br>
ifconfig eth2 $ip netmask 255.255.255.255<br>
route add -host $target eth2<br>
ping $target<br>
(target is the gateway, ip is a reserved IP used only on this server to
do that check)<br>
but it does not work as I hopped. Sometimes the ping is OK (but goes
thru bond0) sometimes it blocks...<br>
The real question is How to do it properly (rather than how to fix my
naive try).<br>
<br>
Thank you for your help.<br>
<br>
&nbsp;&nbsp;&nbsp; Olivier<br>
<br>
<br>
<br>
<br>
<br>
<br>
</font>
</body>
</html>