Linux: Interface BONDING

From OnnoWiki
Revision as of 05:43, 30 September 2019 by Onnowpurbo (talk | contribs)
Jump to navigation Jump to search

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


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

# eth1 ditto, thus creating a 2-link bond.
auto eth1
iface eth1 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

Cek

cat /proc/net/bonding/bond0
ifconfig

Referensi