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

    Alix2d3 with 3 LANs - I need more than 3!

    Scheduled Pinned Locked Moved General pfSense Questions
    32 Posts 5 Posters 8.4k 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.
    • C Offline
      costasppc
      last edited by

      Well, all are explained very well, however I have issues with VLAN setup, and I need some help to accomplish this.

      Here is my setup and the procedures I have followed so far, with no luck with the VLAN setup:

      Setup
      We have a Cisco SLM2048 switch as the main company switch, and I need to use some port of the switch to create the appropriate VLANs for extending PFSense.

      Procedures
      1. Created vlans on pfsense interface (3 vlans (VLAN10, VLAN20, VLAN30) -1 interface port) and in switch (3 vlans in 3 different ports and 1 port for all).
      P.S. the SLM2048 does not have a "trunk port". I have used a port set to "all" for this. All the switch ports have in "Port Settings" -> Acceptable frame type -> All or Tagged. All the ports are set to All. I have changed the VLAN ports to "Tagged", however I havent changed the PVID setting (left it to 1). Each VLAN contains its assigned port and the "trunk" port (VLAN10 = port 29 and port 32, VLAN20=port 30 and port 32, VLAN30=port 30 and port 32).

      2. Connect each router (in bridge mode) to the relevant vlan port of the switch.

      3. Connect PFSense to the "trunk" port

      4. Created 3 OPT interfaces in pfsense and assign them in the relevant vlan (VLANOPT1, VLANOPT2, VLANOPT3)

      5. Enabled opt interfaces as PPPoE and assign the credentials for ISP.

      Now, in Interfaces assignments I have the VLANOPT1 configured as "PPPoE4 (vr2_vlan10) - username@isp.gr

      However the VLANOPT1 interface shows with the red X on the dashboard. If I change the assignment of the interface as vlan10 the port shows as connected (green).

      Sorry for the long post.

      Thanks in advance

      Kostas

      1 Reply Last reply Reply Quote 0
      • M Offline
        Metu69salemi
        last edited by

        can you provide screenshots from that switch if there is something to fix

        1 Reply Last reply Reply Quote 0
        • W Offline
          wallabybob
          last edited by

          I don't have any experience with the switch you are using but I suspect the switch ports connecting to the modems should be configured as "Untagged" (that is, the switch should strip VLAN tags on output to the modems and add VLAN tags on input from the modems).

          @costasppc:

          If I change the assignment of the interface as vlan10 the port shows as connected (green).

          Please give more detail of what you have changed: VLANOPT1 physical interface changed from vr0_vlan10 to what?

          1 Reply Last reply Reply Quote 0
          • C Offline
            costasppc
            last edited by

            Thank you all for your answers.
            Here are the screenshots of the VLAN relevant areas of the switch.

            The ports used for VLANs is VLAN10=port 29, VLAN20=port 30, VLAN30=port 31, "trunk" port=port 32.

            Each VLAN contains its port and port 32.

            Best regards

            Kostas

            1 Reply Last reply Reply Quote 0
            • M Offline
              Metu69salemi
              last edited by

              try client access ports with untagged, then it should work

              1 Reply Last reply Reply Quote 0
              • C Offline
                costasppc
                last edited by

                You mean the ports connecting the modems?

                Regards

                Kostas

                1 Reply Last reply Reply Quote 0
                • M Offline
                  Metu69salemi
                  last edited by

                  yes and computers

                  1 Reply Last reply Reply Quote 0
                  • C Offline
                    costasppc
                    last edited by

                    Unfortunately, it is not working. I have set the ports to untagged. When I assign the interface as PPPoE, it shows down. When it assigned as VLAN, it shows connected.

                    Please check images.

                    Best regards

                    1 Reply Last reply Reply Quote 0
                    • M Offline
                      Metu69salemi
                      last edited by

                      trunk port has to be tagged

                      all the ports what is connected to computers and other "end devices" should not use vlans unless those are introduced to these machines

                      1 Reply Last reply Reply Quote 0
                      • C Offline
                        costasppc
                        last edited by

                        Thanks.

                        So, trunk port must be tagged for all VLANs and VLAN port must be untagged.

                        What about interface assignment, must be the PPPoE setting?

                        Thanks for the help so far.

                        Kostas

                        1 Reply Last reply Reply Quote 0
                        • M Offline
                          Metu69salemi
                          last edited by

                          what about it(PPPoE)?

                          1 Reply Last reply Reply Quote 0
                          • C Offline
                            costasppc
                            last edited by

                            Shall I use PPPoE for interface assignment?

                            Thanks

                            Kostas

                            1 Reply Last reply Reply Quote 0
                            • M Offline
                              Metu69salemi
                              last edited by

                              it depends about your modem settings, is it in bridging mode or routing mode?
                              if bridging, then you should use PPPoE, if modem had that one also(while routing with modem)

                              1 Reply Last reply Reply Quote 0
                              • C Offline
                                costasppc
                                last edited by

                                It is bridging, and it works OK if I connect it to the normal (not OPT) WAN port.

                                Regards

                                Kostas

                                1 Reply Last reply Reply Quote 0
                                • M Offline
                                  Metu69salemi
                                  last edited by

                                  are you having ip-address in vr2 also
                                  this question is because, if you have vlans on interface vr2 and vr2 is physical interface, that is undesired situation because it may break something.

                                  you are saing that if modem is connected to wan-if straight it works
                                  but if you connect it to vlan-if it doesn't work
                                  and your settings are: internet–modem--(vlan10 untagged)switch(vlan10 tagged)--pfsense

                                  1 Reply Last reply Reply Quote 0
                                  • C Offline
                                    costasppc
                                    last edited by

                                    It worked. I have followed the guides from the Definitive guide book.
                                    The general idea is:
                                    Trunk port=tagged for VLANs
                                    VLAN ports=untagged AND PVID set to each port for its respective VLAN.

                                    interface assignment in PFSense is to PPPoE. Worked as a gateway fine.

                                    are you having ip-address in vr2 also
                                    this question is because, if you have vlans on interface vr2 and vr2 is physical interface, that is undesired situation because it may break something.

                                    you are saing that if modem is connected to wan-if straight it works
                                    but if you connect it to vlan-if it doesn't work
                                    and your settings are: internet–modem--(vlan10 untagged)switch(vlan10 tagged)--pfsense

                                    I do not have IP addresses in vr2. I have VLANs on interface vr2 and yes, it is a physical interface.
                                    How can I check if I have ip address?

                                    Regarding the modem, I had this modem connected to the first WAN (no VLAN) port as a bridge for PPPoE and worked OK. There must be the changes above that prevented it from working in PPPoE mode in the VLAN port.

                                    I will post images for others to get help (if any) soon.

                                    I will see how it works.

                                    Thanks for the help so far!

                                    Regards

                                    Kostas

                                    1 Reply Last reply Reply Quote 0
                                    • M Offline
                                      Metu69salemi
                                      last edited by

                                      went bit over, is this solved or not?

                                      you can goto interfaces:vr2 and check if that interface is static and set ip-address to it

                                      1 Reply Last reply Reply Quote 0
                                      • C Offline
                                        costasppc
                                        last edited by

                                        I think we can consider it solved :)

                                        If any problem occurs, I will post.

                                        I will post the images soon as well.

                                        Best regards and thank you all for your patience.

                                        Kostas

                                        1 Reply Last reply Reply Quote 0
                                        • First post
                                          Last post
                                        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.