can not set gateway of vm

newltf

New Member
May 10, 2022
1
0
1
pve 's gateway is 192.168.5.1 , the vm(arch and linux) use the host 's gateway by default.
I want to change the vm's gateway.
But after changing the vm's gateway by using "ip route", the gateway will be reset to 192.168.5.1 after rebooting.