The servers in the company are going to use bonding these days, the main is to do double network card redundancy, the Internet is said the most is the "FreeBSD on the double card binding to improve the bandwidth of the practice", research a bit, the results to everyone said that Linux is very simple, here is not to say, according to the online information on the line. FreeBSD a little bit difficult, engaged in a few days, the initial use of LaGG module, according to the Manual of the "link Aggregation and Failover" part to do, do is made but is not redundant, unplug the network does not pass, and finally decided to use the NG_FECG to do, the following is the process.
FreeBSD on the double NIC binding to improve the bandwidth of the practice, the 3rd part, "On the FreeBSD5 with NG_FEC implementation of dual network card binding," the first script is/sbin/kldload NG_FEC, to load NG_FEC, if you do not install this module, is not loaded.
#使用kldstat查看模块, there is no ng_fec, you need to install and load (without the-v parameter, otherwise come out a bunch, can not see it)
# Kldstat
Id Refs Address Size Name
1 1 0xffffffff80100000 8a2e40 kernel
#cd/usr/src/sys/modules/netgraph/
Install the following three modules
Netgraph FEC socket
The installation method is as follows, go directly to the appropriate directory, and then:
#make
#make Install
#ls/boot/modules
Ng_fec.ko Netgraph.ko Ng_socket.ko
#vi/boot/defaults/loader.conf
Find the Ng_fec,ether,socket and change it to yes so that it can be loaded with its own load (the system can be loaded automatically after testing)
Ng_ether_load= "YES"
Ng_fec_load= "YES"
Ng_socket_load= "YES"
Then reboot the system.
Then use Kldstat to view the load
-bash-3.2$ Kldstat
Id Refs Address Size Name
1 4 0xffffffff80100000 8a2e40 kernel
2 1 0xffffffff809a3000 104400 Ng_fec.ko
3 3 0xffffffff80aa8000 10f0d8 Netgraph.ko
4 1 0xffffffff811cb000 104000 Ng_socket.ko