OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 18.7 Legacy Series »
  • Anyone having problems with dhcpd6?
« previous next »
  • Print
Pages: [1]

Author Topic: Anyone having problems with dhcpd6?  (Read 3293 times)

bimmerdriver

  • Full Member
  • ***
  • Posts: 153
  • Karma: 14
    • View Profile
Anyone having problems with dhcpd6?
« on: December 15, 2018, 06:04:41 pm »
I have two opnsense systems, both running on windows server 2012r2 hyper-v. One system is running the latest release and the other is running 19.1b. Yesterday, I updated both of them and now dhcpd6 is broken on both of them.

My ISP provides a /56 prefix. I also have two other *sense systems running on the same hyper-v server. Both are working properly, so I don't think this issue is related to my ISP.

Here is a message from the general log:

Quote
opnsense: /usr/local/etc/rc.newwanipv6: The command '/usr/local/sbin/dhcpd -6 -user dhcpd -group dhcpd -chroot /var/dhcpd -cf /etc/dhcpdv6.conf -pf /var/run/dhcpdv6.pid hn1' returned exit code '1', the output was 'Internet Systems Consortium DHCP Server 4.4.1 Copyright 2004-2018 Internet Systems Consortium. All rights reserved. For info, please visit https://www.isc.org/software/dhcp/ /etc/dhcpdv6.conf line 15: network mask too short prefix6 2001:560:74b0:2800:: 2001:560:74b0:2800::/48; ^ Configuration file errors encountered -- exiting If you think you have received this message due to a bug rather than a configuration issue please read the section on submitting bugs on either our web page at www.isc.org or in the README file before submitting a bug. These pages explain the proper process and the information we find helpful for debugging. exiting.'

Note, the message is referring to /48. Not sure where that comes from.
Logged

mrkev

  • Newbie
  • *
  • Posts: 20
  • Karma: 1
    • View Profile
Re: Anyone having problems with dhcpd6?
« Reply #1 on: December 15, 2018, 10:20:04 pm »
Hi,

My dhcpv6 seems to be working ok but then again I get a /48 from my ISP. Have you tried enabling debug under  the DHCPv6 client on the interface to see if that gives you anymore information?
Logged

bimmerdriver

  • Full Member
  • ***
  • Posts: 153
  • Karma: 14
    • View Profile
Re: Anyone having problems with dhcpd6?
« Reply #2 on: December 15, 2018, 10:56:37 pm »
Are you talking about the debug option for dhcp6c? I did enable it, but I didn't see any additional information. The problem is not on the WAN side anyway. It's on the LAN. It's getting a prefix and ipv6 is working properly, at least evidenced by being able ping an ipv6 host with the WAN as the source.
Logged

bimmerdriver

  • Full Member
  • ***
  • Posts: 153
  • Karma: 14
    • View Profile
Re: Anyone having problems with dhcpd6?
« Reply #3 on: December 15, 2018, 11:03:04 pm »
I searched the log again and found a few instances of this message:

Quote
opnsense: /interfaces.php: Warning! services_dhcpdv6_configure() found no suitable IPv6 address on hn1
Logged

bimmerdriver

  • Full Member
  • ***
  • Posts: 153
  • Karma: 14
    • View Profile
Re: Anyone having problems with dhcpd6?
« Reply #4 on: December 16, 2018, 12:48:15 am »
This is sorted out, thanks marjohn56. I guess there was a change in the dhcpd6 default settings. It was trying to set up the LAN using a /48, which is not possible, considering there is only a /56 prefix from the ISP. Changed the prefix size to /64 with ::00 to ::FF as the range and now it's working. I've never had to touch those settings before when installing a "basic" configuration. (I like it better the old way, FWIW.)
Logged

marjohn56

  • Hero Member
  • *****
  • Posts: 1677
  • Karma: 171
    • View Profile
Re: Anyone having problems with dhcpd6?
« Reply #5 on: December 16, 2018, 08:11:10 am »
I've fixed this and issued a PR for 19.1, not sure there will another 18.7 release so I have not back ported the fix.
Logged
OPNsense 21.7 - Qotom Q355G4 - ISP - Community Fibre 1Gbps.

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

bimmerdriver

  • Full Member
  • ***
  • Posts: 153
  • Karma: 14
    • View Profile
Re: Anyone having problems with dhcpd6?
« Reply #6 on: December 16, 2018, 06:11:26 pm »
@marjohn56 Thanks very much.
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 18.7 Legacy Series »
  • Anyone having problems with dhcpd6?
 

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