OPNsense Forum

English Forums => General Discussion => Topic started by: robert.haugen@gmail.com on May 31, 2025, 12:30:35 PM

Title: Change IAID on WAN interface.
Post by: robert.haugen@gmail.com on May 31, 2025, 12:30:35 PM
Hi,

Anyone know how to change IAID on WAN interface ?

Looks like Opensense use IAID=0 on WAN by default.

Mikrotik gives
lo interface IAID=1
First Interface IAID=2
Second Interface IAID=3
Title: Re: Change IAID on WAN interface.
Post by: meyergru on May 31, 2025, 04:47:56 PM
You can set that under Interfaces: WAN -> "DHCPv6 client configuration" -> "Advanced" tab -> "Prefix Delegation" -> "id-assoc pd ID"
Title: Re: Change IAID on WAN interface.
Post by: robert.haugen@gmail.com on May 31, 2025, 05:12:29 PM
Quote from: meyergru on May 31, 2025, 04:47:56 PMYou can set that under Interfaces: WAN -> "DHCPv6 client configuration" -> "Advanced" tab -> "Prefix Delegation" -> "id-assoc pd ID"
Thanks.

When I switch to Advanced,
I can't find where to set:

Prefix delegation size
and
Send prefix hint
Title: Re: Change IAID on WAN interface.
Post by: meyergru on May 31, 2025, 05:45:41 PM
See this. You can also inspect the normal "Basic" version of /var/etc/dhcp6c_xxx.conf and directly produce the contents of the file on the Config File Override tab.

Title: Re: Change IAID on WAN interface.
Post by: robert.haugen@gmail.com on June 02, 2025, 08:36:37 PM
Thanks:-)

I am still having problems with getting IPv6 address from my ISP Altibox.

Could there be some trotling of Solicit messages ?

Have used IAID = 2 before. The DUID is

DHCPv6
    Message type: Solicit (1)
    Transaction ID: 0xc5c7f8
    Client Identifier
        Option: Client Identifier (1)
        Length: 10
        DUID: 00030001b8d5XXXXXXXX
        DUID Type: link-layer address (3)
        Hardware type: Ethernet (1)
        Link-layer address: b8:d5:XX:XX:XX:XX
        Link-layer address (Ethernet): ZyxelCommuni_XX:XX:XX (b8:d5:XX:XX:XX:XX)
    Identity Association for Non-temporary Address
        Option: Identity Association for Non-temporary Address (3)
        Length: 12
        IAID: 00000002
        T1: 0
        T2: 0
    Rapid Commit
        Option: Rapid Commit (14)
        Length: 0
    Elapsed time
        Option: Elapsed time (8)
        Length: 2
        Elapsed time: 3330ms
    Option Request
        Option: Option Request (6)
        Length: 4
        Requested Option code: DNS recursive name server (23)
        Requested Option code: Domain Search List (24)
    Identity Association for Prefix Delegation
        Option: Identity Association for Prefix Delegation (25)
        Length: 41
        IAID: 00000002
        T1: 0
        T2: 0
        IA Prefix