[LXD 3.9] adding ipv4.routes to lxdbr0

lxc network show lxdbr0 shows: ipv4.routes: xx.xx.xx.xxx/29

I need to modify it to show ipv4.routes: xx.xx.xx.xxx/27 (with 7 at the end).

when entering: lxc network set lxdbr0 ipv4.routes xx.xx.xx.xxx/27 I get:

Error: Failed to run: ip -4 route add dev lxdbr0 xx.xx.xx.xxx/27 proto static: RTNETLINK answers: Invalid argument

I already have several containers using some addresses from xx.xx.xx.xxx/29 and would love not to loose their access while reconfiguring. thank you

what happens when you run the ip route command manually? same error?

I can manually create a bridge and add multiple interface routes to it and it doesn’t say invalid argument, that sounds like there is a problem with the bridge?

e.g. you should be able to run commands below:

brctl addbr test
ifconfig test up
ip route add 10.99.99.0/29 dev test
ip route add 10.99.99.0/27 dev test
ip route add 10.99.99.0/27 dev test proto static
ip route add 10.99.99.0/25 dev test proto static
ip route add 10.99.99.0/30 dev test proto static
ip route add 10.99.98.0/30 dev test proto static
ip route show
ip route add 10.99.98.0/30 dev test proto static

none of the above showed errors in my case.

Cheers!

Jon.

thank you. will try that