Make two network cards act as one

How is this done with freebsd FreeBSD? In Linux you create a bond0 adn and two salve files, 1 one for each nice (whatever --mod), and then add a bonding.conf file to /etc/modprobe.d/.

Different policies of active passive or active active make networks more tolerant of failure.

How do you configure that in fbsd FreeBSD?
 
You would use the network bridge device if_bridge(4)() for this.

Assuming your NICs are em0 and em1, placing something like the following in /etc/rc.conf would suffice to bring-up both NICs into bridged mode on restart, having the one common (bridged) network address.

Code:
cloned_interfaces="bridge0"
ifconfig_em0="up"
ifconfig_em1="up"
ifconfig_bridge0="inet 192.168.0.1/24 addm em0 addm em1"

This is not limited to two NICs.
 
idaho-axe said:
http://www.freebsd.org/cgi/man.cgi?query=lagg&sektion=4

What I want is: two network cards share 1 one IP. Unplug 1 one. The second keeps working. I think this is called cloned interface in freebsd FreeBSD. I can't find an example of setting this in rc.conf. Can someone provide an example?

There is no example of the config files for a cloned interface.

Sigh, who keeps rewriting my posts and getting them mixed up???
 
idaho-axe said:
Sigh, who keeps rewriting my posts and getting them mixed up?
Sigh, since you appear to entirely ignore every notice or warning sent to you via PM, I'll have one shot (and no more) at answering this.

Your posts are edited by moderators because, despite several warnings, you still refuse to write properly. You don't format your posts at all, you put pretty much every sentence in it's own paragraph, you don't start sentences with capital letters, you don't terminate sentences with punctuation, you consistently refuse to properly spell FreeBSD, you keep sprinkling Twitter/IM/SMS lingo through your posts, etc.

Please note that moderation issues are not normally discussed in public. For more information, I suggest you start reading the PMs that were sent to you.
 
Oh, and to actually answer your question:
idaho-axe said:
What I want is: two network cards share one IP. Unplug one. The second keeps working. I think this is called cloned interface in FreeBSD. I can't find an example of setting this in rc.conf. Can someone provide an example?
More precisely, it's "network aggregation in failover mode". For examples, see this section of the FreeBSD Handbook. You'll probably want examples 32.2 and/or 32.3.
 
This is an example rc.conf snippet:
Code:
ifconfig_ix0="up"
ifconfig_ix1="up"
cloned_interfaces="$cloned_interfaces lagg0"
ifconfig_lagg0="laggproto failover laggport ix0 laggport ix1 10.0.0.2/24"
 
idaho-axe said:
I need an example of lagg done not by hand but with configuration files, and not bridging.

I'm using the following in /etc/rc.conf:
Code:
cloned_interfaces="lagg0"
ifconfig_bge0="up"
ifconfig_bge1="up"
ifconfig_lagg0="up laggproto failover laggport bge0 laggport bge1 1.2.3.4/24"
 
Back
Top