Kod: Zaznacz cały
auto bond0
iface bond0 inet static
address 192.168.1.10
netmask 255.255.255.0
gateway 192.168.1.1
up /sbin/ifenslave bond0 eth0 eth1
down /sbin/ifenslave -d bond0 eth0 eth1
primary eth0
Kod: Zaznacz cały
$cat /etc/modprobe.d/aliases-bond.conf
alias bond0 bonding
options bonding mode=1 arp_interval=2000 arp_ip_target=192.168.1.10
Kod: Zaznacz cały
$cat /proc/net/bonding/bond0
Ethernet Channel Bonding Driver: v3.5.0 (November 4, 2008)Bonding Mode: fault-tolerance (active-backup)
Primary Slave: None
Currently Active Slave: eth1
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 200
Down Delay (ms): 200
Slave Interface: eth0
MII Status: up
Link Failure Count: 1
Permanent HW addr: 00:1a:4b:ea:6a:64
Slave Interface: eth1
MII Status: up
Link Failure Count: 0
Permanent HW addr: 00:1a:4b:ea:6a:62