- 論壇徽章:
- 0
|
硬件:Dell 2950, 三塊網(wǎng)卡
軟件:ubuntu 8.10
eth0,eth2是服務器自帶的boardcom的
eth1后來加的intel的
當然要綁一樣芯片的
先裝個綁定用的工具
apt-get install ifenslave-2.6
修改/etc/modules,加一行
bonding
這樣就啟動可以自動加載bonding模塊了,當然現(xiàn)在要先手工加載
modprobe bonding
ifconfig -a 看看,這時應該有塊名為bond0的網(wǎng)卡
編輯/etc/network/interfaces
加入以下信息
iface bond0 inet static
address 10.1.1.11
netmask 255.255.255.0
#gateway 10.1.1.1 ------> (eth1設(shè)置了默認網(wǎng)關(guān),所以這里沒設(shè))
up /sbin/ifenslave bond0 eth0
up /sbin/ifenslave bond0 eth2
auto bond0
vi /etc/modprobe.d/arch/x86_64 ------->俺裝的是64bit的版本
加一行
option bonding mode=0 miimon=100
完工,似乎很簡單,呵呵
重啟了一下,貌似都可以起來
本文來自ChinaUnix博客,如果查看原文請點:http://blog.chinaunix.net/u/12409/showart_1404963.html |
|