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 bonding
    options 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 ;)

More Related Content

PDF
Linux Security with SElinux
PDF
Web ブラウザで DRM
PPTX
Vim Showcase
PPT
Geeky Academy Week 3 :: Vagrant + Puppet
PDF
The sysfs Filesystem
PPTX
Linux Device Driver’s
PDF
Introduction to char device driver
PPT
Cristina Vintila - 4G - Technology Overview
Linux Security with SElinux
Web ブラウザで DRM
Vim Showcase
Geeky Academy Week 3 :: Vagrant + Puppet
The sysfs Filesystem
Linux Device Driver’s
Introduction to char device driver
Cristina Vintila - 4G - Technology Overview

More from Asociatia ProLinux (20)

PDF
Razvan Deaconescu - rss2email
PDF
Nicu Buculei - Progresul WLMRO
PDF
Razvan Deaconescu - Task Management for the Daily Workaholic
PDF
Răzvan Deaconescu - Biblioteci, gestiunea bibliotecilor
PDF
Ioan Eugen Stan - Introducere HBase
PDF
Ioan Eugen Stan - James
PDF
Dumitru Enache - Bacula
PPTX
Ciprian Badescu, Eugen Stoianovici - CUBRID
PDF
Ovidiu Constantin - ReactOS
PDF
Calin Burloiu - Prelucrarea fisierelor video in Linux
PDF
Alex Juncu - UDPCast
PDF
Razvan Deaconescu - Org-Mode
PDF
Ovidiu Constantin - Linux From Scratch 6.8
PDF
Cornel Florentin Dimitriu - Tune in... on Linux
PDF
Radu Zoran - Linux pe un Tablet PC
PDF
Ovidiu Constantin - Debian Live
PDF
Razvan Deaconescu - Redmine
PDF
Ovidiu constantin 1 airopl
PDF
Ovidiu constantin dd-wrt vs open wrt
PDF
Alexandru balan frams
Razvan Deaconescu - rss2email
Nicu Buculei - Progresul WLMRO
Razvan Deaconescu - Task Management for the Daily Workaholic
Răzvan Deaconescu - Biblioteci, gestiunea bibliotecilor
Ioan Eugen Stan - Introducere HBase
Ioan Eugen Stan - James
Dumitru Enache - Bacula
Ciprian Badescu, Eugen Stoianovici - CUBRID
Ovidiu Constantin - ReactOS
Calin Burloiu - Prelucrarea fisierelor video in Linux
Alex Juncu - UDPCast
Razvan Deaconescu - Org-Mode
Ovidiu Constantin - Linux From Scratch 6.8
Cornel Florentin Dimitriu - Tune in... on Linux
Radu Zoran - Linux pe un Tablet PC
Ovidiu Constantin - Debian Live
Razvan Deaconescu - Redmine
Ovidiu constantin 1 airopl
Ovidiu constantin dd-wrt vs open wrt
Alexandru balan frams
Ad

Recently uploaded (20)

PPTX
The various Industrial Revolutions .pptx
PDF
A contest of sentiment analysis: k-nearest neighbor versus neural network
PPT
What is a Computer? Input Devices /output devices
PDF
Enhancing plagiarism detection using data pre-processing and machine learning...
PPTX
2018-HIPAA-Renewal-Training for executives
PPT
Module 1.ppt Iot fundamentals and Architecture
PDF
sustainability-14-14877-v2.pddhzftheheeeee
PDF
UiPath Agentic Automation session 1: RPA to Agents
PDF
Getting started with AI Agents and Multi-Agent Systems
PDF
Flame analysis and combustion estimation using large language and vision assi...
PDF
Five Habits of High-Impact Board Members
PPT
Galois Field Theory of Risk: A Perspective, Protocol, and Mathematical Backgr...
PPTX
Final SEM Unit 1 for mit wpu at pune .pptx
PPTX
Microsoft Excel 365/2024 Beginner's training
PDF
Hybrid horned lizard optimization algorithm-aquila optimizer for DC motor
PDF
How ambidextrous entrepreneurial leaders react to the artificial intelligence...
PDF
sbt 2.0: go big (Scala Days 2025 edition)
PDF
A proposed approach for plagiarism detection in Myanmar Unicode text
PDF
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
PPTX
Configure Apache Mutual Authentication
The various Industrial Revolutions .pptx
A contest of sentiment analysis: k-nearest neighbor versus neural network
What is a Computer? Input Devices /output devices
Enhancing plagiarism detection using data pre-processing and machine learning...
2018-HIPAA-Renewal-Training for executives
Module 1.ppt Iot fundamentals and Architecture
sustainability-14-14877-v2.pddhzftheheeeee
UiPath Agentic Automation session 1: RPA to Agents
Getting started with AI Agents and Multi-Agent Systems
Flame analysis and combustion estimation using large language and vision assi...
Five Habits of High-Impact Board Members
Galois Field Theory of Risk: A Perspective, Protocol, and Mathematical Backgr...
Final SEM Unit 1 for mit wpu at pune .pptx
Microsoft Excel 365/2024 Beginner's training
Hybrid horned lizard optimization algorithm-aquila optimizer for DC motor
How ambidextrous entrepreneurial leaders react to the artificial intelligence...
sbt 2.0: go big (Scala Days 2025 edition)
A proposed approach for plagiarism detection in Myanmar Unicode text
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
Configure Apache Mutual Authentication
Ad

Petru Ratiu - Linux bonding meets sysfs

  • 1. Linux bonding meets sysfs (sau ce te faci cand CONFIG_BONDING=y) Petru Ratiu – aprilie 2011
  • 2. The usual way ● modprobe bonding mode=1 miimon=100 ● alias bond0 bonding options bond0 mode=active-failover miimon=100
  • 3. 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
  • 4. 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
  • 5. But why? ● Interfete multiple ● Reconfigurari fara reboot ● Probleme la modprobe -o bond0 ● Distributii fara scripturi gata facute ;)