<div style="max-width:800px" data-click-id="text"><div style="color:#D7DADC"><p>Hey guys,<br></p><p>Dealing
 with a weired issue where netplan is not detecting the uplink going
down for one of it's primary slave and not selecting the other slave.  I
 also tried setting up all parameters of mii-monitor-interval but that
doesn't seems to be working either.<br></p><p>root@core2:~# lsb_release -a<br></p><p>No LSB modules are available.<br></p><p>Distributor ID: Ubuntu<br></p><p>Description:    Ubuntu 18.04.4 LTS<br></p><p>Release:        18.04<br></p><p>Codename:       bionic<br></p><p>root@core2:~# uname -a<br></p><p>Linux core2 4.15.0-121-generic #123-Ubuntu SMP Mon Oct 5 16:16:40 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux<br></p><p>root@core2:~# dpkg -l | grep netplan<br></p><p>ii <a href="https://netplan.io" rel="noopener nofollow ugc" target="_blank">netplan.io</a>0.98-0ubuntu1~18.04.1                           amd64        YAML network configuration abstraction for various backends<br></p><p>root@core2:~#<br></p><p><br></p><p>Config file -><br></p><p>network:<br></p><p>version: 2<br></p><p>renderer: networkd<br></p><p>ethernets:<br></p><p>enp6s0f0:<br></p><p>dhcp4: no<br></p><p>enp6s0f1:<br></p><p>dhcp4: no<br></p><p><br></p><p>bonds:<br></p><p>bond0:<br></p><p>addresses:<br></p><p>- <a href="https://10.10.10.250/24" rel="noopener nofollow ugc" target="_blank">10.10.10.250/24</a><br></p><p>gateway4: <a href="https://10.10.10.1" rel="noopener nofollow ugc" target="_blank">10.10.10.1</a><br></p><p>nameservers:<br></p><p>addresses: [<a href="https://8.8.8.8" rel="noopener nofollow ugc" target="_blank">8.8.8.8</a>]<br></p><p>interfaces:<br></p><p>- enp6s0f0<br></p><p>- enp6s0f1<br></p><p>parameters:<br></p><p>mode: active-backup<br></p><p>primary: enp6s0f0<br></p><p>mii-monitor-interval: 10s<br></p><p>min-links: 1<br></p><p>down-delay: 50<br></p><p><br></p><p>Interesting
 issue is that event after setting mii-monitor-interval value to 10s,
it's not updating on bond interface. It's shows 0ms and that means
netplan is not monitoring the mii uplink.<br></p><p>root@core2:~# cat /proc/net/bonding/bond0<br></p><p>Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)<br></p><p><br></p><p>Bonding Mode: fault-tolerance (active-backup)<br></p><p>Primary Slave: enp6s0f0 (primary_reselect always)<br></p><p>Currently Active Slave: enp6s0f0<br></p><p>MII Status: up<br></p><p>MII Polling Interval (ms): 0<br></p><p>Up Delay (ms): 0<br></p><p>Down Delay (ms): 0<br></p><p><br></p><p>Slave Interface: enp6s0f1<br></p><p>MII Status: up<br></p><p>Speed: 1000 Mbps<br></p><p>Duplex: full<br></p><p>Link Failure Count: 0<br></p><p>Permanent HW addr: 00:1b:21:3e:3f:29<br></p><p>Slave queue ID: 0<br></p><p><br></p><p>Slave Interface: enp6s0f0<br></p><p>MII Status: up<br></p><p>Speed: 1000 Mbps<br></p><p>Duplex: full<br></p><p>Link Failure Count: 0<br></p><p>Permanent HW addr: 00:1b:21:3e:3f:28<br></p><p>Slave queue ID: 0<br></p><p>root@core2:~#<br></p><p><br></p><p>Any help will be really appreciated.<br></p><p><br></p><p>Thank you<br></p></div></div><div class="protonmail_signature_block protonmail_signature_block-empty"><div class="protonmail_signature_block-user protonmail_signature_block-empty"><br></div><div class="protonmail_signature_block-proton protonmail_signature_block-empty"><br></div></div><div><br></div>