Reply
New Member
Posts: 17
Registered: 2 weeks ago

LAN IPv6 does not update when PPPoE renews

Hi,

I'm coming from Mikrotik world (before that, I used to use routers legacy), and having "the same issue".

 

I have IPv6 over PPPoE set up on my router, everything is fine, except when my ISP does renew the PPPoE (for changing IPv4 and IPv6 Prefix). Every 48h my ISP does that.

 

So, everytime it happens, the router renews the IPv6, inside of it I can ping IPv6 servers, etc. But the clients in my LAN doesn't.

I don't know how to fix this. If I reboot the ER-X, everything will be fixed, so I can make a script to reboot the ER-X everyday at 4A.M, but, I'd like to see a "real"solution.
When I put my Archer C7 as a router in my lan, if the IPv6 renews, every gadget/PC in network will automatically renew its IPv6s...

Best regards.

Senior Member
Posts: 5,692
Registered: ‎01-04-2017
Kudos: 795
Solutions: 287

Re: LAN IPv6 does not update when PPPoE renews

Post config
Member
Posts: 238
Registered: ‎01-10-2016
Kudos: 48
Solutions: 21

Re: LAN IPv6 does not update when PPPoE renews

Your provider changes your delegated prefix every 48 hours? Ouch.

New Member
Posts: 17
Registered: 2 weeks ago

Re: LAN IPv6 does not update when PPPoE renews


@smyers119 wrote:
Post config

There is:

 

admin@ubnt:~$ show configuration
firewall {
    all-ping enable
    broadcast-ping disable
    ipv6-name WANv6_IN {
        default-action drop
        description "WAN inbound traffic forwarded to LAN"
        enable-default-log
        rule 10 {
            action accept
            description "Allow established/related sessions"
            state {
                established enable
                related enable
            }
        }
        rule 20 {
            action drop
            description "Drop invalid state"
            state {
                invalid enable
            }
        }
        rule 30 {
            action accept
            description "Allow IPv6 icmp"
            protocol icmpv6
            state {
            }
        }
    }
    ipv6-name WANv6_LOCAL {
        default-action drop
        description "WAN inbound traffic to the router"
        enable-default-log
        rule 10 {
            action accept
            description "Allow established/related sessions"
            state {
                established enable
                related enable
            }
        }
        rule 20 {
            action drop
            description "Drop invalid state"
            state {
                invalid enable
            }
        }
        rule 30 {
            action accept
            description "Allow IPv6 icmp"
            protocol icmpv6
        }
        rule 40 {
            action accept
            description "allow dhcpv6"
            destination {
                port 546
            }
            protocol udp
            source {
                port 547
            }
        }
    }
    ipv6-receive-redirects disable
    ipv6-src-route disable
    ip-src-route disable
    log-martians enable
    name WAN_IN {
        default-action drop
        description "WAN to internal"
        rule 10 {
            action accept
            description "Allow established/related"
            state {
                established enable
                related enable
            }
        }
        rule 20 {
            action drop
            description "Drop invalid state"
            state {
                invalid enable
            }
        }
    }
    name WAN_LOCAL {
        default-action drop
        description "WAN to router"
        rule 10 {
            action accept
            description "Allow established/related"
            state {
                established enable
                related enable
            }
        }
        rule 20 {
            action drop
            description "Drop invalid state"
            state {
                invalid enable
            }
        }
    }
    options {
        mss-clamp {
            mss 1412
        }
    }
    receive-redirects disable
    send-redirects enable
    source-validation disable
    syn-cookies enable
}
interfaces {
    ethernet eth0 {
        description "Internet (PPPoE)"
        duplex auto
        pppoe 0 {
            default-route auto
            dhcpv6-pd {
                pd 0 {
                    interface switch0 {
                        service slaac
                    }
                    prefix-length /64
                }
                rapid-commit enable
            }
            firewall {
                in {
                    ipv6-name WANv6_IN
                    name WAN_IN
                }
                local {
                    ipv6-name WANv6_LOCAL
                    name WAN_LOCAL
                }
            }
            ipv6 {
                address {
                    autoconf
                }
                dup-addr-detect-transmits 1
                enable {
                }
            }
            mtu 1492
            name-server auto
            password ****************
            user-id cliente@cliente
        }
        speed auto
    }
    ethernet eth1 {
        description Local
        duplex auto
        speed auto
    }
    ethernet eth2 {
        description Local
        duplex auto
        speed auto
    }
    ethernet eth3 {
        description Local
        duplex auto
        speed auto
    }
    ethernet eth4 {
        description Local
        duplex auto
        poe {
            output pthru
        }
        speed auto
    }
    loopback lo {
    }
    switch switch0 {
        address 192.168.1.1/24
        description Local
        switch-port {
            interface eth1 {
            }
            interface eth2 {
            }
            interface eth3 {
            }
            interface eth4 {
            }
        }
    }
}
protocols {
    static {
        interface-route6 ::/0 {
            next-hop-interface pppoe0 {
            }
        }
    }
}
service {
    dhcp-server {
        disabled false
        hostfile-update disable
        shared-network-name LAN {
            authoritative enable
            subnet 192.168.1.0/24 {
                default-router 192.168.1.1
                dns-server 192.168.1.1
                lease 86400
                start 192.168.1.38 {
                    stop 192.168.1.243
                }
            }
        }
    }
    dns {
        forwarding {
            cache-size 150
            listen-on switch0
        }
    }
    gui {
        https-port 443
    }
    nat {
        rule 5010 {
            description "masquerade for WAN"
            outbound-interface pppoe0
            type masquerade
        }
    }
    ssh {
        port 22
        protocol-version v2
    }
    unms {
        disable
    }
}
system {
    host-name ubnt
    login {
        user admin {
            authentication {
                encrypted-password ****************
            }
            level admin
        }
    }
    ntp {
        server 0.ubnt.pool.ntp.org {
        }
        server 1.ubnt.pool.ntp.org {
        }
        server 2.ubnt.pool.ntp.org {
        }
        server 3.ubnt.pool.ntp.org {
        }
    }
    syslog {
        global {
            facility all {
                level notice
            }
            facility protocols {
                level debug
            }
        }
    }
    time-zone America/Recife
}
New Member
Posts: 17
Registered: 2 weeks ago

