[FS#3677] LCP terminated by peer after IPv6 interface config failure

OpenWrt Bugs openwrt-bugs at lists.openwrt.org
Wed Mar 10 12:25:53 GMT 2021


THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

A new Flyspray task has been opened.  Details are below. 

User who did this - John Marrett (johnfzc) 

Attached to Project - OpenWrt/LEDE Project
Summary - LCP terminated by peer after IPv6 interface config failure
Task Type - Bug Report
Category - Base system
Status - Unconfirmed
Assigned To - 
Operating System - All
Severity - Low
Priority - Very Low
Reported Version - Trunk
Due in Version - Undecided
Due Date - Undecided
Details - I have built a custom kernel firmware image for a low memory device (TP-Link TL-WR842N/ND v2) from the current snapshot. As part of my efforts to free memory space I removed IPv6 support from the kernel.

When I connect to the mobile network I receive an IP address and, immediately after, a "LCP terminated by peer" message.

Tue Mar  9 05:17:51 2021 daemon.notice pppd[6962]: Connect: 3g-wan  /dev/ttyACM0
Tue Mar  9 05:17:55 2021 daemon.err pppd[6962]: IPv6 socket creation failed: Address family not supported by protocol
Tue Mar  9 05:17:55 2021 daemon.err pppd[6962]: IPv6 socket creation failed: Address family not supported by protocol
Tue Mar  9 05:17:55 2021 daemon.notice pppd[6962]: local  IP address x.x.x.146
Tue Mar  9 05:17:55 2021 daemon.notice pppd[6962]: remote IP address x.x.x.146
Tue Mar  9 05:17:55 2021 daemon.notice pppd[6962]: primary   DNS address 8.8.8.8
Tue Mar  9 05:17:55 2021 daemon.notice pppd[6962]: secondary DNS address 8.8.4.4
Tue Mar  9 05:17:55 2021 daemon.info pppd[6962]: LCP terminated by peer
Tue Mar  9 05:17:55 2021 daemon.info pppd[6962]: Connect time 0.0 minutes.

I enabled debug messages for ppp and saw what I believe is the cause of the issue, because of the failed configuration of the IPv6 interfaces we send a interface configuration failure message to the peer:

Tue Mar  9 05:14:09 2021 daemon.debug pppd[6524]: sent [IPV6CP TermReq id=0x2 "Interface configuration failed"]

Shortly thereafter, and quite logically, we receive a termination request from the peer.

Tue Mar  9 05:14:09 2021 daemon.debug pppd[6524]: rcvd [LCP TermReq id=0x3]                                                                                          

I have a few questions about this issue:

 - Is there a way for me to work around this issue in config and allow the router to connect using only IPv4
 - Is there a way to change this behaviour by default, so that if you don't have IPv6 support in your build of OpenWrt PPP doesn't attempt to use IPv6
 - Is there a way to improve the quality of the log messages, if we're sending a termination message to the peer this should probably be reported even when not in debug mode. This is probably more of an upstream issue in pppd itself.

More information can be found at the following URL:
https://bugs.openwrt.org/index.php?do=details&task_id=3677

You are receiving this message because you have requested it from the Flyspray bugtracking system.  If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.



More information about the openwrt-bugs mailing list