Instalação Primeiro instale o pacote ifenslave-2.6, necessario para ativar bonding:
# apt-get install ifenslave-2.6
Shutdown / Desconfigure Interfaces Existentes
# ifdown eth0 (Repeat for all interfaces included in the bond)
# /etc/init.d/networking stop
Configuração
Modifique o arquivo /etc/network/interfaces:
auto bond0
iface
bond0 inet static
address 10.31.1.5
netmask 255.255.255.0
network 10.31.1.0
gateway 10.31.1.254
slaves eth0 eth1
bond-mode active-backup
bond-miimon 100
bond-downdelay 200
bond-updelay 200
Iniciando nova interface
# ifup bond0
# /etc/init.d/networking start
cat /sys/class/net/bond0/bonding/mode
Nenhum comentário:
Postar um comentário