I'm working with Ubuntu 24.04 Desktop and I created a VM connected to the default libvirt-NAT-Bridge and a second isolated network.
The bridged network is virbr0: 192.168.122.0/24
the host got 192.168.122.1
and the VM got static 192.168.122.128
. The isolated network is 10.95.212.0/24
.
I want to be able to ping/ssh into hosts in the isolated network that's why I set a static route (route add ...
) on the host. It works, but it did not survive a reboot. I tried nmtui
but the route vanishes on reboot.
I thought about virsh net-edit default
, but I didn't found any documentation how to do it.
Where do I have to define the route that it survives the reboot?