Good find in comment #3. Adding this policy-based routing (PBR) rule
manually seems to fix the issue:

# ip rule add from 192.168.12.6 lookup 101 proto static


But it's defined in Netplan config:
"""
      routing-policy:
      - table: 101
        from: "192.168.12.6"
"""

And rendered to systemd-networkd:
"""
[RoutingPolicyRule]
From=192.168.12.6
Table=101
"""


When removing the "use-routes" dhcp-overrides for ens6 and running "netplan 
apply" it seems to be working. Are those DHCP routes needed? This sounds like a 
race condition. Maybe the static routes/rules are set, but then dropped when 
the DHCPv4 response is received and routes/rules are reconfigured.

I wonder why this is not happening in Oracular, though. Can you confirm
timing of DHCPv4 config vs static routes/rule config from systemd-
networkd debug log?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2101860

Title:
  Different networking behavior with 2nd IP on 2nd NIC

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/2101860/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to