Page 1 of 1

PPPoE on session terminate removes ipv6 route

Posted: 28 Sep 2017, 12:35
by lukas
Hi,

I have problem with ipv6 route which is removed on session terminate. For example after I restart device with pppoe session it replacing old session with new and after I succesfull connect to new session old one is terminating and removing Delegated-IPv6-Prefix route.

Code: Select all

info: ppp1: dhcpv6: route add 2a11:1234:0:6::/64 via 2a11:1234:0:5:200::
info: ppp0: send [LCP TermReq id=14]
info: ppp0: disconnected
So right after route is added old session is terminated and delete this route which is important for delegated ipv6 to works properly.
In configuration file i have set:

Code: Select all

[common]
single-session=replace
Any one please can help with thath or face similar problem and have some nice solution to solve that ?

Re: PPPoE on session terminate removes ipv6 route

Posted: 12 Oct 2017, 09:45
by lukas
Forgot to mention I use version 1.11.2

Re: PPPoE on session terminate removes ipv6 route

Posted: 12 Oct 2017, 09:50
by Dmitry
try
[ipv6-dhcp]
route-via-gw=0

Re: PPPoE on session terminate removes ipv6 route

Posted: 16 Oct 2017, 10:44
by lukas
Unfortunately it doesn't helped. The difference is that adding route via dev not gw and still removes route on old session terminate. For now I solved it by script ip-up with IPV6_PREFIX and IPV6_DELEGATED_PREFIX variables and sleep is added to run after session terminate.

Re: PPPoE on session terminate removes ipv6 route

Posted: 16 Oct 2017, 12:48
by Dmitry
commit 5b193c892c75e52e10be96ec16aad6394e444020