Help me to Understand this bond configuration

Good mornig please, i need your help
In a live production system Ive got these interfaces:

mediator21/cgi_data > nmcli device
DEVICE  TYPE      STATE         CONNECTION
bond0   bond      connected     bond0
eno7    ethernet  connected     eno7
eno6    ethernet  connected     eno6
ens3f1  ethernet  connected     ens3f1
ens6f0  ethernet  connected     ens6f0
eno5    ethernet  disconnected  --
eno8    ethernet  disconnected  --
ens3f0  ethernet  disconnected  --
ens6f1  ethernet  disconnected  --
lo      loopback  unmanaged     --

I dont have much knowledge in networking and bonding but the below bonding configuration I only see just 1 Interface (ens6f0), but in bonding it is not suppossed to have more than 1 interface to have redundancy or high availability?

/proc/net/bonding
mediator21/cgi_data > ls -lrt
total 0
-r--r--r-- 1 root root 0 Nov 22 22:54 bond0
mediator21/cgi_data > cat  bond0
Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)

Bonding Mode: fault-tolerance (active-backup)
Primary Slave: None
Currently Active Slave: ens6f0
MII Status: up
MII Polling Interval (ms): 0
Up Delay (ms): 0
Down Delay (ms): 0
Peer Notification Delay (ms): 0
ARP Polling Interval (ms): 1000
ARP IP target/s (n.n.n.n form): 192.168.6.1

Slave Interface: ens6f0
MII Status: up
Speed: 10000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: 88:e9:a4:42:96:7c

This is the system:

