1 minute read (137 words).
How to add network routes to Proxmox NetPlan
Linux, Networking
I run a strange network topology with various VLANs and VPNs at home, in remote locations and in the cloud. Because of this, I needed to add routes to the NetPlan configuration file.
In order to manually edit the interfaces file, first copy it:
cp /etc/network/interfaces /etc/network/interfaces.new
The file will contain the configuration for all interfaces configured via the GUI. Find the interface the routes next hop is associated with and add the network host or subnet and destination.
vi /etc/network/interfaces.new
auto vmbr0
iface vmbr0 inet static
address 192.168.1.100/24
gateway 192.168.1.1
ovs_type OVSBridge
ovs_ports enp3s0 bond0
up ip route add 172.16.0.0/13 via 192.168.1.5 dev vmbr0
The up ip route commands dev interface should match the iface name.
The host will need to be rebooted for the route to take affect.
- Linux, Networking
- proxmox
- 22 October, 2019