You are not logged in.

#1 2017-08-02 14:28:12

ojZim
Member
From: Iran
Registered: 2013-05-05
Posts: 34

How can I set NetworkManager to connect to pppoe on boot?

Hello.
I have installed rp-pppoe, then configured pppoe using: pppoe-setup command. then I have started it using pppoe-start.
Currently exists two problem:

1- When I want to connect to pppoe, I must firstly deactivate  my network interface from nmtui, then I can connect to internet using pppoe-start! If I don't deactivate it from nmtui first, pppoe said it's connected, but no internet access.

2- I can't set network manager to start pppoe on boot. but I have created a systemd service to do that, it's working, but when internet connection lost, it's not reconnecting.

/usr/lib/systemd/system/ojzim.service:

[Unit]
Description=ojzim
After=network.target

[Service]
WorkingDirectory=/root
Type=forking
ExecStart=/bin/bash /etc/ojzim.sh
KillMode=process

[Install]
WantedBy=multi-user.target



/etc/ojzim.sh:
#!/bin/bash
sleep 5
pppoe-start &

What can I do? Thanks.

Last edited by ojZim (2017-08-02 14:33:43)

Offline

Board footer

Powered by FluxBB