mediator21/cgi_data > cat /etc/*lease*
cat: /etc/lsb-release.d: Is a directory
NAME="Red Hat Enterprise Linux"
VERSION="8.5 (Ootpa)"
ID="rhel"
ID_LIKE="fedora"
VERSION_ID="8.5"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Red Hat Enterprise Linux 8.5 (Ootpa)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:8::baseos"
HOME_URL="https://www.redhat.com/"
DOCUMENTATION_URL="https://access.redhat.com/documentation/red_hat_enterprise_linux/8/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"

REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 8"
REDHAT_BUGZILLA_PRODUCT_VERSION=8.5
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="8.5"
Red Hat Enterprise Linux release 8.5 (Ootpa)
Red Hat Enterprise Linux release 8.5 (Ootpa)

I appreciate your help in advanced:

Good evening, there is a feedback to this request?
I appreciate your help in advanced

It should have, hence the name 'bond'.
But technically you can create a bond interface with only one port, it will work, and add other interface(s) later.

Regards
Peasant.

What yields

nmcli con show

?

Good morning, thanks you very much for your time, this is what the command nmcli con show yields:

GENERAL.DEVICE:                         bond0
GENERAL.TYPE:                           bond
GENERAL.HWADDR:                         D4:F5:EF:5F:78:40
GENERAL.MTU:                            9000
GENERAL.STATE:                          100 (connected)
GENERAL.CONNECTION:                     bond0
GENERAL.CON-PATH:                       /org/freedesktop/NetworkManager/ActiveConnection/6
IP4.ADDRESS[1]:                         192.168.6.121/24
IP4.ADDRESS[2]:                         192.168.6.100/24
IP4.GATEWAY:                            192.168.6.1
IP4.ROUTE[1]:                           dst = 192.168.6.0/24, nh = 0.0.0.0, mt = 300
IP4.ROUTE[2]:                           dst = 0.0.0.0/0, nh = 192.168.6.1, mt = 300
IP6.ADDRESS[1]:                         fe80::1a59:4234:a4e2:32d4/64
IP6.GATEWAY:                            --
IP6.ROUTE[1]:                           dst = fe80::/64, nh = ::, mt = 300

GENERAL.DEVICE:                         eno7
GENERAL.TYPE:                           ethernet
GENERAL.HWADDR:                         D4:F5:EF:38:75:8A
GENERAL.MTU:                            1500
GENERAL.STATE:                          100 (connected)
GENERAL.CONNECTION:                     eno7
GENERAL.CON-PATH:                       /org/freedesktop/NetworkManager/ActiveConnection/2
WIRED-PROPERTIES.CARRIER:               on
IP4.ADDRESS[1]:                         10.20.20.6/24
IP4.ADDRESS[2]:                         10.20.20.8/24
IP4.GATEWAY:                            --
IP4.ROUTE[1]:                           dst = 10.20.20.0/24, nh = 0.0.0.0, mt = 101

GENERAL.DEVICE:                         eno6
GENERAL.TYPE:                           ethernet
GENERAL.HWADDR:                         D4:F5:EF:38:75:89
GENERAL.MTU:                            1500
GENERAL.STATE:                          100 (connected)
GENERAL.CONNECTION:                     eno6
GENERAL.CON-PATH:                       /org/freedesktop/NetworkManager/ActiveConnection/1
WIRED-PROPERTIES.CARRIER:               on
IP4.ADDRESS[1]:                         10.81.162.191/24
IP4.GATEWAY:                            --
IP4.ROUTE[1]:                           dst = 10.81.162.0/24, nh = 0.0.0.0, mt = 100
IP4.ROUTE[2]:                           dst = 10.201.2.130/32, nh = 10.81.162.1, mt = 100

GENERAL.DEVICE:                         ens3f1
GENERAL.TYPE:                           ethernet
GENERAL.HWADDR:                         D4:F5:EF:5F:78:48
GENERAL.MTU:                            1500
GENERAL.STATE:                          100 (connected)
GENERAL.CONNECTION:                     ens3f1
GENERAL.CON-PATH:                       /org/freedesktop/NetworkManager/ActiveConnection/4
WIRED-PROPERTIES.CARRIER:               off
IP4.GATEWAY:                            --

GENERAL.DEVICE:                         ens6f0
GENERAL.TYPE:                           ethernet
GENERAL.HWADDR:                         D4:F5:EF:5F:78:40
GENERAL.MTU:                            9000
GENERAL.STATE:                          100 (connected)
GENERAL.CONNECTION:                     ens6f0
GENERAL.CON-PATH:                       /org/freedesktop/NetworkManager/ActiveConnection/5
WIRED-PROPERTIES.CARRIER:               on
IP4.GATEWAY:                            --
IP6.GATEWAY:                            --

GENERAL.DEVICE:                         eno5
GENERAL.TYPE:                           ethernet
GENERAL.HWADDR:                         D4:F5:EF:38:75:88
GENERAL.MTU:                            1500
GENERAL.STATE:                          30 (disconnected)
GENERAL.CONNECTION:                     --
GENERAL.CON-PATH:                       --
WIRED-PROPERTIES.CARRIER:               on

GENERAL.DEVICE:                         eno8
GENERAL.TYPE:                           ethernet
GENERAL.HWADDR:                         D4:F5:EF:38:75:8B
GENERAL.MTU:                            1500
GENERAL.STATE:                          30 (disconnected)
GENERAL.CONNECTION:                     --
GENERAL.CON-PATH:                       --
WIRED-PROPERTIES.CARRIER:               off

GENERAL.DEVICE:                         ens3f0
GENERAL.TYPE:                           ethernet
GENERAL.HWADDR:                         D4:F5:EF:5F:78:40
GENERAL.MTU:                            1500
GENERAL.STATE:                          30 (disconnected)
GENERAL.CONNECTION:                     --
GENERAL.CON-PATH:                       --
WIRED-PROPERTIES.CARRIER:               on

GENERAL.DEVICE:                         ens6f1
GENERAL.TYPE:                           ethernet
GENERAL.HWADDR:                         88:E9:A4:42:96:7D
GENERAL.MTU:                            1500
GENERAL.STATE:                          30 (disconnected)
GENERAL.CONNECTION:                     --
GENERAL.CON-PATH:                       --
WIRED-PROPERTIES.CARRIER:               off

GENERAL.DEVICE:                         lo
GENERAL.TYPE:                           loopback
GENERAL.HWADDR:                         00:00:00:00:00:00
GENERAL.MTU:                            65536
GENERAL.STATE:                          10 (unmanaged)
GENERAL.CONNECTION:                     --
GENERAL.CON-PATH:                       --
IP4.ADDRESS[1]:                         127.0.0.1/8
IP4.GATEWAY:                            --
IP6.GATEWAY:                            --

What things I should look for the above output?

Thanks for your help in advanced:

The Routing table:

route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         192.168.6.1     0.0.0.0         UG    300    0        0 bond0
10.20.20.0      0.0.0.0         255.255.255.0   U     101    0        0 eno7
10.81.162.0     0.0.0.0         255.255.255.0   U     100    0        0 eno6
10.201.2.130    10.81.162.1     255.255.255.255 UGH   100    0        0 eno6
192.168.6.0     0.0.0.0         255.255.255.0   U     300    0        0 bond0

@alexcol
in future, show the command(s) executed - not everyone is familiar with networking !

tks

PS : I added this time

Thanks you very mych munkHoller, Ill take into account your recomendation

by the way the output of nmcli con show command what lines are considered important to validate?

Thanks for your time in advanced

1 Like

I hoped it would say something about the master-slave relationship, but it does not.

At least it knows the IP addresses, so I think you can use it for changes:
nmcli con mod ...
and
nmcli con add ...

There are two competing methods that partly conflict with nmcli/nmtui: 1. legacy files and 2. systemd-networkd.

Thanks you once again MadeInGermany for your time and Support

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.