Re: LAN IPv6 does not update when PPPoE renews

[ Edited ]

@kpfleming wrote:

Your provider changes your delegated prefix every 48 hours? Ouch.


Yes.
Actually they change the IPv4, plus the delegated prefix.

And it hurts when for any reason, my pppoe goes up in the middle of the day, and after 48h, it suddenly reconnects.
So I'll make a script, to refresh the PPPoE every day at 4 AM, and for it, I need to fix the issue related in this topic.

Senior Member
Posts: 5,692
Registered: ‎01-04-2017
Kudos: 795
Solutions: 287

Re: LAN IPv6 does not update when PPPoE renews

Try removing the static interface route6
New Member
Posts: 37
Registered: ‎11-09-2015
Kudos: 2

Re: LAN IPv6 does not update when PPPoE renews

[ Edited ]

I'm not very familiar with dhcpv6 pd, but do you need a prefix-id and host-address statement in the section where you're setting up the delegation onto switch0 ? 

 

When it happens again, you could post the results of  "ip -6 addr" and "ip -6 route"   .

New Member
Posts: 17
Registered: 2 weeks ago

Re: LAN IPv6 does not update when PPPoE renews


@smyers119 wrote:
Try removing the static interface route6

Didn't change.

I force the renewing of PPPoE, IPv6 stoped working until I restart my ethernet.

Senior Member
Posts: 5,692
Registered: ‎01-04-2017
Kudos: 795
Solutions: 287

Re: LAN IPv6 does not update when PPPoE renews

post output of "cat /etc/ravdvd.conf"
New Member
Posts: 17
Registered: 2 weeks ago

Re: LAN IPv6 does not update when PPPoE renews


@tw99 wrote:

I'm not very familiar with dhcpv6 pd, but do you need a prefix-id and host-address statement in the section where you're setting up the delegation onto switch0 ? 

 

When it happens again, you could post the results of  "ip -6 addr" and "ip -6 route"   .


Yes, I need. Actually, it was necessary in the Mikrotik World.

When I used to use a TPLINK Archer C7, it was setup automatically. When PPPoE 'renewed' the new IPv6 was released instantly to all devices connected.

 

Here is the logs:

 

admin@ubnt:~$ ip -6 addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: switch0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qlen 1000
    inet6 2804:7f7:db80:c638:feec:daff:fe7a:47c3/64 scope global
       valid_lft forever preferred_lft forever
    inet6 fe80::feec:daff:fe7a:47c3/64 scope link
       valid_lft forever preferred_lft forever
4: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qlen 1000
    inet6 fe80::feec:daff:fe7a:47be/64 scope link
       valid_lft forever preferred_lft forever
6: eth2: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qlen 1000
    inet6 fe80::feec:daff:fe7a:47c0/64 scope link
       valid_lft forever preferred_lft forever
7: eth3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qlen 1000
    inet6 fe80::feec:daff:fe7a:47c1/64 scope link
       valid_lft forever preferred_lft forever
8: eth4: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qlen 1000
    inet6 fe80::feec:daff:fe7a:47c2/64 scope link
       valid_lft forever preferred_lft forever
13: pppoe0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1492 qlen 100
    inet6 2804:7f7:d42b:8fcc:f572:b85:83a1:2159/64 scope global dynamic
       valid_lft forever preferred_lft forever
    inet6 fe80::f572:b85:83a1:2159/10 scope link
       valid_lft forever preferred_lft forever

 

and...

 

