Skip to content

Bond in active-backup mode does not switch to backup interface when the primary link goes down #1446

@cotosso

Description

@cotosso

Version: NethSecurity 8.7.1

Brief description
When using a bond interface in active backup mode, the system does not switch to the secondary interface when the primary interface becomes unavailable. The failure occurs because no link monitoring is configured for the bond.

Steps to reproduce

  • Configure a bond in active-backup mode
  • send traffic over the bond (e.g. a ping)
  • Disconnect the primary slave

Expected behavior

  • the traffic will start to flow in the backup slave

Actual behavior

  • the traffic stops to flow

Why this is a problem
Active backup mode requires link monitoring to detect when the active interface goes down. Without it, the system continues to consider the primary interface available even when it has failed. This leads to loss of connectivity and makes the bond unreliable.

Proposed solution
Add link monitoring options to the bond configuration. The required options are:

option link_monitoring 'mii'
option miimon '100'

These options enable MII monitoring every 100 milliseconds and allow the bond to detect link-down events and switch to the backup interface.
Based on typical Linux bonding behavior, these options are standard and usually harmless even when not strictly required, but their safety in every NethSecurity context should be confirmed during implementation.

Components

NethSecurity 8.7.1

Metadata

Metadata

Assignees

Labels

verifiedAll test cases were verified successfully

Type

Projects

Status

Verified

Relationships

None yet

Development

No branches or pull requests

Issue actions