Difference between revisions of "Debian: network bonding"

From OnnoWiki
Jump to navigation Jump to search
(Created page with "Install apt-get install ifenslave Interface Down ifdown eth0 (Repeat for all interfaces included in the bond) ifdown enp3s0 ifdown enp2s0 /etc/init.d/networking stop...")
 
Line 2: Line 2:
  
 
  apt-get install ifenslave
 
  apt-get install ifenslave
 
+
apt -y install ifenslave
  
 
Interface Down
 
Interface Down

Revision as of 17:57, 26 February 2022

Install

apt-get install ifenslave
apt -y install ifenslave

Interface Down

ifdown eth0 (Repeat for all interfaces included in the bond)
ifdown enp3s0
ifdown enp2s0
/etc/init.d/networking stop

Modify the /etc/network/interfaces file:

auto bond0
iface bond0 inet static
    address 192.168.0.7
    netmask 255.255.255.0
    network 192.168.0.0
    gateway 192.168.0.222
    bond-slaves enp2s0 enp3s0
    bond-mode active-backup
    bond-miimon 100
    bond-downdelay 200
    bond-updelay 200