This shows you the differences between two versions of the page.
|
interface_bonding [2011/10/25 07:51] root created |
interface_bonding [2012/05/30 10:21] (current) root [Bonding two network interfaces in active/passive configuration] |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Interface bonding ====== | ====== Interface bonding ====== | ||
| + | |||
| + | ===== Bonding two network interfaces in active/passive configuration ===== | ||
| + | |||
| + | Directory /etc/sysconfig/network-scripts | ||
| + | |||
| + | ifcfg-bond0: | ||
| + | DEVICE=bond0 | ||
| + | IPADDR=<Server IP> | ||
| + | NETMASK=<Server Netmask> | ||
| + | GATEWAY=<Server Gateway> | ||
| + | ONBOOT=yes | ||
| + | BOOTPROTO=none | ||
| + | USERCTL=no | ||
| + | BONDING_OPTS="mode=1 miimon=100" | ||
| + | TYPE=Ethernet | ||
| + | | ||
| + | ifcfg-eth0: | ||
| + | DEVICE=eth0 | ||
| + | BOOTPROTO=none | ||
| + | ONBOOT=yes | ||
| + | MASTER=bond0 | ||
| + | SLAVE=yes | ||
| + | USERCTL=no | ||
| + | |||
| + | ifcfg-eth1: | ||
| + | DEVICE=eth1 | ||
| + | ONBOOT=yes | ||
| + | BOOTPROTO=none | ||
| + | MASTER=bond0 | ||
| + | SLAVE=yes | ||
| + | BOOTPROTO=none | ||
| + | TYPE=Ethernet | ||
| + | |||
| + | Directory /etc/modprobe.d\\ | ||
| + | File bonding.conf should look like this: | ||
| + | alias bond0 bonding | ||
| + | |||
| + | In RHEL6 to avoid the message "Use CAP_NET_ADMIN and alias netdev-bond0 instead" the /etc/modprobe.d/bonding.conf should read: | ||
| + | |||
| + | alias netdev-bond0 bonding | ||
| + | |||
| + | |||
| + | **Please note::** placing bonding options in modprobe file is deprecated. | ||
| ===== Bonding module can not be loaded ===== | ===== Bonding module can not be loaded ===== | ||