自己家裡其實用不到這麼強悍的配置,不過既然主板自帶兩個r8168網卡,那閒著也是閒著,干脆還是配置起來。
在Windows下面配置復雜的多網卡負載均衡在Linux下面無比簡單。
首先是安裝ifenslave,這個在Ubuntu下面就一指令:
sudo apt-get install ifenslave
然後修改/etc/modprobe.d/arch/ 文件,如果是32位的系統,是i386,如果是64位Intel系統,是x86_64。
加入以下內容:
alias bond0 bonding
options bond0 mode=balance-alb miimon=100 max_bonds=2
最後修改/etc/network/interfaces,把原來的eth0,eth1配置注釋掉,加入下面的內容:
auto bond0
iface bond0 inet static
address 192.168.1.3
netmask 255.255.255.0
gateway 192.168.1.1
up /sbin/ifenslave bond0 eth0 eth1
down /sbin/ifenslave -d bond0 eht0 eth1
OK,重啟一下,讓網卡負載均衡功能啟用。就這麼簡單了。