Problems with IPv6 for the last couple of months

Started by marcelolagos, October 08, 2024, 12:30:42 AM

Previous topic - Next topic
Hello:

Late August, I started having issues with IPv6 as it was showing 80% of the packets lost. Pings were working for a few seconds then no connectivity, then ping again for a few seconds, in an endless loop. I thought it was an issue with the ISP.

A few weeks ago, I decided to reinstall my OPNSense to clean up my configuration.
Now I cannot get an IPv6 or a delegation at all.

IPV4 works without problems.

But the odd thing is, it seems the ISP DHCP is sending me both, but OPNSense is not assigning/using them:


2024-10-07T16:14:19-06:00 Notice dhcp6c 29602 removing server (ID: 00:01:00:01:2b:b4:84:ea:ee:71:3f:4f:d8:a6)
2024-10-07T16:14:19-06:00 Notice dhcp6c 29602 removing an event on vtnet0, state=REQUEST
2024-10-07T16:14:19-06:00 Notice dhcp6c 29602 no responses were received
2024-10-07T16:13:48-06:00 Notice dhcp6c 29602 reset a timer on vtnet0, state=REQUEST, timeo=9, retrans=30271
2024-10-07T16:13:48-06:00 Notice dhcp6c 29602 send request to ff02::1:2%vtnet0
2024-10-07T16:13:48-06:00 Notice dhcp6c 29602 set IA_PD
2024-10-07T16:13:48-06:00 Notice dhcp6c 29602 set IA_PD prefix
2024-10-07T16:13:48-06:00 Notice dhcp6c 29602 set option request (len 4)
2024-10-07T16:13:48-06:00 Notice dhcp6c 29602 set elapsed time (len 2)
2024-10-07T16:13:48-06:00 Notice dhcp6c 29602 set identity association
2024-10-07T16:13:48-06:00 Notice dhcp6c 29602 set IA address
2024-10-07T16:13:48-06:00 Notice dhcp6c 29602 set server ID (len 14)
2024-10-07T16:13:48-06:00 Notice dhcp6c 29602 set client ID (len 14)
2024-10-07T16:13:48-06:00 Notice dhcp6c 29602 Sending Request
2024-10-07T16:13:18-06:00 Notice dhcp6c 29602 reset a timer on vtnet0, state=REQUEST, timeo=8, retrans=30415

[...]

