Add route on Proxmox host through GUI?

Boman

New Member
Dec 13, 2020
4
0
1
46
Is it possible to add a route entry through the GUI for a Proxmox host?

I could of course add i the route in /etc/network/interfaces as a post-upp directive but this file is updated by Proxmox when changing stuff in the GUI so I'm afraid it will get overwritten.

In summary, what is the "correct" way of adding routes to Proxmox hosts?

Best regards,
/David Boman
 
If anyone is looking for an example:
post-up ip route add 192.168.2.0/24 via 192.168.2.1 dev ens192

Would be nice if this could be done via GUI sometime in the future.
 
for me it was:
ip route add 192.168.3.0/24 via 10.0.11.254

when you do it like this, you can check with:
ip route

It will automatically add the dev interface it finds the gateway on, be sure to have connected the vlan on an interface to Proxmox good luck.