I would like to add a comment to help remind folks (like me) to set their firewall to allow for traffic to/from the new network(s), otherwise, like me, you might scratch around wondering why you canโt get connectivity. It took me ten minutes to figure it out (again) as I launched a container and it could not get an IP address from incus, and nor did it have connectivity. As usual, the error was my fault again:
E.g. for anyone using the uncomplicated firewall, ufw, I use these commands to get the firewall to talk nicely to the new incus โfooโ network per the above:
sudo ufw allow in on foo
sudo ufw route allow in on foo
sudo ufw route allow out on foo
Repeat for network bar too. And if you use iptables or some other application, hopefully these instructions still point you on how to do this.
A dated but still useful post (albeit for lxd) explains this well: