redundant ethernet interfaces

From: Marko Lerota (marko.lerota_at_optima-telekom.hr)
Date: 02/18/05

  • Next message: Gleb Smirnoff: "Re: redundant ethernet interfaces"
    To: freebsd-net@freebsd.org
    Date: Fri, 18 Feb 2005 09:23:09 +0100
    
    

    I have two nic bge0 and bge0, and I would like them
    to have the same IP address in case that my redundant
    switch stop responding. Bridge is not an option,
    I tried with netgraph but I did not succeed.
    Does anyone have some solution?

    I followed the examples from google groups and I stuck with
    duplicated packets when both ethernets are plugged and
    50% packet loss when one ethernet is unplugged, damn !!#@!#@!$%^@$#@

    here is my config

    rc.conf
    ifconfig_bge0="1.2.3.4 netmask 255.255.0.0 media 100baseTX mediaopt
    full-duplex"
    ifconfig_bge1="media 100baseTX mediaopt full-duplex"

    and /usr/local/etc/rc.d/bonding.sh

     #!/bin/sh
    ifconfig bge1 up
    kldload /boot/kernel/ng_ether.ko
    kldload /boot/kernel/ng_one2many.ko
    ngctl mkpeer bge0: one2many upper one
    ngctl connect bge0: bge0:upper lower many0
    ngctl connect bge1: bge0:upper lower many1
    ngctl msg bge1: setpromisc 1
    ngctl msg bge1: setautosrc 0
    ngctl msg bge0:upper setconfig "{xmitAlg=1 failAlg=1 enabledLinks =[ 1
    1 ] }"

    manual for this sucks

    -- 
    One cannot sell the earth upon which the people walk
                                   			Tacunka Witco 
    _______________________________________________
    freebsd-net@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-net
    To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"
    

  • Next message: Gleb Smirnoff: "Re: redundant ethernet interfaces"

    Relevant Pages

    • Re: redundant ethernet interfaces
      ... M> I have two nic bge0 and bge0, ... M> kldload /boot/kernel/ng_one2many.ko ... M> ngctl connect bge0: bge0:upper lower many0 ... M> ngctl msg bge1: setpromisc 1 ...
      (freebsd-net)
    • Re: redundant network cards
      ... kldload /boot/kernel/ng_one2many.ko ... ngctl mkpeer bge0: one2many upper one ... ngctl connect bge0: bge0:upper lower many0 ... ngctl msg bge1: setpromisc 1 ...
      (comp.unix.bsd.freebsd.misc)