• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

Which IP adress should I assign to the opt(VLAN) interfaces?

Scheduled Pinned Locked Moved IPv6
10 Posts 3 Posters 797 Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ?
    A Former User
    last edited by Oct 25, 2019, 7:11 PM

    Hi,

    my WAN interface has a public ipv6 IP assign by DHCPv6 (provider). But which IP adress should I assign to my local OPT (VLAN) interfaces? A link local, unique local or a public IP adress? Please keep to things in mind: every PC in my network should obtain a public IPv6 Adress and every OPT should be an isolated subnet (with optional routing between them)

    What's the proper way to do it?

    J 1 Reply Last reply Oct 25, 2019, 9:06 PM Reply Quote 0
    • J
      JKnott @A Former User
      last edited by Oct 25, 2019, 9:06 PM

      @Thisisme

      I assume you're getting something larger than a single /64 from your ISP. If so, then on each interface, select an "IPv6 Prefix ID". Use a different one for each interface. The main LAN is typically 0, though it doesn't have to be and choose whatever you want for the other interfaces. Since I get a /56 from my ISP, I can choose anything from 0 to ff for the prefix ID.

      PfSense running on Qotom mini PC
      i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
      UniFi AC-Lite access point

      I haven't lost my mind. It's around here...somewhere...

      1 Reply Last reply Reply Quote 0
      • ?
        A Former User
        last edited by A Former User Oct 26, 2019, 10:36 AM Oct 26, 2019, 10:35 AM

        Yes I get something larger than /64. The IP of the WAN interface is assigned via the provider DHCPv6. But to enable LAN DHCPv6 I have to assign an IPv6 to the LAN (OPT) interface of pfsense. My public IPv6 Prefix isn't static so I can't assign a static IP to the LAN interface of my pfsense. If I select the option "via DHCPv6" I can't select the subnet I want to have.

        Can I use something like Prefix delegation for the WAN (OPT) interfaces of pfsense?

        J 1 Reply Last reply Oct 26, 2019, 10:48 AM Reply Quote 0
        • N
          NogBadTheBad
          last edited by Oct 26, 2019, 10:42 AM

          @Thisisme said in Which IP adress should I assign to the opt(VLAN) interfaces?:

          my WAN interface has a public ipv6 IP as

          I just split my /48 into /64's.

          xxxx:xxxx:xxxx:1::/64 LAN
          xxxx:xxxx:xxxx:2::/64 USER. << vlan2
          xxxx:xxxx:xxxx:3::/64 GUEST << vlan 3

          etc ...

          Andy

          1 x Netgate SG-4860 - 3 x Linksys LGS308P - 1 x Aruba InstantOn AP22

          1 Reply Last reply Reply Quote 0
          • J
            JKnott @A Former User
            last edited by Oct 26, 2019, 10:48 AM

            @Thisisme

            The typical method is with DHCPv6-PD. This provides a WAN address and prefix for the LAN. You can specify the prefix size, up to what the ISP provides, on the WAN page with the "DHCPv6 Prefix Delegation size" setting. On the same page, you can select "Do not allow PD/Address release", so that you should always get the same prefix. All interfaces work the same way. You just have to choose a different prefix ID. If after all that, your prefix still changes, you can also use Unique Local Addresses, in addition to the global addresses. ULA are similarr to the IPv4 RFC 1918 addresses in that they're not routeable over the Internet.

            PfSense running on Qotom mini PC
            i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
            UniFi AC-Lite access point

            I haven't lost my mind. It's around here...somewhere...

            ? 1 Reply Last reply Oct 26, 2019, 11:57 AM Reply Quote 0
            • ?
              A Former User @JKnott
              last edited by A Former User Oct 26, 2019, 11:58 AM Oct 26, 2019, 11:57 AM

              @JKnott So there ist no way to assign the Prefix of the pfsense LAN interface dynamic like this

              [dynamic provider Prefix from the WAN /57] + [my own static Prefix for the subnet /7] + [static device part /64] (first part is dynamic and comes from the provider dhcp, second part is defined by me, third part: I don't care how it is defined]

              J 1 Reply Last reply Oct 26, 2019, 12:36 PM Reply Quote 0
              • J
                JKnott @A Former User
                last edited by Oct 26, 2019, 12:36 PM

                @Thisisme said in Which IP adress should I assign to the opt(VLAN) interfaces?:

                @JKnott So there ist no way to assign the Prefix of the pfsense LAN interface dynamic like this

                [dynamic provider Prefix from the WAN /57] + [my own static Prefix for the subnet /7] + [static device part /64] (first part is dynamic and comes from the provider dhcp, second part is defined by me, third part: I don't care how it is defined]

                Yes, I already told you. When you select the prefix ID for an interface, you are specifying part of the prefix. With a /57, you have 128 /64s to choose from. You then assign whatever prefix ID you want to each interface. Also, the prefix has absolutly nothing to do with the WAN IP address. Try setting up just the LAN with prefix ID 0. Any device attached to the LAN will receive that prefix. You can then enable another interface and assign it a different ID. It is always your choice of those 128 prefixes you want to use, on any interface. In this way, a device address will consist of 57 bits from your assigned prefix, 7 bits from your choice of prefix ID and 64 bits for the device.

                PfSense running on Qotom mini PC
                i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
                UniFi AC-Lite access point

                I haven't lost my mind. It's around here...somewhere...

                ? 1 Reply Last reply Oct 26, 2019, 1:27 PM Reply Quote 0
                • ?
                  A Former User @JKnott
                  last edited by A Former User Oct 26, 2019, 1:39 PM Oct 26, 2019, 1:27 PM

                  @JKnott

                  Maybe you don't understand me. Maybe I don't understand you. Forget a moment about the DHCPv6 for the LAN. I can't setup a DHCP if the interface hasn't an ip adress. So there is NO DHCP beside the one from the provider. (No DHCP I can set/define/change anything. NO DHCP any client could contact)

                  Anyway I have to set the IP Adress of the LAN interface. But I can't set it static because the provider Prefix (/57) changes regulary. So I can't set a static IP. I can't setup a DHCP and I want to assign a public IP to the LAN interface. If I can't use a static IP the only other option I can choose for the LAN Interface is "request an IP as DHCP CLIENT". When I enable this option I can't set define the last /7 anywhere. So this isn't an option either.

                  If you answered this please tell me which buttons I have to press in the pfsense GUI. Maybe I understand you then.

                  //edit

                  I'm taking about the option marked in this Screenshot

                  alt text

                  Today my Prefix starts with 2001:. Maybe tomorrow it's 4001: (I took the Screenshot from Google. I know 2001: is a reserved adress. Just assume it's 3001 today and 4001 tomorrow)

                  J 1 Reply Last reply Oct 26, 2019, 3:36 PM Reply Quote 0
                  • J
                    JKnott @A Former User
                    last edited by Oct 26, 2019, 3:36 PM

                    @Thisisme

                    I mentioned that "Do not allow PD/Address release" on the WAN page. Is that enabled? If not, your prefix may change. As for IPv6 connection type, I use DHCP6. On the LAN page, I have IPv6 configuration type set to track interface. You shouldn't need to set up a static config, as everything is handled by DHCPv6-PD.

                    Also, any reason why your MTU is set to 9000? Unless your ISP supports that, you will cause problems.

                    PfSense running on Qotom mini PC
                    i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
                    UniFi AC-Lite access point

                    I haven't lost my mind. It's around here...somewhere...

                    ? 1 Reply Last reply Oct 26, 2019, 3:48 PM Reply Quote 0
                    • ?
                      A Former User @JKnott
                      last edited by A Former User Oct 26, 2019, 3:48 PM Oct 26, 2019, 3:48 PM

                      @JKnott I finally figured it out. "Track Interface" is the option that seems to be the right way to solve my problem.

                      1 Reply Last reply Reply Quote 0
                      10 out of 10
                      • First post
                        10/10
                        Last post
                      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                        This community forum collects and processes your personal information.
                        consent.not_received