OPNsense version: 25.1.7_4
I recently migrated between hardware. I downloaded a backup of my configuration, edited the interfaces to match the new hardware and restored that configuration. The whole process was smooth and painless. The only issue I'm having is that I cannot get dhcp6c to run automatically to pull my prefix and set my vlan interface IPv6s.
I've confirmed both in the XML & GUI the following options:
My other interfaces track WAN with different Optional Prefix IDs. I verified that this created /var/etc/dhcp6c.conf & /var/etc/dhcp6c_wan.conf. Both files are identical and contain:
I've tried toggling WAN's IPv6 Configuration Type back and forth from DHCPv6 and None just to see if that would help reset the file(s) with no success. Regardless of what I do, dhcp6c never runs on it's own. Grepping /var/log/system/latest.log has no mention of dhcp6c and no errors I can find, basically acting as if it's simply disabled. I do not run DNS/DHCP locally in OPNSense. That's all offloaded to another machine.
If I manually run dhcp6c -D -f -c /var/etc/dhcp6c.conf -p /var/run/dhcp6c.pid it executes successfully and everything works as expected. Each interface successfully gets an IP on the correct prefix ID and everything routes as expected. So I've traced the issue to the fact that dhcp6c is not being called to run despite DHCPv6 being set on WAN. I've also confirmed that the only time any mention of dhcp6c appears is when I manually execute it. My fix is to just run dhcp6c -c /var/etc/dhcp6c.conf -p /var/run/dhcp6c.pid after a reboot but I'd like to solve why it isn't doing it on its own.
Any feedback on what to check would be greatly appreciated. Thanks!
I recently migrated between hardware. I downloaded a backup of my configuration, edited the interfaces to match the new hardware and restored that configuration. The whole process was smooth and painless. The only issue I'm having is that I cannot get dhcp6c to run automatically to pull my prefix and set my vlan interface IPv6s.
I've confirmed both in the XML & GUI the following options:
- System -> Settings -> General -> Prefer to use IPv4 even if IPv6 is available unchecked
- Interfaces -> Settings -> Allow IPv6 checked
- Interfaces -> Settings -> Prevent Release checked
- Interfaces -> WAN -> IPv6 Configuration Type DHCPv6
- Interfaces -> WAN -> Prefix Delegation size 56
- Interfaces -> WAN -> Request Prefix only checked
- Interfaces -> WAN -> Send prefix hint checked
My other interfaces track WAN with different Optional Prefix IDs. I verified that this created /var/etc/dhcp6c.conf & /var/etc/dhcp6c_wan.conf. Both files are identical and contain:
Code Select
interface cxl0 {
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 pd 0 {
prefix ::/56 infinity;
prefix-interface vlan065 {
sla-id 101;
sla-len 8;
ifid 1;
};
prefix-interface vlan099 {
sla-id 255;
sla-len 8;
ifid 1;
};
prefix-interface vlan010 {
sla-id 16;
sla-len 8;
ifid 1;
};
prefix-interface cxl1 {
sla-id 0;
sla-len 8;
ifid 1;
};
};
I've tried toggling WAN's IPv6 Configuration Type back and forth from DHCPv6 and None just to see if that would help reset the file(s) with no success. Regardless of what I do, dhcp6c never runs on it's own. Grepping /var/log/system/latest.log has no mention of dhcp6c and no errors I can find, basically acting as if it's simply disabled. I do not run DNS/DHCP locally in OPNSense. That's all offloaded to another machine.
Code Select
# ps auxww | grep dhcp
_dhcp 48823 0.0 0.0 14080 2828 - ICs 14:47 0:00.00 dhclient: cxl0 (dhclient)
_dhcp 65735 0.0 0.0 13668 2388 - I 10:21 0:00.04 /usr/local/sbin/dhcrelay -d -or -i cxl1 192.168.5.7
_dhcp 66892 0.0 0.0 13668 2388 - I 10:21 0:00.00 /usr/local/sbin/dhcrelay -d -or -i vlan010 192.168.5.7
_dhcp 67855 0.0 0.0 13668 2380 - I 10:21 0:00.00 /usr/local/sbin/dhcrelay -d -or -i vlan02 192.168.5.7
_dhcp 69203 0.0 0.0 13668 2380 - I 10:21 0:00.00 /usr/local/sbin/dhcrelay -d -or -i vlan065 192.168.5.7
_dhcp 69589 0.0 0.0 13668 2384 - I 10:21 0:00.00 /usr/local/sbin/dhcrelay -d -or -i vlan099 192.168.5.7
root 21183 0.0 0.0 13744 2400 0 S+ 15:30 0:00.00 grep dhcp
If I manually run dhcp6c -D -f -c /var/etc/dhcp6c.conf -p /var/run/dhcp6c.pid it executes successfully and everything works as expected. Each interface successfully gets an IP on the correct prefix ID and everything routes as expected. So I've traced the issue to the fact that dhcp6c is not being called to run despite DHCPv6 being set on WAN. I've also confirmed that the only time any mention of dhcp6c appears is when I manually execute it. My fix is to just run dhcp6c -c /var/etc/dhcp6c.conf -p /var/run/dhcp6c.pid after a reboot but I'd like to solve why it isn't doing it on its own.
Any feedback on what to check would be greatly appreciated. Thanks!
"