hello I have a machine that when starting I have to add some routes for example:
route add -net 111.0.0.0 netmask 240.0.0.0 enp0s3
route add -net 222.0.0.0/8 dev enp0s3
I put these lines in /etc/network/interfaces
#up route add -net 111.0.0.0 netmask 240.0.0.0 enp0s3
#up route add -net 222.0.0.0/8 dev enp0s3
but when restarting it does not raise them, sometimes even the network throws me and I have to enter the console to restart it
Any idea how to get them to stand up on their own? Yes, when I start them I enter them by command, no problem, but it is dangerous to forget to enter them by hand
route add -net 111.0.0.0 netmask 240.0.0.0 enp0s3
route add -net 222.0.0.0/8 dev enp0s3
I put these lines in /etc/network/interfaces
#up route add -net 111.0.0.0 netmask 240.0.0.0 enp0s3
#up route add -net 222.0.0.0/8 dev enp0s3
but when restarting it does not raise them, sometimes even the network throws me and I have to enter the console to restart it
Any idea how to get them to stand up on their own? Yes, when I start them I enter them by command, no problem, but it is dangerous to forget to enter them by hand