Open ValdikSS opened 1 year ago
@Ansuel
Ok, I found the root of the issue.
I have ppp0
interface configured as proto none
in /etc/config/network
. When L2TP connection spawns pppd
, the interface have ppp0
name, which gets renamed just a moment later by pppd
.
However, since the interface is configured in UCI, it is set to up
state by netifd
as soon as the interface appears. Apparently, you can't rename up
'ped interfaces, that's why pppd fails to do so.
From the patches I see in master, it should fix this issue: there's a patch to create the interface with proper name from the start.
Workaround:
ifdown ppp0
ifup l2tpwan
ifup ppp0
Describe the bug
I have L2TP connection configured via UCI (
/etc/config/network
). I'm getting very frequent errors from pppd regarding interface renaming when trying to connect over L2TP (pppol2tp.so).pppd: Couldn't rename interface ppp0 to l2tp-test: Resource busy
Since this error is fatal, I have to
ifup
the interface multiple times, up to 10-15. Only after several attempts, it finally manages to rename the interface and connect to L2TP.There are several patches in
master
regarding interface creation for pppd. Should they be backported to 22.03.x?OpenWrt version
22.03.5
OpenWrt target/subtarget
x86/legacy
Device
legacy
Image kind
Official downloaded image
Steps to reproduce
Actual behaviour
Most of the time, the connection is not established with
pppd: Couldn't rename interface ppp0 to l2tp-test: Resource busy
error.Expected behaviour
The connection is established successfully, without race conditions.
Additional info
Diffconfig
No response
Terms