Linux
bonding †
- Shell
sudo apt-get update
sudo apt-get install ifenslave
- sudo vi /etc/modprobe.d/bonding
alias bond0 bonding
options bonding mode=0 miimon=100
- Shell
sudo modprobe bonding
sudo echo bonding >> /etc/modules
- sudo vi /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet manual
#NetworkManager#iface eth0 inet dhcp
auto eth1
iface eth1 inet manual
auto bond0
iface bond0 inet static
address 192.168.1.43
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
dns-nameservers 192.168.1.37 192.168.1.1
dns-search tar3.net
slaves eth0 eth1
up ifenslave bond0 eth0 eth1
down ofenslave -d bond0 eth0 eth1
|