S
S
Sergey Ryzhkin2017-02-16 10:34:12
CentOS
Sergey Ryzhkin, 2017-02-16 10:34:12

Static route on CentOS for ppp0, what did you forget?

Greetings, Comrades!
Set up PPPoE from Rostelecom for telephony. But the problem is that ppp0 has made itself the default interface and when I try to push from the server to external it goes through ppp0. I tried everything that they write in the internet, but something does not work.
Here is the route of the interface to the LAN:
1cb00b6cd75045c38c761c53bf4e4328.png
Here is the route of the ppp0 connection:
21ed2565c49644c1ba6db118d5d7f0ab.png
Here is nestat -rn
e0d3798f23e148a9b6bd55169fa93be5.png
If pinging everything goes through ppp0:
ed86287b4ff44972baa66566b4be4a2e.png
I read somewhere that you need to DEFROUTE=no in ifcfg-ppp0, but then the connection does not rise.
When I enter route add default gw 192.168.50.250 - everything works, but after restarting everything flies. How is it to be memorized? I added it to route-eno2

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Karabanov, 2017-02-16
@Franciz

DEFROUTE=no should help, you must be doing something wrong.
It’s bad to do this, but try:
Remove the client from the PPPoE config:

defaultroute
replacedefaultroute

And the default route will not change during the establishment of a PPPoE connection.
Look for the config somewhere in /etc/ppp/
You can try this:
Or this:
Do not forget to add persist to the PPPoE client config so that the connection does not break.
Remember that the usepeerdns option in the PPPoE client config replaces DNS with provider ones, remove it if you don't need it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question