Difference between revisions of "Linux: Interface BONDING"

From OnnoWiki
Jump to navigation Jump to search
Line 55: Line 55:
  
 
  sudo start networking
 
  sudo start networking
 +
 +
 +
Atau
 +
 +
ifup bond0
 +
ifdown bond0
  
 
==Cek==
 
==Cek==

Revision as of 05:54, 30 September 2019

Sumber: https://help.ubuntu.com/community/UbuntuBonding


Aktifkan Module

sudo su
vi /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.

loop
lp
rtc
bonding

Aktifkan module

modprobe --first-time bonding
modprobe bonding
modinfo bonding | more


Edit Interface

sudo vi /etc/network/interfaces


# enp3s0 is manually configured, and slave to the "bond0" bonded NIC
auto enp3s0
iface enp3s0 inet manual 
    bond-master bond0
    bond-primary enp3s0

# enp4s3 ditto, thus creating a 2-link bond.
auto enp4s3
iface enp4s3 inet manual
    bond-master bond0

# bond0 is the bonding NIC and can be used like any other normal NIC.
# bond0 is configured using static network information.
auto bond0
iface bond0 inet static
    address 192.168.1.10
    gateway 192.168.1.1
    netmask 255.255.255.0
    bond-mode active-backup
    bond-miimon 100
    bond-slaves none

Aktifasi Bonding

sudo start networking


Atau

ifup bond0
ifdown bond0

Cek

cat /proc/net/bonding/bond0
ifconfig

Referensi