When lxd creates a network bridge I want it to add static routes - but those static routes need a next hop (pointing to a container IP).
I can’t see the syntax to do this. The following fails:
# lxc network set br-dns ipv4.routes "10.10.4.0/22 via 10.10.0.224" Error: Failed to run: ip -4 route add dev br-dns 10.10.4.0/22 via 10.10.0.224 proto static: \ Error: inet prefix is expected rather than "10.10.4.0/22 via 10.10.0.224".
Is it possible in lxd?
lxd lets me add routes without a next hop, but for me that’s not very useful. (The host will send ARP broadcasts for addresses within that range, but the host doesn’t have any IP address on that subnet for the target to reply to)
I am running Ubuntu 18.04 with lxd 3.0.3-0ubuntu1~18.04.1
FYI, here’s the rest of the bridge config:
# lxc network show br-dns config: bridge.external_interfaces: eno1 ipv4.address: 10.10.0.254/24 ipv4.dhcp.ranges: 10.10.0.1-10.10.0.199 ipv4.nat: "true" ipv6.address: fd42:b533:58da:47c5::1/64 ipv6.nat: "true" description: "" name: br-dns type: bridge used_by:  managed: true status: Created locations: - none