Bonjour,
Je suis sous Squeeze.
J’aimerai faire deux bonding avec deux modes différents pour des problèmes matériels.
bond0 en mode Round Robin
bond1 en mode Active Backup
J’avais une configuration avec le même mode sous Lenny du style :
alias bond0 bonding
options bond0 mode=0 miimon=100 max_bonds=2
alias bond1 bonding
options bond1 mode=0 miimon=100 max_bonds=2
Ce qui devrait donner :
alias bond0 bonding
options bond0 mode=0 miimon=100 max_bonds=2
alias bond1 bonding
options bond1 mode=1 miimon=100 max_bonds=2
Cette configuration me permet bien de démarrer les deux interfaces bond0 et bond1, mais ces deux interfaces sont en mode Round Robin après reboot :
cat /proc/net/bonding/bond0
Ethernet Channel Bonding Driver: v3.5.0 (November 4, 2008)
Bonding Mode: load balancing (round-robin)
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 0
Slave Interface: eth0
MII Status: up
Link Failure Count: 0
Permanent HW addr: 00:xx:xx:xx:xx:xx
Slave Interface: eth1
MII Status: up
Link Failure Count: 0
Permanent HW addr: xx:xx:xx:xx:xx:xx
et
cat /proc/net/bonding/bond1
Ethernet Channel Bonding Driver: v3.5.0 (November 4, 2008)
Bonding Mode: load balancing (round-robin)
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 0
Slave Interface: eth2
MII Status: up
Link Failure Count: 0
Permanent HW addr: 00:xx:xx:xx:xx:xx
Slave Interface: eth3
MII Status: up
Link Failure Count: 0
Permanent HW addr: xx:xx:xx:xx:xx:xx
J’ai également essayé ca, mais sans plus de succès car bond1 ne démarre même pas:
install bond0 /sbin/modprobe --ignore-install bonding mode=0 miimon=100
install bond1 /sbin/modprobe --ignore-install bonding mode=1 miimon=10
Merci d’avance pour votre aide.