Solutions to frequent L-disconnection issues in ADS in Ubuntu
Source: Internet
Author: User
It is very convenient to configure ADSL In Ubuntu. You can configure sudopppoeconf all the way. Then run the pondsl-provider command to start the dial-up and use the manual poff to disconnect the dial-up connection. In addition, we can use the plog command to view the connection log information. However, I recently encountered a particularly strange problem. Each time the last time, generally 4 ~ 5 minutes, sometimes 2 ~ In 3 minutes, the network is disconnected. You can use the pondsl-provider command to reconnect to the network again, but it will be disconnected in a few minutes. It is very convenient to configure ADSL In Ubuntu. You can configure sudo pppoeconf all the way. Then run the pon dsl-provider command to start the dial-up and use the manual poff to disconnect the dial-up connection. In addition, we can use the plog command to view the connection log information.
However, I recently encountered a particularly strange problem. Each time the last time, generally 4 ~ 5 minutes, sometimes 2 ~ In 3 minutes, the network is disconnected. You can use the pon dsl-provider command to reconnect again, but it will be disconnected in a few minutes. Use plog to view the following information:
Jun 30 08:16:28 ubuntu-kde-PCs pppd [5077]: No response to 4 echo-requests
Jun 30 08:16:28 ubuntu-kde-pc pppd [5077]: Serial link appears to be disconnected
.
Jun 30 08:16:28 ubuntu-kde-pc pppd [5077]: Connect time 4.5 minutes.
Jun 30 08:16:28 ubuntu-kde-pc pppd [5077]: Sent 5160 bytes, received 6576 bytes.
Jun 30 08:16:34 ubuntu-kde-pc pppd [5077]: Connection terminated.
Jun 30 08:16:34 ubuntu-kde-pc pppd [5077]: Modem hangup
At first, I thought the network was unstable, but there was no problem in switching to windows. I was so depressed. Confidence in linux has been downgraded. Later, I searched for the information online and finally found the reason.
Many ppp options are default. The number of lcp-echo-failure requests is set to 4, and the lcp-echo-interval value is set to 30 seconds. That is to say, if the ADSL server does not return the echo-reply signal within 120 seconds, UBuntu will think that the network has encountered a problem and will disconnect the network, which is quite uncomfortable. The crux of the problem is found, and the problem is solved. Open the configuration file/etc/ppp/options and set the number of lcp-echo-failure times to a large value, I changed this value to 15, and then the Internet access went smoothly.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service