My Oracle Support Banner

Bonding: Primary Interface not Getting Set (Doc ID 2196887.1)

Last updated on AUGUST 04, 2018

Applies to:

Linux OS - Version Oracle Linux 5.11 to Oracle Linux 6.8 [Release OL5U11 to OL6U8]
Linux x86-64
Linux x86

Symptoms

While creating network bond(mode1:active-backup) with eth1 and eth2 as slaves, bonding is not coming up with primary interface as set in configuration file.

#cat /proc/net/bonding/bond0

Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)

Bonding Mode: fault-tolerance (active-backup)
Primary Slave: None
Currently Active Slave: eth2
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 5000
Down Delay (ms): 5000

Slave Interface: eth1
MII Status: up
Speed: 10000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: 00:10:e0:40:b9:7f
Slave queue ID: 0

Slave Interface: eth2
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: 00:10:e0:40:b9:80
Slave queue ID: 0

 Here the bond0 is created with currently active slave as eth2, but from the bonding configuration file the primary interface is eth1.

#cat /etc/sysconfig/network-scripts/ifcfg-bond0

DEVICE=bond0
USERCTL=no
BOOTPROTO=none
ONBOOT=yes
BONDING_OPTS="mode=active-backup miimon=100 downdelay=5000 updelay=5000 num_grat_arp=100 PRIMARY=eth1"
IPV6INIT=no
IPADDR=192.168.100.22
NETMASK=255.255.255.0
NETWORK=192.168.99.0
BROADCAST=192.168.100.255
GATEWAY=192.168.99.1

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.