Already asked a similar question, but the answer is not exactly that, so a few modifications of it. In which file you need to add routes, so that when the PC is restarted / on-off, they, routes, will remain and be loaded automatically. i.e. to be defaulted?

System CentOS 6, connecting to the network via VPN. When I enter it through the terminal, everything works, I don’t have any complaints, but I’m fed up with constantly introducing these routes, as this causes some inconvenience.

    2 answers 2

    Static route configuration is stored in a /etc/sysconfig/network-scripts/route-interface file. For example, static routes for the eth0 interface would be stored in the /etc/sysconfig/network-scripts/route-eth0 file. The route-interface file has two formats: IP command arguments and network/netmask directives.

    It’s strange that you didn’t ask Google, on the distribution site everything is detailed.

    • Thanks for the tip. I walked around and around and did not get it. It's a shame that I guessed, tried but at the last moment started to doubt and rolled back. And what about google, but why, then, are we here!? - osbiz 1
    • Everything turned out to be much simpler - I created the file / etc / sysconfig / network- scripts / route-eth1 (I’ve got the connection through eth1), put the execution rights to it, entered the necessary data, corrected the ifup-routes file, and ... a miracle, everything saved and working. Thanks to everyone who helped in this matter. It remains to find how to make the start button for the pppd / etc / ppp / peers / call xxxx file as root. Can someone tell me? - osbiz 1

    how to make the start button, see here