Click here to load reader
Upload
asociatia-prolinux
View
562
Download
2
Embed Size (px)
Citation preview
Linux bonding meets sysfs
(sau ce te faci cand CONFIG_BONDING=y)
Petru Ratiu – aprilie 2011
The usual way
● modprobe bonding mode=1 miimon=100● alias bond0 bondingoptions bond0 mode=active-failover miimon=100
The “OMG it's buit in!” way
echo “ +bond0” > /sys/class/net/bonding_masters
echo "active-backup" > \ /sys/class/net/bond0/bonding/mode
echo “ 100” > /sys/class/net/bond0/bonding/mode
The “let's pretend we don't have ifenslave” bonus slide
ifconfig bond0 up
echo “ +eth0” > \ /sys/class/net/bond0/bonding/slaves
echo “ +eth1” > \ /sys/class/net/bond0/bonding/slaves
But why?
● Interfete multiple● Reconfigurari fara reboot● Probleme la modprobe -o bond0● Distributii fara scripturi gata facute ;)