[solved] No IPv6 after upgrading

Started by iam, February 02, 2019, 11:11:54 PM

Previous topic - Next topic
February 02, 2019, 11:11:54 PM Last Edit: February 05, 2019, 02:11:12 PM by iam
Hello,

after upgrading to 19.1 the OPNsense has no IPv6 on the WAN interface anymore. On the WAN side the OPNsense is connected to a FritzBox.

There is no dhcp6c running. Also changing the configuration in the web interface don't cause changes to the file /var/etc/dhcp6c_wan.conf.

Has someone else observed something similar?

Cheers,
iam

Check the system & dhcpd log for any dhcp6c entries, is there anything there?
OPNsense 25.7a - Qotom Q355G4 - ISP - Squirrel 1Gbps.

Team Rebellion Member

The last entry in /var/log/dhcpd.log was written before the upgrade.

Here are the maybe relevant entries in system.log:

Feb  3 14:18:50 opnsense opnsense: /interfaces.php: ROUTING: IPv4 default gateway set to wan
Feb  3 14:18:50 opnsense opnsense: /interfaces.php: ROUTING: no IPv6 default gateway set, assuming wan
Feb  3 14:18:50 opnsense opnsense: /interfaces.php: ROUTING: setting IPv4 default route to 192.168.XY.1
Feb  3 14:18:50 opnsense opnsense: /interfaces.php: ROUTING: removing /tmp/re0_defaultgw
Feb  3 14:18:50 opnsense opnsense: /interfaces.php: ROUTING: creating /tmp/re0_defaultgw using '192.168.XY.1'
Feb  3 14:18:50 opnsense opnsense: /interfaces.php: ROUTING: skipping IPv6 default route
Feb  3 14:18:51 opnsense opnsense: /usr/local/etc/rc.dyndns: Aborted IPv6 detection: no address for re0

No, we are looking to see if there are any entries from dhcp6c. If it's not starting ( or exiting ) there should be a log entry.
OPNsense 25.7a - Qotom Q355G4 - ISP - Squirrel 1Gbps.

Team Rebellion Member

February 03, 2019, 02:55:24 PM #4 Last Edit: February 03, 2019, 03:14:50 PM by iam
Maybe this is more helpful:

Feb  1 07:46:41 opnsense opnsense: /usr/local/etc/rc.newwanipv6: The command '/sbin/ifconfig re0 inet6 $ipv6address delete' returned exit code '1', the output was 'ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address'


EDIT: Of course not. That was before the upgrade

I can start the dhcp6c manually:

/usr/local/sbin/dhcp6c -f -d -D -c /var/etc/dhcp6c_wan.conf -p /var/run/dhcp6c_re0.pid re0


It's no crashing and binds an IPv6 address to the interface. But the routing table seems not to be correct afterwards.

Is there a config file like /etc/network/interfaces in Debian?

Have you tried enabling Direct!y send solicit in dhcp6c settings?
OPNsense 25.7a - Qotom Q355G4 - ISP - Squirrel 1Gbps.

Team Rebellion Member

Yes I've enabled this option in the web interface. But I'm not sure that is synced to the configuration files. Changing the prefix size doesn't change /var/etc/dhcp6c_wan.conf. It's still:

interface re0 {
  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 ::/60 infinity;
};

Even so, dhcp6c should be starting, you will see that in the logs. Have you set dhcp6c debug on and the rebooted. Then take a look at the dhcpd logs and filter on dhcp6c.
OPNsense 25.7a - Qotom Q355G4 - ISP - Squirrel 1Gbps.

Team Rebellion Member

As expected, there is still no log entries regarding DHCPv6 (only after starting dhcpv6 manually).

By the way, it's also a RealtekChip, but with static IPv4. The MTU is 1500.

Something is very wrong here. Can you scp into opnsense and copy the system, configd and dhcpd logs. zip them up and attache them your reply.


I've just tried my test unit with a static v4 and dhcp6 on the wan, works perfectly.
OPNsense 25.7a - Qotom Q355G4 - ISP - Squirrel 1Gbps.

Team Rebellion Member

February 03, 2019, 11:02:18 PM #11 Last Edit: February 03, 2019, 11:05:53 PM by iam
Here are the requested logs.

Your ISP is not responding in the expected way. There's loads of entries from dhcp6, here's just a sample.



Can you turn on the debugging option in dhcp6c settings on the WAN page. Save and reboot, let it run for an hour then send me the dhcpd log again.

OPNsense 25.7a - Qotom Q355G4 - ISP - Squirrel 1Gbps.

Team Rebellion Member

You mean this entries?

Feb  2 09:16:45 opnsense dhcp6c[30652]: Received REPLY for RENEW
Feb  2 09:46:45 opnsense dhcp6c[30652]: Sending Renew
Feb  2 09:46:45 opnsense dhcp6c[30652]: unknown or unexpected DHCP6 option opt_86, len 16
Feb  2 09:46:45 opnsense dhcp6c[30652]: Received REPLY for RENEW


There were written before the upgrade. By the way, the ISP is a FritzBox.

O.K. I see now.


The last four entries are actually created by dhcp6c*.script, but I know you said you manually ran it, so it might be from those. That being the case then dhcp6c is not being started but can run manually which rules out a corrupt dhcp6c client itself. It may be something as simple as a stuck pid. So we'll check that first.


Go and have a look in /var/run and and see if there is a dhcp6*.pid file there, if there is delete it and reboot.
OPNsense 25.7a - Qotom Q355G4 - ISP - Squirrel 1Gbps.

Team Rebellion Member