Setting ipv6 for my vlan

Hello folks, so im new to ipv6 and i need to set up some ipv6 for my vlan, i receive a /56 from my isp, but i want to make my vlan work with ipv6, on my lan im using a /64 assignment length, but i've not setup anything in my vlan config about ipv6, i want to make my vlan working with ipv6 but it simply not works, im trying to figure out what gone wrong but i dunno fr, any help can be useful, thanks in advance.

you have to set ip6hint for each vlan and configure dhcpv6 and RA in the DHCP config.

Which might help is to post your network and DHCP config file... I'm afk but can send you a config around 20:00 utc

1 Like

/* As we have a /56 (256 subnets) I use the IPv4 prefix 192.168.0.0/16, which provides... surprise surprise... 2^8 (256) subnets. Keep in mind that ip6hint has to be written as a hex-value! */

Two sample interface stanza:

config interface            'vlan64'
    option  device          'br-vlan64'
    option  bridge_empty    '1'
    option  igmp_snooping   '1'
    option  proto           'static'
    option  ipaddr          '192.168.64.1/24'
    list    ip6ifaceid      '::1'
    list    ip6ifaceid      'eui64'
    option  ip6assign       '64'
    option  ip6hint         '40'

config interface            'vlan71'
    option  device          'br-vlan71'
    option  bridge_empty    '1'
    option  igmp_snooping   '1'
    option  proto           'static'
    option  ipaddr          '192.168.71.1/24'
    list    ip6ifaceid      '::1'
    list    ip6ifaceid      'eui64'
    option  ip6assign       '64'
    option  ip6hint         '47'

And the corresponding DHCP stanza:

config dhcp                     'vlan64'
    option  interface           'vlan64'
    option  start               '32'
    option  limit               '215'
    option  leasetime           '12h'
    option  dhcpv4              'server'
    option  dhcpv6              'server'
    option  ra                  'server'
    option  ra_slaac            '1'
    list    ra_flags            'managed-config'
    list    ra_flags            'other-config'

config dhcp                     'vlan71'
    option  interface           'vlan71'
    option  start               '32'
    option  limit               '215'
    option  leasetime           '12h'
    option  dhcpv4              'server'
    option  dhcpv6              'server'
    option  ra                  'server'
    option  ra_slaac            '1'
    list    ra_flags            'managed-config'
    list    ra_flags            'other-config'

/* I removed everything else, so there should only be the bare minimum be present... */

1 Like

@Yoller please give feedback if this works or if you have any questions... Btw I use dnsmasq full and not odhcpd, but these options should work with both daemons.

hello, sorry for responding late, how can i get my network interfaces info using cli, im accustomed to use luci haha, thanks in advance.

All these options should be visible in the network and DHCP tab. I haven't seen Luci in over 10 years. But you should find them. Look closely.

1 Like

I recently configured ipv6 on my home network. These are quite long threads, but I received a lot of help from the community and we got everything working correctly.

2 Likes