Ipvlan network mask extension

Hello, I have a question I have over 200 containers on my server and I have them connected to the network via ipvlan everything works perfectly but I’m running out of addresses from the subnet /24 and I need to increase the mask the problem is that I have to disconnect all the containers from the network and then reconnect them all one by one so I have a question is there any way to connect all the containers back in one command after modifying the network.

It depends on how you created the containers in the first place. You can use a script or just change a value in a yaml file. Or if you name the new network the same as the current network is, you don’t have to change anything just recreate the ontainers.