B
blah
Guest
I need to do the FreeBSD 6.1 equivalent of linux's failover nic bonding. From searching around it looks like the only possibility prior to LAGG is to use ng_one2many. I haven't found any specific examples of this, because I do not need load balancing and cannot allow packet duplication. Basically, this is to allow one physical server with two nics to survive switch or nic failure. Each nic is connected to a different switch, both on the same vlan.
So, assuming this is even possible, I found a guide with a similar example that I was trying: http://groups.google.com/group/freebsd/browse_thread/thread/0bc6f0c2d53015f9
excerpt:
My real interfaces are bge0 and bge1. When I follow this guide, when I get to "ngctl connect bge0: ngeth0:upper lower many0", I get the "ngctl: send msg: No such file or directory" error. I cannot figure out why.
-kldstat shows netgraph.ko, ng_one2many.ko, ng_ether.ko, ng_eiface.ko are all loaded.
-syntax of the command looks correct to me: "ngctl connect bge0: ngeth0:upper lower many0"
-when I run ngctl list, I see bge0, bge1, ngeth0, an unamed eiface and the default ng1922 socket
-I've tried it with the real interfaces up with dhcp, and downed. Same result.
Any idea what I am doing wrong here? Is this even on the right track to accomplishing my goal?
Thanks.
So, assuming this is even possible, I found a guide with a similar example that I was trying: http://groups.google.com/group/freebsd/browse_thread/thread/0bc6f0c2d53015f9
excerpt:
Code:
######### SNIP ##########
#load necessary modules
kldload ng_ether
kldload ng_one2many
# create virtual interface
ngctl mkpeer . eiface hook ether
ngctl mkpeer ngeth0: one2many upper one
# connect real interfaces to ngeth0
ngctl connect vr0: ngeth0:upper lower many0
ngctl connect de0: ngeth0:upper lower many1
# setting real interfaces up
ifconfig vr0 up -arp
ifconfig de0 up -arp
...SNIP
-kldstat shows netgraph.ko, ng_one2many.ko, ng_ether.ko, ng_eiface.ko are all loaded.
-syntax of the command looks correct to me: "ngctl connect bge0: ngeth0:upper lower many0"
-when I run ngctl list, I see bge0, bge1, ngeth0, an unamed eiface and the default ng1922 socket
-I've tried it with the real interfaces up with dhcp, and downed. Same result.
Any idea what I am doing wrong here? Is this even on the right track to accomplishing my goal?
Thanks.