1 |
On Wednesday 07 November 2007 18:30:22 kashani wrote: |
2 |
> > Does anyone have any suggestions, or comments, or criticisms? Anybody |
3 |
> > konw how to do a thing like that? |
4 |
> |
5 |
> First off don't assign separate IPs to each port on your four port card, |
6 |
> bond them into a single interface. That will simplify your config and |
7 |
> perform better. |
8 |
|
9 |
Yup, bonding is really cool, and trivially simple to setup. |
10 |
Enable CONFIG_BONDING as a module, in "Network device support". Install |
11 |
ifenslave, then edit /etc/modules.d/bond, like this: |
12 |
|
13 |
alias bond1 bonding |
14 |
options bond1 mode=1 miimon=100 max_bonds=5 |
15 |
|
16 |
You probably want mode 0, I use mode 1 for redundancy only. Then change your |
17 |
net config to something like this: |
18 |
|
19 |
config_eth0=( "null" ) |
20 |
config_eth4=( "null" ) |
21 |
RC_NEED_bond1="net.eth0 net.eth4" |
22 |
slaves_bond1="eth0 eth4" |
23 |
config_bond1=( "192.168.1.1/24" ) |
24 |
|
25 |
Then you use bondX from then on (no net.ethX should be in any runlevel). |
26 |
|
27 |
-- |
28 |
Mike Williams |
29 |
-- |
30 |
gentoo-user@g.o mailing list |