domingo, 17 de abril de 2011

Instalação e Configuração de Agregacao de Links de rede

Primeiramente sempre é bom atualizar ne.
#apt-get update
#apt-get install ifenslave-2.6

Em seguida , carregar o modulo na memoria
#modprobe bonding

Depois conferir se esta ok
#lsmod | grep bonding

Editar as conexoes e acrescentar o conteudo abaixo
#vim /etc/network/interfaces

# Interface bonding
# Static IP address
auto bond0
iface bond0 inet static
        address 192.168.0.1
        netmask 255.255.255.0
        network 192.168.0.0
        broadcast 192.168.0.255
        gateway 192.168.0.2
        up /sbin/ifenslave bond0 eth0 eth1
        down /sbin/ifenslave -d bond0 eth0 eth1

*Lembre-se de comentar as interfaces eth0 e eth1

Finalizando , é so reiniciar
#/etc/init.d/networking restart


Para verificar se ficou ok
#ifconfig

É para aparecer uma nova interface chamada bond0