Bonding not working on ubuntu
by james000 from LinuxQuestions.org on (#6ECTJ)
I have Ubuntu 20.04.6 LTS, physical server. I have bonding on this which is not working as expected, where I am looking for some help.
When ens10f0 is active in bond0.38, I can ping gw 10.72.38.1
When ens10f1 is active in bond0.38, I can't ping gw 10.72.38.1. As per network guy and tcpdump, ICMP is not going out of server, so it must be something on server config side, and not on network side.
Is there anything I am missing in this config, or any step, how should I troubleshoot further?
Code:root@ubuntu-dsk3:~# cat /etc/netplan/00-installer-config.yaml
# This is the network config written by 'subiquity'
network:
version: 2
renderer: networkd
ethernets:
ens10f0:
dhcp4: false
dhcp6: false
ens10f1:
dhcp4: false
dhcp6: false
bonds:
bond0:
dhcp4: false
interfaces:
- ens10f0
- ens10f1
parameters:
mode: active-backup
primary: ens10f1
mii-monitor-interval: 1
gratuitious-arp: 5
vlans:
bond0.38:
dhcp4: false
addresses: [10.72.38.30/24]
gateway4: 10.72.38.1
id: 38
link: bond0
nameservers:
addresses: [208.67.222.123, 208.67.220.123]
routes:
- to: default
via: 10.72.38.1
root@ubuntu-dsk3:~# cat /proc/net/bonding/bond0
Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)
Bonding Mode: fault-tolerance (active-backup)
Primary Slave: ens10f1 (primary_reselect always)
Currently Active Slave: ens10f1
MII Status: up
MII Polling Interval (ms): 200
Up Delay (ms): 0
Down Delay (ms): 0
Peer Notification Delay (ms): 0
Slave Interface: ens10f1
MII Status: up
Speed: 25000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: 88:e9:a4:5a:31:63
Slave queue ID: 0
Slave Interface: ens10f0
MII Status: up
Speed: 25000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: 88:e9:a4:5a:31:62
Slave queue ID: 0
root@ubuntu-dsk3:~#Thanks
When ens10f0 is active in bond0.38, I can ping gw 10.72.38.1
When ens10f1 is active in bond0.38, I can't ping gw 10.72.38.1. As per network guy and tcpdump, ICMP is not going out of server, so it must be something on server config side, and not on network side.
Is there anything I am missing in this config, or any step, how should I troubleshoot further?
Code:root@ubuntu-dsk3:~# cat /etc/netplan/00-installer-config.yaml
# This is the network config written by 'subiquity'
network:
version: 2
renderer: networkd
ethernets:
ens10f0:
dhcp4: false
dhcp6: false
ens10f1:
dhcp4: false
dhcp6: false
bonds:
bond0:
dhcp4: false
interfaces:
- ens10f0
- ens10f1
parameters:
mode: active-backup
primary: ens10f1
mii-monitor-interval: 1
gratuitious-arp: 5
vlans:
bond0.38:
dhcp4: false
addresses: [10.72.38.30/24]
gateway4: 10.72.38.1
id: 38
link: bond0
nameservers:
addresses: [208.67.222.123, 208.67.220.123]
routes:
- to: default
via: 10.72.38.1
root@ubuntu-dsk3:~# cat /proc/net/bonding/bond0
Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)
Bonding Mode: fault-tolerance (active-backup)
Primary Slave: ens10f1 (primary_reselect always)
Currently Active Slave: ens10f1
MII Status: up
MII Polling Interval (ms): 200
Up Delay (ms): 0
Down Delay (ms): 0
Peer Notification Delay (ms): 0
Slave Interface: ens10f1
MII Status: up
Speed: 25000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: 88:e9:a4:5a:31:63
Slave queue ID: 0
Slave Interface: ens10f0
MII Status: up
Speed: 25000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: 88:e9:a4:5a:31:62
Slave queue ID: 0
root@ubuntu-dsk3:~#Thanks