On 10-11-2011 23:02, Ben Franklan wrote:
> Hi all,
> I set up FW1 and FW2 with trunk and CARP - If I set up the trunk
> interface using trunkproto lacp and also specify a carppeer FW1 carp
> interface does not return to master upon reboot and FW1 has 'carp
> demote count 1'. I tried with various switch settings (lacp/active,
> passive), em and bge interfaces, and the hosts plugged directly into
> each other(no other switches to test with). I could bring everything
> back to normal by doing carpdemote 100 on FW2.
> 
> I finally starting mucking around with the start up scripts and this
> ineloquently 'fixes' the issue for me.
> # diff -u -b /etc/netstart.orig /etc/netstart
> --- /etc/netstart.orig  Thu Nov 10 12:39:22 2011
> +++ /etc/netstart       Thu Nov 10 13:31:02 2011
> @@ -263,7 +263,9 @@
>  # The trunk interfaces need to come up first in this list.
>  # The (s)vlan interfaces need to come up after trunk.
>  # Configure all the carp interfaces which we know about before default route.
> -ifmstart "trunk svlan vlan carp"
> +ifmstart "trunk"
> +sleep 10
> +ifmstart "svlan vlan carp"

You can put that sleep in the hostname.trunk file using "!sleep 10".

It's not uncommon to use a sleep to wait for layer 2 protocols to
settle.  I sometimes use a sleep on the "last" physical interface if any
of the interfaces are connected to a switch where spanning tree has to
enable forwarding on the port.

This prevents carp problems where the booted system becomes master for a
while, because the link is up but the carp traffic is not forwarded yet.

--
Cam

Reply via email to