OPNsense Forum

Archive => 19.7 Legacy Series => Topic started by: jack9603301 on May 26, 2020, 11:30:36 AM

Title: When IPv6 and IPv4 coexist, the static IPv6 address setting is invalid by defaul
Post by: jack9603301 on May 26, 2020, 11:30:36 AM
When IPv6 and IPv4 coexist, the static IPv6 address setting is invalid by default after reboot. Am I wrong?
Title: Re: When IPv6 and IPv4 coexist, the static IPv6 address setting is invalid by defaul
Post by: marjohn56 on June 01, 2020, 11:24:27 AM
The short answer is no, but you don't say what you are doing. WAN or LAN, VLANs what?
Title: Re: When IPv6 and IPv4 coexist, the static IPv6 address setting is invalid by defaul
Post by: jack9603301 on June 08, 2020, 05:50:07 PM
I created two VLAN sub interfaces (P1 or P2), which use static IPv4 + static IPv6, but only IPv4 takes effect after restart.
Title: Re: When IPv6 and IPv4 coexist, the static IPv6 address setting is invalid by defaul
Post by: marjohn56 on June 08, 2020, 09:07:02 PM
I have three vlans, all static on v4 and v6, they all work. Are you saying that when you restart the addresses you have applied to the vlans are no longer there?
Title: Re: When IPv6 and IPv4 coexist, the static IPv6 address setting is invalid by defaul
Post by: jack9603301 on June 09, 2020, 08:28:25 AM
Like attachment, the IPv6 address I set will not be applied unless I enter the interface to reapply the configuration.
Title: Re: When IPv6 and IPv4 coexist, the static IPv6 address setting is invalid by defaul
Post by: marjohn56 on June 09, 2020, 10:17:43 AM
Are they GUA addresses you are applying?


Does your ISP provide dynamic as well as static addresses:?
Title: Re: When IPv6 and IPv4 coexist, the static IPv6 address setting is invalid by defaul
Post by: jack9603301 on June 09, 2020, 11:06:46 AM
My opnsense is not directly connected to the ISP. Its superior equipment is proxmox ve (using openvswitch) and vyos router deployed in the industrial control soft route D525. Opnsense runs in switch mode instead of routing mode. This IP is only the IP of opnsense's web management background. According to the expected execution, it should be able to take effect through IPv6 and IPv4. After restarting, both IPv4 and IPv6 can go online at the same time. However, after I manually set IPv6 and IPv4 to take effect, only IPv4 is effective after restarting. I must reapply the interface. This abnormal.
Title: Re: When IPv6 and IPv4 coexist, the static IPv6 address setting is invalid by defaul
Post by: marjohn56 on June 09, 2020, 12:28:01 PM
Sorry cannot help you.. I really have no idea what you are trying to achieve. All I can say is that static GUAs save fine.
Title: Re: When IPv6 and IPv4 coexist, the static IPv6 address setting is invalid by defaul
Post by: jack9603301 on June 09, 2020, 01:37:49 PM
Under normal circumstances, when I restart the system, it should look like this:

Title: Re: When IPv6 and IPv4 coexist, the static IPv6 address setting is invalid by defaul
Post by: marjohn56 on June 09, 2020, 02:40:59 PM
(https://i.ibb.co/c8JV7Gm/interfaces.png) (https://ibb.co/t2BFW7d)


Just created a VLAN interface on my test unit, added the same address as you use, saved and apply, reboot and the image shows what is there. No problem on my system, however I am running the 20.7b path.
Title: Re: When IPv6 and IPv4 coexist, the static IPv6 address setting is invalid by defaul
Post by: jack9603301 on June 09, 2020, 03:38:02 PM
That's weird. Why is there a problem in my system?
Title: Re: When IPv6 and IPv4 coexist, the static IPv6 address setting is invalid by defaul
Post by: jack9603301 on June 09, 2020, 04:06:21 PM
Just now, I checked the related settings and found that I have enabled the option to enable the local address of the link. I'm sorry that I didn't notice this problem at all. I withdrew this option and it is normal after restarting.