admin@ubnt:~$ ip -6 route
2804:7f7:d42b:8fcc::/64 dev pppoe0  proto kernel  metric 256
2804:7f7:db80:c638::/64 dev switch0  proto kernel  metric 256
fe80::/64 dev switch0  proto kernel  metric 256
fe80::/64 dev eth0  proto kernel  metric 256
fe80::/64 dev eth2  proto kernel  metric 256
fe80::/64 dev eth3  proto kernel  metric 256
fe80::/64 dev eth4  proto kernel  metric 256
fe80::/10 dev pppoe0  proto kernel  metric 256
default via fe80::d2f0:dbff:fe62:800 dev pppoe0  proto ra  metric 1024  expires 1677sec hoplimit 64

Thanks.

New Member
Posts: 37
Registered: ‎11-09-2015
Kudos: 2

Re: LAN IPv6 does not update when PPPoE renews

Those look OK, to the extent that you have a default route via pppoe; a global address on the pppoe interface and another one from a different prefix (presumably the delegated one) on switch0.

 

If connectivity is OK from the router, but not from devices on switch0, then it's probably something to do with the router advertisements on the LAN, hence the request above for radvd.conf

 

 

 

 

New Member
Posts: 17
Registered: 2 weeks ago

Re: LAN IPv6 does not update when PPPoE renews


@tw99 wrote:

Those look OK, to the extent that you have a default route via pppoe; a global address on the pppoe interface and another one from a different prefix (presumably the delegated one) on switch0.

 

If connectivity is OK from the router, but not from devices on switch0, then it's probably something to do with the router advertisements on the LAN, hence the request above for radvd.conf

 

 

 

 


Everything works, except when PPPoE renews (as I said).

Actually, the connection keeps working, but I think it tries to use IPv6, and fallback to IPv4, then the service "works".

I really don't know what to do to fix this "router advertisement" issue Man Sad

New Member
Posts: 17
Registered: 2 weeks ago

Re: LAN IPv6 does not update when PPPoE renews

Some one could help me?

New Member
Posts: 37
Registered: ‎11-09-2015
Kudos: 2

Re: LAN IPv6 does not update when PPPoE renews

post output of "cat /etc/ravdvd.conf"  as requested earlier.

 

 

New Member
Posts: 17
Registered: 2 weeks ago

Re: LAN IPv6 does not update when PPPoE renews


@tw99 wrote:

post output of "cat /etc/ravdvd.conf"  as requested earlier.

 

 


admin@ubnt:~$ sudo cat /etc/radvd.conf
interface switch0 {
#   This section was automatically generated by the Vyatta
#   configuration sub-system.  Do not edit it.
#
#   service type [slaac]
#
    IgnoreIfMissing on;
    AdvSendAdvert on;
    RDNSS 2804:7f4:2002:1005::99 2804:7f4:2002:1005::98  { };
    AdvManagedFlag off;
    AdvOtherConfigFlag off;
    prefix ::/64 {
          AdvOnLink on;
          AdvAutonomous on;
    };
};

I'm so sorry.

Shoud've posted before.

New Member
Posts: 17
Registered: 2 weeks ago

Re: LAN IPv6 does not update when PPPoE renews

After a lot of research, I figured out the issue is about RA... When Prefix changes, It DOES send the new IPv6 to LAN, but DOES NOT clean the old IPv6... Maybe I shouldn't use SLAAC, and setup through " interfaces > switch > switch0 > ipv6 > router-advert "... But I don't have specift knowledge to setup valid-lifetime or preferred-lifetime about RA.

 

This topic fix the issue using Mikrotik: https://forum.mikrotik.com/viewtopic.php?f=2&t=119901#p593106

 

When Prefix changes, after 1m30s, IPv6 in LAN is updated.

 

Any idea?

New Member
Posts: 17
Registered: 2 weeks ago

Re: LAN IPv6 does not update when PPPoE renews

Please. Someone? Man Sad

Senior Member
Posts: 5,692
Registered: ‎01-04-2017
Kudos: 795
Solutions: 287

Re: LAN IPv6 does not update when PPPoE renews

That's not the correct way to fix this problem. But you can define your own ra perimeters under your interface. Remove "service slaac" from your dhcpv6 config so you don't have them conflicting
New Member
Posts: 17
Registered: 2 weeks ago

Re: LAN IPv6 does not update when PPPoE renews


@smyers119 wrote:
That's not the correct way to fix this problem. But you can define your own ra perimeters under your interface. Remove "service slaac" from your dhcpv6 config so you don't have them conflicting

I tried to, with no success.

The problem isn't the router advertisement (as I got last days), the problem is that RA doesn't clean old IPv6 who was advertised before, and it's not valid anymore.

 

I just wanted a way where the router "sends" a signal that "cleans" those old IPv6 who was advertised and is not valid anymore.


OpenWRT does it. Automatically.

Senior Member
Posts: 5,692
Registered: ‎01-04-2017
Kudos: 795
Solutions: 287

Re: LAN IPv6 does not update when PPPoE renews

radvd by default on prefix update should send a 0 lifetime packet causing all your hosts to remove that information. Obviously it's not doing what its suppose to do. The question is, why? Is your ISP doing something screwy or is there a bug with radvd? @UBNT-benpin can you look into this.
Reply