Bonding

De whats Wiki

Dreceres ràpides: navegació, cerca

Contingut

INTRODUCCIÓ

El mòdul bonding serveix per balancejar la càrrega, i per oferir redundància.

NOTES

Mirar els logs per a més imformació


COMANDES

Carregar el mòdul amb mode 2

modprobe bonding mode=2

Afegir dues interfícies al bonding

ifenslave bond0 eth0 eth1

DEBIAN /etc/network/inferfaces

iface bond0 inet static
       address 10.31.1.5
       netmask 255.255.255.0
       network 10.31.1.0
       gateway 10.31.1.254
       up /sbin/ifenslave bond0 eth0 eth1
       down /sbin/ifenslave -d bond0 eth0 eth1

REDHAT /etc/sysconfig/network-scripts/*

DEVICE=bond0
BOOTPROTO=none
ONBOOT=yes
NETWORK=10.0.1.0
NETMASK=255.255.255.0
IPADDR=10.0.1.27
USERCTL=no
DEVICE=eth<N>
BOOTPROTO=none
ONBOOT=yes
MASTER=bond0
SLAVE=yes
USERCTL=no

REDHAT /etc/modprobe.conf

alias bond0 bonding
options bond0 miimon=80 mode=5

Comanda

modprobe bonding -o bond<N> miimon=80 mode=5