Network routes

Pierluigi Rondoni

New Member
May 28, 2019
11
0
1
31
Hello,
I'm having trouble adding routes permanently.

I tried to edit the /etc/network/interfaces file but I always get an error.

Could someone help me out?

Thanks
 
I configured 2 interfaces, 1 production with default route and 1 management
I need to route a subnet behind the management one
I can add the route normally with 'ip route add...' but I need to configure it permanently
 
This is what happens when I try to restart networking:

root@proxmox:~# cat /etc/network/interfaces
auto lo
iface lo inet loopback

auto ens192
iface ens192 inet static
address 172.19.19.185
netmask 255.255.255.0
gateway 172.19.19.1

auto ens224
iface ens224 inet static
address 172.28.116.15
netmask 255.255.255.0
gateway 172.28.116.1


root@proxmox:~# service networking restart
Job for networking.service failed because the control process exited with error code.
See "systemctl status networking.service" and "journalctl -xe" for details.


root@proxmox:~# systemctl status networking.service
● networking.service - Raise network interfaces
Loaded: loaded (/lib/systemd/system/networking.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Wed 2019-11-20 16:27:38 CET; 10s ago
Docs: man:interfaces(5)
Process: 1451 ExecStart=/sbin/ifup -a --read-environment (code=exited, status=1/FAILURE)
Main PID: 1451 (code=exited, status=1/FAILURE)

Nov 20 16:27:38 proxmox systemd[1]: Starting Raise network interfaces...
Nov 20 16:27:38 proxmox ifup[1451]: RTNETLINK answers: File exists
Nov 20 16:27:38 proxmox ifup[1451]: ifup: failed to bring up ens224
Nov 20 16:27:38 proxmox systemd[1]: networking.service: Main process exited, code=exited, status=1/FAILURE
Nov 20 16:27:38 proxmox systemd[1]: networking.service: Failed with result 'exit-code'.
Nov 20 16:27:38 proxmox systemd[1]: Failed to start Raise network interfaces.
root@proxmox:~#
 
Try this...https://www.cyberciti.biz/tips/configuring-static-routes-in-debian-or-red-hat-linux-systems.html
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!