⚡ ~/naveed Interview Prep
⚡ Portfolio Home ✍️ Engineering Blog Deep Dives 🎯 Interview Hub 998+ Scenarios ☸️ Kubernetes Mastery Hub 24 Modules 🎮 DevOps Arcade & Quizzes Subnet Blitz ⚡ 🗺️ DevOps Roadmaps PDFs & Guides 🤖 Morpheus Analysis AI Quant ↗ 🛠️ Developer Tools Utilities 🧪 Labs & Experiments 📄 Interactive CV & Certs 🔗 All Links & Socials ⚡ Join The Dispatch (Weekly SRE Newsletter) →
Staff SRE / Principal Architect [L3] Linux Allow user 'deploy' to restart nginx and read syslog only Staff SRE Scenario [L3]

Q: A production server requires high network availability. You have two physical NICs and need to configure network bonding (NIC teaming) for redundancy. Explain the bonding modes and which one you'd choose for a production database server.

Linux network bonding combines multiple physical NICs into a single logical interface for redundancy and/or throughput.

#Linux #Allow user 'deploy' to restart nginx and read syslog only #L3 #SRE #Systems #Troubleshooting
🎙️ Candidate Opening & Architectural Context
""During an on-call shift, our alerts triggered when a critical Linux production server exhibited this behavior. The interviewer is testing: Network bonding/teaming, high availability, NIC redundancy.. I structure my answer around systematic triage first, root cause analysis second, and permanent remediation third.""
Advertisement

🛠️ Production Runbook & Step-by-Step Resolution

1️⃣

Initial Diagnostics & Root Cause Analysis

Linux network bonding combines multiple physical NICs into a single logical interface for redundancy and/or throughput.

  • Mode 0 (balance-rr): Round-robin — packets are distributed across NICs sequentially. Increases throughput but requires switch configuration (EtherChannel/LACP).
  • Mode 1 (active-backup): Only one NIC is active; the standby takes over if the active fails. No switch configuration needed. Best for database servers where reliability matters more than throughput.
  • Mode 2 (balance-xor): XOR-based distribution. Requires switch support.
2️⃣

Remediation & Permanent Safeguards

Common bonding modes: For a production database server, Mode 1 (active-backup) is the safest choice: The miimon=100 parameter checks link health every 100ms for fast failover.

nmcli con add type bond con-name bond0 ifname bond0 bond.options "mode=active-backup,miimon=100"
nmcli con add type ethernet con-name bond0-slave1 ifname eth0 master bond0
nmcli con add type ethernet con-name bond0-slave2 ifname eth1 master bond0
  • Mode 4 (802.3ad / LACP): Dynamic link aggregation using the IEEE standard. Provides both redundancy and increased throughput. Requires switch LACP support.
  • Mode 6 (balance-alb): Adaptive load balancing. No switch configuration needed, balances outgoing traffic.
💡 The Senior SRE Gold Nugget (Key Architectural Takeaway)
"Pro-Tip: Mode 0 (balance-rr): Round-robin — packets are distributed across NICs sequentially. Increases throughput but requires switch conf."
⚡ 60-Second Elevator Pitch Talking Points
  • Mode 0 (balance-rr): Round-robin — packets are distributed across NICs sequentially. Increases th...
  • Mode 1 (active-backup): Only one NIC is active; the standby takes over if the active fails. No sw...
  • Mode 2 (balance-xor): XOR-based distribution. Requires switch support.
Advertisement
Want more Linux scenarios?
Explore our complete collection of scenario-based Linux interview runbooks.
Browse All Linux Questions →

📚 Related Production Scenarios in Linux