OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 18.1 Legacy Series »
  • No IPv6 prefixes between 56 and 60 allowed?
« previous next »
  • Print
Pages: [1]

Author Topic: No IPv6 prefixes between 56 and 60 allowed?  (Read 2628 times)

onnieoneone

  • Newbie
  • *
  • Posts: 15
  • Karma: 1
    • View Profile
No IPv6 prefixes between 56 and 60 allowed?
« on: March 19, 2018, 10:17:11 pm »
Hi,

I'm successfully running a a wan interface with a DHCPv6 Config File Override that gets a /57 prefix from an upstream router and configures some internal vlan interfaces.

This works nicely.

My override file, /var/etc/dhcp6c_wan.override.conf looks like this:

Code: [Select]
interface igb3 {
  send ia-na 0; # request stateful address
  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 na 0 { };
id-assoc pd 0 {
  prefix ::/57 infinity;
  prefix-interface lagg0_vlan620 {
    sla-id 20;
    sla-len 7;
  };
  prefix-interface lagg0_vlan640 {
    sla-id 40;
    sla-len 7;
  };
  prefix-interface lagg0_vlan660 {
    sla-id 60;
    sla-len 7;
  };
  prefix-interface lagg0_vlan680 {
    sla-id 80;
    sla-len 7;
  };
};

This is basically an extension from what gets created from the "Basic" mode, only I have:
1. A /57 prefix. My upstream router gets a /48 from my ISP but then will only hand out a /57 and no other. This 57 is not a chooseable option in the "Basic" interface, it goes from 56 to 60. Can this be fixed?
2. sla-ids that are more than 0xf, which is the maximum "allowed" in the "Track Interface" part of each interface's config. Can this be fixed too?

Thanks,
Ben
Logged

marjohn56

  • Hero Member
  • *****
  • Posts: 1677
  • Karma: 171
    • View Profile
Re: No IPv6 prefixes between 56 and 60 allowed?
« Reply #1 on: March 19, 2018, 11:10:37 pm »
That's really what the advanced and config overrides are for, so well done configuring it.

The basic is just that, a simple quick basic setting that would suit most users. If we start adding all the possibilities, it's no longer basic.
Logged
OPNsense 21.7 - Qotom Q355G4 - ISP - Community Fibre 1Gbps.

Team Rebellion Member - If we've helped you remember to applaud

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13988
  • Karma: 1211
    • View Profile
Re: No IPv6 prefixes between 56 and 60 allowed?
« Reply #2 on: March 20, 2018, 07:06:12 am »
Hi there,

Usually it's just a bug report that is required....

1. Should be addressed by adding all prefixes to the selection:

https://github.com/opnsense/core/commit/77bcfefd97

2. If sla-id said 0xf, it means you selected a /60. If you select a /57 now offers says 0x7f, which includes: 20, 40, 60.

Problem solved? :)


Cheers,
Franco
Logged

marjohn56

  • Hero Member
  • *****
  • Posts: 1677
  • Karma: 171
    • View Profile
Re: No IPv6 prefixes between 56 and 60 allowed?
« Reply #3 on: March 20, 2018, 08:49:07 am »
Nice one @Franco, I missed the OP's point there.
Logged
OPNsense 21.7 - Qotom Q355G4 - ISP - Community Fibre 1Gbps.

Team Rebellion Member - If we've helped you remember to applaud

onnieoneone

  • Newbie
  • *
  • Posts: 15
  • Karma: 1
    • View Profile
Re: No IPv6 prefixes between 56 and 60 allowed?
« Reply #4 on: March 20, 2018, 09:26:46 am »
Excellent, looks like it will soon be all sorted. I will just make a bug report next time.

As you say, I had selected Basic with a prefix of /60 before I chose the Config File Override, so yes, I only got the choice of 0 to f. Selecting Basic and /56 and applying it prior to selecting Config File Override allowed me to "Enter a hexadecimal value between 0 and ff here," for the prefix id in the track interface section.

Thanks for the quick response.
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13988
  • Karma: 1211
    • View Profile
Re: No IPv6 prefixes between 56 and 60 allowed?
« Reply #5 on: March 20, 2018, 08:13:04 pm »
@onnieoneone you can install this patch from the command line, but will also be in 181.1.5 tomorrow due to low impact:

# opnsense-patch 77bcfefd97


Thanks for this,
Franco
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 18.1 Legacy Series »
  • No IPv6 prefixes between 56 and 60 allowed?
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2023 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2