OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 19.1 Legacy Series »
  • [solved] No IPv6 after upgrading
« previous next »
  • Print
Pages: [1] 2

Author Topic: [solved] No IPv6 after upgrading  (Read 12047 times)

iam

  • Full Member
  • ***
  • Posts: 105
  • Karma: 1
    • View Profile
[solved] No IPv6 after upgrading
« on: February 02, 2019, 11:11:54 pm »
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
« Last Edit: February 05, 2019, 02:11:12 pm by iam »
Logged

marjohn56

  • Hero Member
  • *****
  • Posts: 1701
  • Karma: 179
    • View Profile
Re: No IPv6 after upgrading
« Reply #1 on: February 03, 2019, 10:35:46 am »
Check the system & dhcpd log for any dhcp6c entries, is there anything there?
Logged
OPNsense 24.7 - Qotom Q355G4 - ISP - Squirrel 1Gbps.

Team Rebellion Member - If we've helped you remember to applaud

iam

  • Full Member
  • ***
  • Posts: 105
  • Karma: 1
    • View Profile
Re: No IPv6 after upgrading
« Reply #2 on: February 03, 2019, 02:25:05 pm »
The last entry in /var/log/dhcpd.log was written before the upgrade.

Here are the maybe relevant entries in system.log:
Code: [Select]
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
Logged

marjohn56

  • Hero Member
  • *****
  • Posts: 1701
  • Karma: 179
    • View Profile
Re: No IPv6 after upgrading
« Reply #3 on: February 03, 2019, 02:33:11 pm »
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.
Logged
OPNsense 24.7 - Qotom Q355G4 - ISP - Squirrel 1Gbps.

Team Rebellion Member - If we've helped you remember to applaud

iam

  • Full Member
  • ***
  • Posts: 105
  • Karma: 1
    • View Profile
Re: No IPv6 after upgrading
« Reply #4 on: February 03, 2019, 02:55:24 pm »
Maybe this is more helpful:
Code: [Select]
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
« Last Edit: February 03, 2019, 03:14:50 pm by iam »
Logged

iam

  • Full Member
  • ***
  • Posts: 105
  • Karma: 1
    • View Profile
Re: No IPv6 after upgrading
« Reply #5 on: February 03, 2019, 03:27:29 pm »
I can start the dhcp6c manually:
Code: [Select]
/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?
Logged

marjohn56

  • Hero Member
  • *****
  • Posts: 1701
  • Karma: 179
    • View Profile
Re: No IPv6 after upgrading
« Reply #6 on: February 03, 2019, 04:11:57 pm »
Have you tried enabling Direct!y send solicit in dhcp6c settings?
Logged
OPNsense 24.7 - Qotom Q355G4 - ISP - Squirrel 1Gbps.

Team Rebellion Member - If we've helped you remember to applaud

iam

  • Full Member
  • ***
  • Posts: 105
  • Karma: 1
    • View Profile
Re: No IPv6 after upgrading
« Reply #7 on: February 03, 2019, 04:30:12 pm »
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:
Code: [Select]
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;
};
Logged

marjohn56

  • Hero Member
  • *****
  • Posts: 1701
  • Karma: 179
    • View Profile
Re: No IPv6 after upgrading
« Reply #8 on: February 03, 2019, 04:35:05 pm »
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.
Logged
OPNsense 24.7 - Qotom Q355G4 - ISP - Squirrel 1Gbps.

Team Rebellion Member - If we've helped you remember to applaud

iam

  • Full Member
  • ***
  • Posts: 105
  • Karma: 1
    • View Profile
Re: No IPv6 after upgrading
« Reply #9 on: February 03, 2019, 04:53:02 pm »
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.
Logged

marjohn56

  • Hero Member
  • *****
  • Posts: 1701
  • Karma: 179
    • View Profile
Re: No IPv6 after upgrading
« Reply #10 on: February 03, 2019, 05:11:25 pm »
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.
Logged
OPNsense 24.7 - Qotom Q355G4 - ISP - Squirrel 1Gbps.

Team Rebellion Member - If we've helped you remember to applaud

iam

  • Full Member
  • ***
  • Posts: 105
  • Karma: 1
    • View Profile
Re: No IPv6 after upgrading
« Reply #11 on: February 03, 2019, 11:02:18 pm »
Here are the requested logs.
« Last Edit: February 03, 2019, 11:05:53 pm by iam »
Logged

marjohn56

  • Hero Member
  • *****
  • Posts: 1701
  • Karma: 179
    • View Profile
Re: No IPv6 after upgrading
« Reply #12 on: February 03, 2019, 11:31:58 pm »
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.

Logged
OPNsense 24.7 - Qotom Q355G4 - ISP - Squirrel 1Gbps.

Team Rebellion Member - If we've helped you remember to applaud

iam

  • Full Member
  • ***
  • Posts: 105
  • Karma: 1
    • View Profile
Re: No IPv6 after upgrading
« Reply #13 on: February 03, 2019, 11:37:15 pm »
You mean this entries?
Code: [Select]
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.
Logged

marjohn56

  • Hero Member
  • *****
  • Posts: 1701
  • Karma: 179
    • View Profile
Re: No IPv6 after upgrading
« Reply #14 on: February 04, 2019, 09:34:24 am »
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.
Logged
OPNsense 24.7 - Qotom Q355G4 - ISP - Squirrel 1Gbps.

Team Rebellion Member - If we've helped you remember to applaud

  • Print
Pages: [1] 2
« previous next »
  • OPNsense Forum »
  • Archive »
  • 19.1 Legacy Series »
  • [solved] No IPv6 after upgrading
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2