Difference between revisions of "Linux: Interface BONDING"
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
	
| Onnowpurbo (talk | contribs) | Onnowpurbo (talk | contribs)  | ||
| Line 30: | Line 30: | ||
| − |   #  | + |   # enp3s0 is manually configured, and slave to the "bond0" bonded NIC | 
| − |   auto  | + |   auto enp3s0 | 
| − |   iface  | + |   iface enp3s0 inet manual   | 
|       bond-master bond0 |       bond-master bond0 | ||
| − |       bond-primary  | + |       bond-primary enp3s0 | 
| − |   #  | + |   # enp4s3 ditto, thus creating a 2-link bond. | 
| − |   auto  | + |   auto enp4s3 | 
| − |   iface  | + |   iface enp4s3 inet manual | 
|       bond-master bond0 |       bond-master bond0 | ||
| Line 50: | Line 50: | ||
|       bond-mode active-backup |       bond-mode active-backup | ||
|       bond-miimon 100 |       bond-miimon 100 | ||
| − |       bond-slaves none   | + |       bond-slaves none | 
| − | |||
| ==Aktifasi Bonding== | ==Aktifasi Bonding== | ||
Revision as of 05:44, 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
Cek
cat /proc/net/bonding/bond0
ifconfig