OPNsense Forum

Archive => 17.7 Legacy Series => Topic started by: thx1138 on September 13, 2017, 05:40:27 pm

Title: running native IPv4/IPv6 dual stack
Post by: thx1138 on September 13, 2017, 05:40:27 pm
Hi,

I'm trying to run ipv4 and 6 on OPNsense 17.7.1_2-amd64 and although I can get ipv4 running fine (non-NAT) trying to get ipv6 working as well has been difficult. Additionally, there's no documentation for exactly what I want to do, though there is some for tunnelling with HE.

I have a an ipv6 /64 neighbour discovery range, a ipv6 /48 range for the LAN and and a /29 for ipv4. None of this is natted, all the connecting equipment have their own firewalls so the firewall is turned *off* in opnsense. re0 is WAN and re1 is LAN. pppoe0 is linked to WAN. The LAN interface is statically configured with a ipv4 IP. This works fine, on IPv4.

So, to configure dhcpdv6 I go into services > dhcpdv6 and it errors with the following:

"The DHCPv6 Server can only be enabled on interfaces configured with static IP addresses. Only interfaces configured with a static IP will be shown."

So I go into Interfaces > LAN. The static ipv4 IP is already in there. (and I'm not sure if I'm right here), select for ipv6 static ip, give it the /64 (and I'm also not sure if I should give it the /64 network, or just one IP in the /64, or even if it should be static) and try to save the change and it errors with:

"The following input errors were detected:

    This IPv4 address is being used by another interface or VIP."

What should I do?

Title: Re: running native IPv4/IPv6 dual stack
Post by: sergiup on September 13, 2017, 06:04:48 pm
Hi! The IPv6 /48 that you have, is it allocated to you with no other facilities, or does it come from your ISP via IPv6 Prefix Delegation?

If you're getting it from the ISP via Prefix Delegation, then you don't need to actually configure DHCPv6 on OPNsense; you set the LAN IPv6 interface to track the PPPoE WAN, and that should automagically work.

So in short - need some more details :)
Title: Re: running native IPv4/IPv6 dual stack
Post by: thx1138 on September 13, 2017, 06:48:55 pm
Hi, thanks for trying to help

Hi! The IPv6 /48 that you have, is it allocated to you with no other facilities, or does it come from your ISP via IPv6 Prefix Delegation?

I'm not sure what you mean by 'other facilities'. Here's what they said about the /64:

"/64 Neighbour Discovery (ND) Prefix. This is used to automatically address the WAN interface of your Router, or if you are directly connected without a router, the WAN interface of that device. "

If you're getting it from the ISP via Prefix Delegation, then you don't need to actually configure DHCPv6 on OPNsense; you set the LAN IPv6 interface to track the PPPoE WAN, and that should automagically work.

When I do that, I get this error:

"The following input errors were detected:

    This IPv4 address is being used by another interface or VIP."

It happens even if I set IPv4 to "none" for LAN  ???