2024-10-07T16:11:23-06:00 Notice dhcp6c 29602 reset a timer on vtnet0, state=REQUEST, timeo=2, retrans=4211
2024-10-07T16:11:23-06:00 Notice dhcp6c 29602 send request to ff02::1:2%vtnet0
2024-10-07T16:11:23-06:00 Notice dhcp6c 29602 set IA_PD
2024-10-07T16:11:23-06:00 Notice dhcp6c 29602 set IA_PD prefix
2024-10-07T16:11:23-06:00 Notice dhcp6c 29602 set option request (len 4)
2024-10-07T16:11:23-06:00 Notice dhcp6c 29602 set elapsed time (len 2)
2024-10-07T16:11:23-06:00 Notice dhcp6c 29602 set identity association
2024-10-07T16:11:23-06:00 Notice dhcp6c 29602 set IA address
2024-10-07T16:11:23-06:00 Notice dhcp6c 29602 set server ID (len 14)
2024-10-07T16:11:23-06:00 Notice dhcp6c 29602 set client ID (len 14)
2024-10-07T16:11:23-06:00 Notice dhcp6c 29602 Sending Request
2024-10-07T16:11:21-06:00 Notice dhcp6c 29602 reset a timer on vtnet0, state=REQUEST, timeo=1, retrans=2061
2024-10-07T16:11:21-06:00 Notice dhcp6c 29602 send request to ff02::1:2%vtnet0
2024-10-07T16:11:21-06:00 Notice dhcp6c 29602 set IA_PD
2024-10-07T16:11:21-06:00 Notice dhcp6c 29602 set IA_PD prefix
2024-10-07T16:11:21-06:00 Notice dhcp6c 29602 set option request (len 4)
2024-10-07T16:11:21-06:00 Notice dhcp6c 29602 set elapsed time (len 2)
2024-10-07T16:11:21-06:00 Notice dhcp6c 29602 set identity association
2024-10-07T16:11:21-06:00 Notice dhcp6c 29602 set IA address
2024-10-07T16:11:21-06:00 Notice dhcp6c 29602 set server ID (len 14)
2024-10-07T16:11:21-06:00 Notice dhcp6c 29602 set client ID (len 14)
2024-10-07T16:11:21-06:00 Notice dhcp6c 29602 Sending Request
2024-10-07T16:11:20-06:00 Notice dhcp6c 29602 reset a timer on vtnet0, state=REQUEST, timeo=0, retrans=1018
2024-10-07T16:11:20-06:00 Notice dhcp6c 29602 send request to ff02::1:2%vtnet0
2024-10-07T16:11:20-06:00 Notice dhcp6c 29602 set IA_PD
2024-10-07T16:11:20-06:00 Notice dhcp6c 29602 set IA_PD prefix
2024-10-07T16:11:20-06:00 Notice dhcp6c 29602 set option request (len 4)
2024-10-07T16:11:20-06:00 Notice dhcp6c 29602 set elapsed time (len 2)
2024-10-07T16:11:20-06:00 Notice dhcp6c 29602 set identity association
2024-10-07T16:11:20-06:00 Notice dhcp6c 29602 set IA address
2024-10-07T16:11:20-06:00 Notice dhcp6c 29602 set server ID (len 14)
2024-10-07T16:11:20-06:00 Notice dhcp6c 29602 set client ID (len 14)
2024-10-07T16:11:20-06:00 Notice dhcp6c 29602 a new XID (d32104) is generated
2024-10-07T16:11:20-06:00 Notice dhcp6c 29602 Sending Request
2024-10-07T16:11:20-06:00 Notice dhcp6c 29602 picked a server (ID: 00:01:00:01:2b:b4:84:ea:ee:71:3f:4f:d8:a6)
2024-10-07T16:11:19-06:00 Notice dhcp6c 29602 reset timer for vtnet0 to 0.992757
2024-10-07T16:11:19-06:00 Notice dhcp6c 29602 server ID: 00:01:00:01:2b:b4:84:ea:ee:71:3f:4f:d8:a6, pref=-1
2024-10-07T16:11:19-06:00 Notice dhcp6c 29602 IA_PD prefix: 2606:8e80:5003:XXXX::/56 pltime=2592000 vltime=2592000
2024-10-07T16:11:19-06:00 Notice dhcp6c 29602 get DHCP option IA_PD prefix, len 25
2024-10-07T16:11:19-06:00 Notice dhcp6c 29602 IA_PD: ID=0, T1=604800, T2=1209600
2024-10-07T16:11:19-06:00 Notice dhcp6c 29602 get DHCP option IA_PD, len 41
2024-10-07T16:11:19-06:00 Notice dhcp6c 29602 get DHCP option DNS, len 32
2024-10-07T16:11:19-06:00 Notice dhcp6c 29602 IA_NA address: 2606:8e80:5010:0:1::XXXX pltime=2592000 vltime=2592000
2024-10-07T16:11:19-06:00 Notice dhcp6c 29602 get DHCP option IA address, len 24
2024-10-07T16:11:19-06:00 Notice dhcp6c 29602 IA_NA: ID=0, T1=604800, T2=1209600
2024-10-07T16:11:19-06:00 Notice dhcp6c 29602 get DHCP option identity association, len 40
2024-10-07T16:11:19-06:00 Notice dhcp6c 29602 DUID: 00:01:00:01:2b:b4:84:ea:ee:71:3f:4f:d8:a6
2024-10-07T16:11:19-06:00 Notice dhcp6c 29602 get DHCP option server ID, len 14
2024-10-07T16:11:19-06:00 Notice dhcp6c 29602 DUID: 00:01:00:01:2e:96:f3:0a:0c:42:a1:6a:25:f8
2024-10-07T16:11:19-06:00 Notice dhcp6c 29602 get DHCP option client ID, len 14
2024-10-07T16:11:19-06:00 Notice dhcp6c 29602 receive advertise from fe80::4200:ff:fe68:1fe3%vtnet0 on vtnet0
2024-10-07T16:11:19-06:00 Notice dhcp6c 29602 reset a timer on vtnet0, state=SOLICIT, timeo=0, retrans=1075
2024-10-07T16:11:19-06:00 Notice dhcp6c 29602 send solicit to ff02::1:2%vtnet0
2024-10-07T16:11:19-06:00 Notice dhcp6c 29602 set IA_PD
2024-10-07T16:11:19-06:00 Notice dhcp6c 29602 set IA_PD prefix
2024-10-07T16:11:19-06:00 Notice dhcp6c 29602 set option request (len 4)
2024-10-07T16:11:19-06:00 Notice dhcp6c 29602 set elapsed time (len 2)
2024-10-07T16:11:19-06:00 Notice dhcp6c 29602 set identity association
2024-10-07T16:11:19-06:00 Notice dhcp6c 29602 set client ID (len 14)
2024-10-07T16:11:19-06:00 Notice dhcp6c 29602 a new XID (5e480) is generated
2024-10-07T16:11:19-06:00 Notice dhcp6c 29602 Sending Solicit
2024-10-07T16:11:19-06:00 Notice dhcp6c 29602 reset a timer on vtnet0, state=INIT, timeo=0, retrans=69
2024-10-07T16:11:19-06:00 Notice dhcp6c 29602 called
2024-10-07T16:11:19-06:00 Notice dhcp6c 29602 duplicated interface: vtnet0
2024-10-07T16:11:19-06:00 Notice dhcp6c 29602 called


My config is pretty simple for DHCP6:


interface vtnet0 {
  send ia-na 0; # request stateful address
  send ia-pd 0; # request prefix delegation
  request domain-name-servers;
  request domain-name;
  script "/var/etc/dhcp6c_wan_script.sh"; # we'd like some nameservers please
};
id-assoc na 0 { };
id-assoc pd 0 {
  prefix ::/56 infinity;
  prefix-interface vtnet1 {
    sla-id 0;
    sla-len 8;
  };
};


LAN is tracking WAN but it doesn't seem to matter.
My confusion is why the log seems to show a delegation and an IP but OPNSense not using them?
It seems that it gets them and then clears them and asks for them again? Am I reading it correctly?

Any guidance is really appreciated.



DHCPv6 by default uses a four-way handshake: solicit - advertise - request - reply. The first three steps work, but your ISP's DHCPv6 server then doesn't send a reply to your request. So it does look like an ISP issue. Or maybe they require some special DHCPv6 options?

Cheers
Maurice
OPNsense virtual machine images
OPNsense aarch64 firmware repository

Commercial support & engineering available. PM for details (en / de).

Quote from: Maurice on October 08, 2024, 01:01:03 AM
DHCPv6 by default uses a four-way handshake: solicit - advertise - request - reply. The first three steps work, but your ISP's DHCPv6 server then doesn't send a reply to your request. So it does look like an ISP issue. Or maybe they require some special DHCPv6 options?

Cheers
Maurice

Thank you!!.. This was driving me crazy. That explains it and makes sense looking at the logs now.
I'm using TING Fiber so I'll ask them for assistance.

Again, thank you for your response. Much appreciated.