I have been facing recently a strange issue on a customer Oracle database server after running a simple dnf update. I would like, through this blog, to explain you the problem and root cause and show you how I resolved it.
Problem description
The problem appeared on a server on which I have been running earlier this year an Oracle Linux in-place upgrade from el7 eto el8. I have been sharing some blogs at that time.
The server is running a bonding between 2 ports from 2 different cards. After running a simple dnf updatefollowed by a reboot, we could realize that one network interface was just missing.
Here we can easily see that p4p1 network interface is missing, and this interface is part of the bond1 bonding.
[root@Node0 ~]# ip addr sh
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: em3: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
link/ether bc:97:e1:5b:e4:84 brd ff:ff:ff:ff:ff:ff
3: em4: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc mq master bond1 state UP group default qlen 1000
link/ether bc:97:e1:5b:e4:85 brd ff:ff:ff:ff:ff:ff
4: em1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
link/ether bc:97:e1:5b:e4:86 brd ff:ff:ff:ff:ff:ff
5: em2: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
link/ether bc:97:e1:5b:e4:87 brd ff:ff:ff:ff:ff:ff
6: ens6f0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 3c:fd:fe:85:0b:c0 brd ff:ff:ff:ff:ff:ff
7: p4p2: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
link/ether 3c:fd:fe:85:0b:c1 brd ff:ff:ff:ff:ff:ff
8: p4p3: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
link/ether 3c:fd:fe:85:0b:c2 brd ff:ff:ff:ff:ff:ff
9: p4p4: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
link/ether 3c:fd:fe:85:0b:c3 brd ff:ff:ff:ff:ff:ff
10: bond1: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether bc:97:e1:5b:e4:85 brd ff:ff:ff:ff:ff:ff
inet X.X.X.12/24 brd X.X.X.255 scope global noprefixroute bond1
valid_lft forever preferred_lft forever
inet6 fe80::a7da:4a09:d4fe:beeb/64 scope link noprefixroute
valid_lft forever preferred_lft forever
[root@Node0 ~]#
But what is this ens6f0 network interface?
Troubleshooting
If we check the network script we can see that the configuration is still ok, bond1 with 2 network interfaces p4p1 and em4.
Questions about your own setup? A dbi services consultant can look at your case.
Talk to an expert (opens in a new tab)[root@Node0 ~]# cd /etc/sysconfig/network-scripts/
[root@Node0 network-scripts]# ls -ltrh ifcfg*
-rw-r--r--. 1 root root 277 Jun 3 13:46 ifcfg-p4p2
-rw-r--r--. 1 root root 254 Jun 3 13:46 ifcfg-lo
-rw-r--r--. 1 root root 275 Jun 3 13:46 ifcfg-em3
-rw-r--r--. 1 root root 277 Jun 3 13:46 ifcfg-p4p4
-rw-r--r--. 1 root root 277 Jun 3 13:46 ifcfg-p4p3
-rw-r--r--. 1 root root 112 Jun 3 13:46 ifcfg-p4p1
-rw-r--r--. 1 root root 110 Jun 3 13:46 ifcfg-em4
-rw-r--r--. 1 root root 275 Jun 3 13:46 ifcfg-em2
-rw-r--r--. 1 root root 275 Jun 3 13:46 ifcfg-em1
-rw-r--r--. 1 root root 412 Jun 3 13:46 ifcfg-bond1
[root@Node0 network-scripts]# cat ifcfg-bond1
BONDING_OPTS=mode=active-backup
TYPE=Bond
BONDING_MASTER=yes
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=none
IPADDR=X.X.X.12
PREFIX=24
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=bond1
UUID=ce3e6b16-c59f-46a8-9b1e-9de137dda13b
DEVICE=bond1
ONBOOT=yes
GATEWAY=X.X.X.1
DNS1=X.X.X.5
DOMAIN=domain.ch
[root@Node0 network-scripts]# cat ifcfg-p4p1
TYPE=Ethernet
NAME=p4p1
UUID=970bc038-3893-4090-9f92-e1dfd271ae99
DEVICE=p4p1
ONBOOT=yes
MASTER=bond1
SLAVE=yes
[root@Node0 network-scripts]# cat ifcfg-em4
TYPE=Ethernet
NAME=em4
UUID=f1799870-286c-4e66-a3a1-ca4fc69f3e22
DEVICE=em4
ONBOOT=yes
MASTER=bond1
SLAVE=yes
[root@Node0 network-scripts]#
We can check the network manager configuration:
[root@Node0 ~]# nmcli connection show
NAME UUID TYPE DEVICE
bond1 ce3e6b16-c59f-46a8-9b1e-9de137dda13b bond bond1
em4 f1799870-286c-4e66-a3a1-ca4fc69f3e22 ethernet em4
em1 4bc8cc20-4f90-43d3-b452-a37dad8227b3 ethernet --
em2 f5c3e4da-bd0d-484a-8b55-6acb3420ef8b ethernet --
em3 c9909ec5-b082-4545-b36a-8feb67877ceb ethernet --
p4p1 970bc038-3893-4090-9f92-e1dfd271ae99 ethernet --
p4p2 5b2aee07-0e94-4bd8-9c6c-b9481f01ed46 ethernet --
p4p3 7e0ad95f-b0c5-4e91-8bad-8c6b39a2fb1c ethernet --
p4p4 b7ef4bd7-278f-4821-ab79-0e5e7c2ca2b3 ethernet --
[root@Node0 ~]#
The device status:
[root@Node0 ~]# nmcli device status
DEVICE TYPE STATE CONNECTION
bond1 bond connected bond1
em4 ethernet connected em4
em1 ethernet disconnected --
em2 ethernet disconnected --
em3 ethernet disconnected --
ens6f0 ethernet disconnected --
p4p2 ethernet disconnected --
p4p3 ethernet disconnected --
p4p4 ethernet disconnected --
lo loopback unmanaged --
[root@Node0 ~]#
And already suspect that p4p1 became ens6f0. But why?
p4p1 is definitively not detected:
[root@Node0 ~]# ip link show p4p1
Device "p4p1" does not exist.
[root@Node0 ~]# ls -l /sys/class/net/p4p*
lrwxrwxrwx. 1 root root 0 Nov 5 11:00 /sys/class/net/p4p2 -> ../../devices/pci0000:16/0000:16:00.0/0000:17:00.1/net/p4p2
lrwxrwxrwx. 1 root root 0 Nov 5 11:00 /sys/class/net/p4p3 -> ../../devices/pci0000:16/0000:16:00.0/0000:17:00.2/net/p4p3
lrwxrwxrwx. 1 root root 0 Nov 5 11:00 /sys/class/net/p4p4 -> ../../devices/pci0000:16/0000:16:00.0/0000:17:00.3/net/p4p4
[root@Node0 ~]#
And a new ens6f0 came in and is up and running.
[root@Node0 network-scripts]# ip -br link show
lo UNKNOWN 00:00:00:00:00:00 <LOOPBACK,UP,LOWER_UP>
em3 DOWN bc:97:e1:5b:e4:84 <NO-CARRIER,BROADCAST,MULTICAST,UP>
em4 UP bc:97:e1:5b:e4:85 <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP>
em1 DOWN bc:97:e1:5b:e4:86 <NO-CARRIER,BROADCAST,MULTICAST,UP>
em2 DOWN bc:97:e1:5b:e4:87 <NO-CARRIER,BROADCAST,MULTICAST,UP>
ens6f0 UP 3c:fd:fe:85:0b:c0 <BROADCAST,MULTICAST,UP,LOWER_UP>
p4p2 DOWN 3c:fd:fe:85:0b:c1 <NO-CARRIER,BROADCAST,MULTICAST,UP>
p4p3 DOWN 3c:fd:fe:85:0b:c2 <NO-CARRIER,BROADCAST,MULTICAST,UP>
p4p4 DOWN 3c:fd:fe:85:0b:c3 <NO-CARRIER,BROADCAST,MULTICAST,UP>
bond1 UP bc:97:e1:5b:e4:85 <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP>
[root@Node0 network-scripts]#
If we check the physical ethernet controllers detected on the server through the PCI bus, all is ok:
root@Node0 network-scripts]# lspci -nnk | grep -iE 'ethernet|crontoller'
01:00.0 Ethernet controller [0200]: Broadcom Inc. and subsidiaries NetXtreme BCM5720 Gigabit Ethernet PCIe [14e4:165f]
01:00.1 Ethernet controller [0200]: Broadcom Inc. and subsidiaries NetXtreme BCM5720 Gigabit Ethernet PCIe [14e4:165f]
17:00.0 Ethernet controller [0200]: Intel Corporation Ethernet Controller X710/X557-AT 10GBASE-T [8086:1589] (rev 02)
Subsystem: Intel Corporation Ethernet Converged Network Adapter X710-T [8086:0003]
17:00.1 Ethernet controller [0200]: Intel Corporation Ethernet Controller X710/X557-AT 10GBASE-T [8086:1589] (rev 02)
Subsystem: Intel Corporation Ethernet Converged Network Adapter X710-T [8086:0000]
17:00.2 Ethernet controller [0200]: Intel Corporation Ethernet Controller X710/X557-AT 10GBASE-T [8086:1589] (rev 02)
Subsystem: Intel Corporation Ethernet Converged Network Adapter X710-T [8086:0000]
17:00.3 Ethernet controller [0200]: Intel Corporation Ethernet Controller X710/X557-AT 10GBASE-T [8086:1589] (rev 02)
Subsystem: Intel Corporation Ethernet Converged Network Adapter X710-T [8086:0000]
18:00.0 Ethernet controller [0200]: Broadcom Inc. and subsidiaries BCM57416 NetXtreme-E Dual-Media 10G RDMA Ethernet Controller [14e4:16d8] (rev 01)
18:00.1 Ethernet controller [0200]: Broadcom Inc. and subsidiaries BCM57416 NetXtreme-E Dual-Media 10G RDMA Ethernet Controller [14e4:16d8] (rev 01)
[root@Node0 network-scripts]#
If we check the logs we can see that p4p1 failed showing a mismatch with em1…
[root@Node0 network-scripts]# journalctl -u NetworkManager -b | grep -i p4p1
Nov 05 11:00:28 Node0.domain.CH NetworkManager[1166]: <info> [1793872828.5354] audit: op="connections-load" args="/etc/sysconfig/network-scripts/ifcfg-p4p1" pid=1625 uid=0 result="success"
Nov 05 11:00:28 Node0.domain.CH NetworkManager[1166]: <info> [1793872828.5728] audit: op="connection-activate" uuid="970bc038-3893-4090-9f92-e1dfd271ae99" name="p4p1" result="fail" reason="No suitable device found for this connection (device em1 not available because profile is not compatible with device (mismatching interface name))."
[root@Node0 network-scripts]#
But em1 seems ok.
[root@Node0 network-scripts]# ethtool -i em1
driver: bnxt_en
version: 1.10.2
firmware-version: 236.1.167.0/pkg 36.11.73.00
expansion-rom-version:
bus-info: 0000:18:00.0
supports-statistics: yes
supports-test: yes
supports-eeprom-access: yes
supports-register-dump: yes
supports-priv-flags: no
[root@Node0 network-scripts]# cat /sys/class/net/em1/address
bc:97:e1:5b:e4:86
[root@Node0 network-scripts]#
But if we look more closely to p4pX mac address ports and correlate them with ens6f0 mac address, we can now confirm our suspicions that ens6f0 is p4p1:
[root@Node0 network-scripts]# ip addr sh | grep -A1 -iE 'p4p|ens'
6: ens6f0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
link/ether 3c:fd:fe:85:0b:c0 brd ff:ff:ff:ff:ff:ff
7: p4p2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 3c:fd:fe:85:0b:c1 brd ff:ff:ff:ff:ff:ff
8: p4p3: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
link/ether 3c:fd:fe:85:0b:c2 brd ff:ff:ff:ff:ff:ff
9: p4p4: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
link/ether 3c:fd:fe:85:0b:c3 brd ff:ff:ff:ff:ff:ff
[root@Node0 network-scripts]#
The 4 ports of the same card begins with 3c:fd:fe:85:0b, and we have then c0 for p4p1, c1 for p4p2, c2 for p4p3 and c3 for p4p4!
And we can confirm this with the bus info provided by ethtool command:
[root@Node0 network-scripts]# for i in ens6f0 p4p2 p4p3 p4p4; do
> echo "$i: $(ethtool -i "$i" | grep bus-info)"
> done
ens6f0: bus-info: 0000:17:00.0
p4p2: bus-info: 0000:17:00.1
p4p3: bus-info: 0000:17:00.2
p4p4: bus-info: 0000:17:00.3
[root@Node0 network-scripts]#
Explanation
Doing in-place linux upgrade with leapp, this one took the current network configuration and created custom rules to ensure naming conventions.
[root@Node0 network-scripts]# grep -R -E 'p4p1|ens6f0|3c:fd:fe:85:0b:c0' /etc/udev/rules.d/ /etc/systemd/network/ 2>/dev/null
/etc/systemd/network/10-leapp-p4p1.link:Name=p4p1
[root@Node0 network-scripts]#
But if we look to the leapp network rule files, we can see that leapp mismatched the real MAC address, and took the one from em4, the other interface part of the bond1 bonding configuration.
[root@Node0 network-scripts]# cat /etc/systemd/network/10-leapp-p4p1.link
# Generated by LEAPP
[Match]
MACAddress=bc:97:e1:5b:e4:85
[Link]
Name=p4p1
[root@Node0 network-scripts]#
[root@Node0 network-scripts]# ip addr sh | grep -i em4 -A1
3: em4: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc mq master bond1 state UP group default qlen 1000
link/ether bc:97:e1:5b:e4:85 brd ff:ff:ff:ff:ff:ff
[root@Node0 network-scripts]#
And this is due to the fact that our bonding configuration is active-backup, and configured to keep same MAC address for both interface, instead of showing permanent MAC address. This prevents ARP/MAC updates and avoids needing special switch configuration. We could change this behavior with the bonding option fail_over_mac=1. See following note from redhat:
https://access.redhat.com/kb/2964541
https://access.redhat.com/kb/7132923
And this is why leapp made the confusion.
We can check all other leapp network custom rules file:
[root@Node0 network-scripts]# for f in /etc/systemd/network/*leapp*.link; do
> echo "===== $f ====="
> cat "$f"
> done
===== /etc/systemd/network/10-leapp-em1.link =====
# Generated by LEAPP
[Match]
MACAddress=bc:97:e1:5b:e4:86
[Link]
Name=em1
===== /etc/systemd/network/10-leapp-em2.link =====
# Generated by LEAPP
[Match]
MACAddress=bc:97:e1:5b:e4:87
[Link]
Name=em2
===== /etc/systemd/network/10-leapp-em3.link =====
# Generated by LEAPP
[Match]
MACAddress=bc:97:e1:5b:e4:84
[Link]
Name=em3
===== /etc/systemd/network/10-leapp-em4.link =====
# Generated by LEAPP
[Match]
MACAddress=bc:97:e1:5b:e4:85
[Link]
Name=em4
===== /etc/systemd/network/10-leapp-p4p1.link =====
# Generated by LEAPP
[Match]
MACAddress=bc:97:e1:5b:e4:85
[Link]
Name=p4p1
===== /etc/systemd/network/10-leapp-p4p2.link =====
# Generated by LEAPP
[Match]
MACAddress=3c:fd:fe:85:0b:c1
[Link]
Name=p4p2
===== /etc/systemd/network/10-leapp-p4p3.link =====
# Generated by LEAPP
[Match]
MACAddress=3c:fd:fe:85:0b:c2
[Link]
Name=p4p3
===== /etc/systemd/network/10-leapp-p4p4.link =====
# Generated by LEAPP
[Match]
MACAddress=3c:fd:fe:85:0b:c3
[Link]
Name=p4p4
[root@Node0 network-scripts]#
Why everything was working correctly with the previous EL8 kernel remains unclear. What we do know is that, after rebooting the server following the kernel update, the existing custom naming rule for p4p1 did not match the interface because it contained an incorrect MAC address. As no other custom naming rule matched the interface, the system fell back to the standard predictable network interface naming convention and assigned the name ens6f0.
Resolution
Let’s resolve the problem, by putting the right permanent MAC address for p4p1.
[root@Node0 ~]# cp -p /etc/systemd/network/10-leapp-p4p1.link /etc/systemd/network/10-leapp-p4p1.link.bak.wrong.mac
[root@Node0 ~]# vi /etc/systemd/network/10-leapp-p4p1.link
[root@Node0 ~]# diff /etc/systemd/network/10-leapp-p4p1.link /etc/systemd/network/10-leapp-p4p1.link.bak.wrong.mac
3c3
< MACAddress=3c:fd:fe:85:0b:c0
---
> MACAddress=bc:97:e1:5b:e4:85
[root@Node0 ~]#
[root@Node0 ~]# udevadm control --reload
[root@Node0 ~]#
[root@Node0 ~]# udevadm test-builtin net_setup_link /sys/class/net/ens6f0 2>&1 | grep -E 'Config file|ID_NET_LINK_FILE|ID_NET_NAME='
Config file /etc/systemd/network/10-leapp-p4p1.link applies to device ens6f0
ID_NET_LINK_FILE=/etc/systemd/network/10-leapp-p4p1.link
ID_NET_NAME=p4p1
[root@Node0 ~]#
And reboot the server.
[root@Node0 ~]# systemctl reboot
Checking
After server reboot:
[root@Node0 ~]# uptime
15:01:50 up 0 min, 1 user, load average: 0.98, 0.29, 0.10
We can see that we now have all our bonding network interface up and running.
[root@Node0 ~]# ip addr sh
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: em3: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
link/ether bc:97:e1:5b:e4:84 brd ff:ff:ff:ff:ff:ff
3: em4: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc mq master bond1 state UP group default qlen 1000
link/ether bc:97:e1:5b:e4:85 brd ff:ff:ff:ff:ff:ff
4: em1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
link/ether bc:97:e1:5b:e4:86 brd ff:ff:ff:ff:ff:ff
5: em2: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
link/ether bc:97:e1:5b:e4:87 brd ff:ff:ff:ff:ff:ff
6: p4p1: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc mq master bond1 state UP group default qlen 1000
link/ether bc:97:e1:5b:e4:85 brd ff:ff:ff:ff:ff:ff
7: p4p2: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
link/ether 3c:fd:fe:85:0b:c1 brd ff:ff:ff:ff:ff:ff
8: p4p3: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
link/ether 3c:fd:fe:85:0b:c2 brd ff:ff:ff:ff:ff:ff
9: p4p4: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
link/ether 3c:fd:fe:85:0b:c3 brd ff:ff:ff:ff:ff:ff
10: bond1: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether bc:97:e1:5b:e4:85 brd ff:ff:ff:ff:ff:ff
inet X.X.X.12/24 brd X.X.X.255 scope global noprefixroute bond1
valid_lft forever preferred_lft forever
inet6 fe80::a7da:4a09:d4fe:beeb/64 scope link noprefixroute
valid_lft forever preferred_lft forever
[root@Node0 ~]#
The configuration is also all good through the network manager.
[root@Node0 ~]# nmcli device status
DEVICE TYPE STATE CONNECTION
bond1 bond connected bond1
em4 ethernet connected em4
p4p1 ethernet connected p4p1
em1 ethernet disconnected --
em2 ethernet disconnected --
em3 ethernet disconnected --
p4p2 ethernet disconnected --
p4p3 ethernet disconnected --
p4p4 ethernet disconnected --
lo loopback unmanaged --
[root@Node0 ~]#
[root@Node0 ~]# ip -br link
lo UNKNOWN 00:00:00:00:00:00 <LOOPBACK,UP,LOWER_UP>
em3 DOWN bc:97:e1:5b:e4:84 <NO-CARRIER,BROADCAST,MULTICAST,UP>
em4 UP bc:97:e1:5b:e4:85 <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP>
em1 DOWN bc:97:e1:5b:e4:86 <NO-CARRIER,BROADCAST,MULTICAST,UP>
em2 DOWN bc:97:e1:5b:e4:87 <NO-CARRIER,BROADCAST,MULTICAST,UP>
p4p1 UP bc:97:e1:5b:e4:85 <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP>
p4p2 DOWN 3c:fd:fe:85:0b:c1 <NO-CARRIER,BROADCAST,MULTICAST,UP>
p4p3 DOWN 3c:fd:fe:85:0b:c2 <NO-CARRIER,BROADCAST,MULTICAST,UP>
p4p4 DOWN 3c:fd:fe:85:0b:c3 <NO-CARRIER,BROADCAST,MULTICAST,UP>
bond1 UP bc:97:e1:5b:e4:85 <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP>
[root@Node0 ~]#
[root@Node0 ~]# nmcli device status
DEVICE TYPE STATE CONNECTION
bond1 bond connected bond1
em4 ethernet connected em4
p4p1 ethernet connected p4p1
em1 ethernet disconnected --
em2 ethernet disconnected --
em3 ethernet disconnected --
p4p2 ethernet disconnected --
p4p3 ethernet disconnected --
p4p4 ethernet disconnected --
lo loopback unmanaged --
[root@Node0 ~]#
The bonding is all ok with em4 and p4p1 permanent MAC address.
[root@Node0 ~]# cat /proc/net/bonding/bond1
Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)
Bonding Mode: fault-tolerance (active-backup)
Primary Slave: None
Currently Active Slave: p4p1
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 0
Peer Notification Delay (ms): 0
Slave Interface: em4
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: bc:97:e1:5b:e4:85
Slave queue ID: 0
Slave Interface: p4p1
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: 3c:fd:fe:85:0b:c0
Slave queue ID: 0
[root@Node0 ~]#
We can also cheeck with ethtool the permanent MAC address for p4p1:
[root@Node0 ~]# ethtool -P p4p1
Permanent address: 3c:fd:fe:85:0b:c0
[root@Node0 ~]#
When as explained earlier, with ip addr sh we will see the same MAC address for both p4p1 and em4:
3: em4: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc mq master bond1 state UP group default qlen 1000
link/ether bc:97:e1:5b:e4:85 brd ff:ff:ff:ff:ff:ff
6: p4p1: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc mq master bond1 state UP group default qlen 1000
link/ether bc:97:e1:5b:e4:85 brd ff:ff:ff:ff:ff:ff