Ubuntu pppoe dial-up broadband issues

Since no visual interface settings, so a command terminal method.

Test environment: Ubuntu 18.0.4

pppoe configuration: $ sudo pppoeconf

This interface then enter a series of broadband dial-up settings.

Networking: $ sudo pon dsl-provider

 

Disconnection: $ sudo poff

View Log: $ plog

Interface information: $ ifconfig ppp0

Note: net-tools is not installed can enter the command: apt install net-tools for installation.

Disconnected problem:

 

sudo service network-manager stop

sudo rm /var/lib/NetworkManager/NetworkManager.state (behind rm spaces)

sudo service network-manager start

################################################################################

Change dsl-provider profiles

The configuration file changes as follows

# Minimalistic default options file for DSL/PPPoE connections
noipdefault
defaultroute
replacedefaultroute
hide-password
#lcp-echo-interval 30
#lcp-echo-failure 4
lcp-echo-interval 10
lcp-echo-failure 10
noauth
persist
#mtu 1492
#persist
#maxfail 0
#holdoff 20
mtu 1000
persist
maxfail 0
holdoff 0
plugin rp-pppoe.so
nic-enp0s25
usepeerdns
user "××××××××××"

then

$ sudo gedit /etc/ppp/options

找到以下两个参数位置,并更改数值

  1. lcp-echo-interval 10
  2. lcp-echo-failure 10

最后重新拨号。(先断开,再拨号)

Guess you like

Origin www.cnblogs.com/delongzhang/p/11488423.html