Hier werden die Unterschiede zwischen zwei Versionen gezeigt.
| Nächste Überarbeitung | Vorherige Überarbeitung | ||
|
admin_grundlagen:bonding [2012/07/03 22:34] ingo_wichmann angelegt |
admin_grundlagen:bonding [2012/07/03 23:04] (aktuell) ingo_wichmann |
||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| - | Vorraussetzung: [[netzwerk]] | + | Vorraussetzung: [[netzwerk]] mit eth0 und eth1 getestet |
| + | |||
| + | ethtool eth0 | grep 'Link detected: yes' | ||
| + | ethtool eth1 | grep 'Link detected: yes' | ||
| + | |||
| + | ''/etc/modprobe.conf.local'' : SLES 11SP1 | ||
| + | |||
| + | ''/etc/modprobe.d/bonding.conf'' : CentOS 5 | ||
| + | |||
| + | <file> | ||
| + | alias bond0 bonding | ||
| + | options bonding miimon=100 mode=0 use_carrier=0 | ||
| + | </file> | ||
| + | |||
| + | ==== SLES 11SP1 ==== | ||
| + | ''/etc/sysconfig/network/ifcfg-bond0'' : | ||
| + | <file> | ||
| + | BOOTPROTO='dhcp4' | ||
| + | STARTMODE='onboot' | ||
| + | NAME='bonding device' | ||
| + | BONDING_MASTER=yes | ||
| + | BONDING_SLAVE_0='eth0' | ||
| + | BONDING_SLAVE_1='eth1' | ||
| + | </file> | ||
| + | |||
| + | mv /etc/sysconfig/network/ifcfg-eth0{,.bak} | ||
| + | mv /etc/sysconfig/network/ifcfg-eth1{,.bak} | ||
| + | |||
| + | service network restart | ||
| + | |||
| + | ==== CentOS 5 ==== | ||
| + | ''/etc/sysconfig/network/ifcfg-bond0'' : | ||
| + | <file> | ||
| + | DEVICE=bond0 | ||
| + | ONBOOT=yes | ||
| + | BOOTPROTO=dhcp | ||
| + | USERCTL=no | ||
| + | BONDING_OPTS="miimon=100 mode=0 use_carrier=0" | ||
| + | </file> | ||
| + | |||
| + | ''/etc/sysconfig/network/ifcfg-eth0'' : | ||
| + | <file> | ||
| + | DEVICE=eth0 | ||
| + | BOOTPROTO=none | ||
| + | ONBOOT=yes | ||
| + | MASTER=bond0 | ||
| + | SLAVE=yes | ||
| + | USERCTL=no | ||
| + | </file> | ||
| + | |||
| + | ''/etc/sysconfig/network/ifcfg-eth1'' : | ||
| + | <file> | ||
| + | DEVICE=eth1 | ||
| + | BOOTPROTO=none | ||
| + | ONBOOT=yes | ||
| + | MASTER=bond0 | ||
| + | SLAVE=yes | ||
| + | USERCTL=no | ||
| + | </file> | ||
| + | |||
| + | service network restart | ||