petru ratiu - linux bonding meets sysfs

5

Click here to load reader

Upload: asociatia-prolinux

Post on 19-Jun-2015

562 views

Category:

Technology


2 download

TRANSCRIPT

Page 1: Petru Ratiu - Linux bonding meets sysfs

Linux bonding meets sysfs

(sau ce te faci cand CONFIG_BONDING=y)

Petru Ratiu – aprilie 2011

Page 2: Petru Ratiu - Linux bonding meets sysfs

The usual way

● modprobe bonding mode=1 miimon=100● alias bond0 bondingoptions bond0 mode=active-failover miimon=100

Page 3: Petru Ratiu - Linux bonding meets sysfs

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

Page 4: Petru Ratiu - Linux bonding meets sysfs

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

Page 5: Petru Ratiu - Linux bonding meets sysfs

But why?

● Interfete multiple● Reconfigurari fara reboot● Probleme la modprobe -o bond0● Distributii fara scripturi gata facute ;)