Alustuseks tehke paketi uuendused :
# apt-get update
Sidevõrgu mehhanismi kasutamiseks peate installima tuumamooduli ja seda testima:
# modprobe bonding
# lsmod | grep bond
Paigaldage juurdepääsukontrolli utiliit :
# apt-get install ifenslave
Seejärel redigeerige võrguliidese faile ja moodulifaili ning seejärel taaskäivitage server. Sidumine on edukalt konfigureeritud.
Selles näites on mõlema võrguliidese nimedeks eno1 ja eno2.
(/etc/network/interfaces):
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
#allow-hotplug eno1
auto bond0
iface bond0 inet static
slaves eno1 eno2
#iface eno1 inet static
address 192.168.1.10/25
gateway 192.168.1.1
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 8.8.8.8 8.8.4.4
dns-search ugb.ee
bond_mode 802.3ad
bond_miimon 100
bond_downdelay 200
bond_updelay 200
bond-lacp-rate 1
bond-xmit-hash-policy layer2+3
(/etc/modules):
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
bonding
Võrguliidese andmete kontrollimiseks saate kasutada utiliiti „iftop“:
# apt-get install iftop
# iftop -i bond0
# iftop -i eno1
# iftop -i eno2
Saate kontrollida oma serveri kõigi võrguliideste olekut käsuga :
# cat /proc/net/bonding/bond0