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

VLAN's not working with pfSense and HP1810-24G Switch.

L2/Switching/VLANs
7
39
3.5k
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.
  • H
    Herman @johnpoz
    last edited by Mar 7, 2019, 3:37 PM

    Hi @johnpoz,

    Wow. That is a lot of information. I have to dig in there. You were right. I messed up things. Messing around with the mac address was indeed no good idea!!! Now I have to wait till I am home because my whole config isn't accessible anymore :-(

    I have to figure out the exact power shell command to do your trick. I have 2 nic's in de pfsense vm. A LAN and WAN. So I presume that I only have to alter the LAN vlan settings right?

    For now I am not able to connect to the network anymore! :-( I hope I can reverse the settings i've made...

    Cheerz Herman

    Limburg | The Netherlands.
    It is nice to be important. But it is more important to be nice! | Failure, the best teacher it is!

    H 1 Reply Last reply Mar 7, 2019, 6:47 PM Reply Quote 0
    • H
      Herman @Herman
      last edited by Mar 7, 2019, 6:47 PM

      Hello Johnpoz,

      I am back in business again. Was able to reverse my mes sup with the MAC address.

      Let me show you what i Have done. That is after the restore :-)

      login-to-view

      Above you see the 2 virtual network adapters connected to my pfSense. one of them is the LAN and the other would be the WAN. cannot see that here. I think that is the reason why @bobtheninja was using the MAC address part???

      Next I executed the following command.

      login-to-view

      After that evrything stops working. When setting the mode back to Untagged everything is working again.

      My HP 1810 switch is configured this way;

      login-to-view

      Port 1 on the switch that is connected to the pfSense LAN interface is configured as a Trunk port

      login-to-view

      Any suggestions?

      Kind regards Herman

      Limburg | The Netherlands.
      It is nice to be important. But it is more important to be nice! | Failure, the best teacher it is!

      H 1 Reply Last reply Mar 7, 2019, 6:53 PM Reply Quote 0
      • H
        Herman @Herman
        last edited by Mar 7, 2019, 6:53 PM

        @herman said in VLAN's not working with pfSense and HP1810-24G Switch.:

        Hello Johnpoz,

        I am back in business again. Was able to reverse my mes sup with the MAC address.

        Let me show you what i Have done. That is after the restore :-)

        login-to-view

        Above you see the 2 virtual network adapters connected to my pfSense. one of them is the LAN and the other would be the WAN. cannot see that here. I think that is the reason why @bobtheninja was using the MAC address part???

        Next I executed the following command.

        login-to-view

        After that evrything stops working. When setting the mode back to Untagged everything is working again.

        My HP 1810 switch is configured this way;

        login-to-view

        Port 1 on the switch that is connected to the pfSense LAN interface is configured as a Trunk port

        login-to-view

        Any suggestions?

        Kind regards Herman

        Another screenshot how the interfaces are shown in pfSense;

        login-to-view

        Limburg | The Netherlands.
        It is nice to be important. But it is more important to be nice! | Failure, the best teacher it is!

        1 Reply Last reply Reply Quote 0
        • J
          johnpoz LAYER 8 Global Moderator
          last edited by Mar 7, 2019, 8:07 PM

          You sure hp uses trunk in the same same with as cisco? WTF is static mode? Where are you tagging specific vlans?

          An intelligent man is sometimes forced to be drunk to spend time with his fools
          If you get confused: Listen to the Music Play
          Please don't Chat/PM me for help, unless mod related
          SG-4860 24.11 | Lab VMs 2.7.2, 24.11

          H 1 Reply Last reply Mar 8, 2019, 12:05 PM Reply Quote 0
          • P
            Pippin
            last edited by Mar 7, 2019, 8:26 PM

            Yes, there is a difference between HP and Cisco:
            https://networkingnerd.net/2011/02/02/when-is-a-trunk-not-a-trunk/

            I gloomily came to the ironic conclusion that if you take a highly intelligent person and give them the best possible, elite education, then you will most likely wind up with an academic who is completely impervious to reality.
            Halton Arp

            1 Reply Last reply Reply Quote 1
            • J
              johnpoz LAYER 8 Global Moderator
              last edited by Mar 7, 2019, 8:32 PM

              ^ exactly!!! I thought they were different!

              An intelligent man is sometimes forced to be drunk to spend time with his fools
              If you get confused: Listen to the Music Play
              Please don't Chat/PM me for help, unless mod related
              SG-4860 24.11 | Lab VMs 2.7.2, 24.11

              1 Reply Last reply Reply Quote 0
              • P
                Pippin
                last edited by Mar 7, 2019, 9:15 PM

                On the old forum I posted a question few years ago and ran into this terminology problem myself, you where part of it too johnpoz ☺ , misunderstanding all around as same here, but cannot find the post...

                I gloomily came to the ironic conclusion that if you take a highly intelligent person and give them the best possible, elite education, then you will most likely wind up with an academic who is completely impervious to reality.
                Halton Arp

                H 1 Reply Last reply Mar 8, 2019, 12:07 PM Reply Quote 0
                • J
                  johnpoz LAYER 8 Global Moderator
                  last edited by Mar 7, 2019, 9:22 PM

                  I have not had to touch an HP switch for years and years - and to be honest have no desire to any time soon... But yeah I recall terminology is different that cisco ;)

                  An intelligent man is sometimes forced to be drunk to spend time with his fools
                  If you get confused: Listen to the Music Play
                  Please don't Chat/PM me for help, unless mod related
                  SG-4860 24.11 | Lab VMs 2.7.2, 24.11

                  H 1 Reply Last reply Mar 8, 2019, 12:12 PM Reply Quote 0
                  • H
                    Herman @johnpoz
                    last edited by Mar 8, 2019, 12:05 PM

                    @johnpoz said in VLAN's not working with pfSense and HP1810-24G Switch.:

                    You sure hp uses trunk in the same same with as cisco? WTF is static mode? Where are you tagging specific vlans?

                    When I read the document Pipin provided HP uses tagged ports to carry multiple vlans.

                    Under mode there are the multiple option;

                    login-to-view

                    Gr. Herman

                    Limburg | The Netherlands.
                    It is nice to be important. But it is more important to be nice! | Failure, the best teacher it is!

                    G 1 Reply Last reply Mar 8, 2019, 2:09 PM Reply Quote 0
                    • H
                      Herman @Pippin
                      last edited by Mar 8, 2019, 12:07 PM

                      @pippin said in VLAN's not working with pfSense and HP1810-24G Switch.:

                      On the old forum I posted a question few years ago and ran into this terminology problem myself, you where part of it too johnpoz ☺ , misunderstanding all around as same here, but cannot find the post...

                      Hi Pipin, I really hoping you will ... :-)

                      It seems that my HP 1810-24G is the pain in the ass here.

                      Gr. Herman

                      Limburg | The Netherlands.
                      It is nice to be important. But it is more important to be nice! | Failure, the best teacher it is!

                      1 Reply Last reply Reply Quote 0
                      • H
                        Herman @johnpoz
                        last edited by Mar 8, 2019, 12:12 PM

                        @johnpoz said in VLAN's not working with pfSense and HP1810-24G Switch.:

                        I have not had to touch an HP switch for years and years - and to be honest have no desire to any time soon... But yeah I recall terminology is different that cisco ;)

                        I have the feeling you are not a really big fan of HP switches 😉

                        You are tending more to Cisco? Is Unify also a good product?

                        gr. Herman

                        Limburg | The Netherlands.
                        It is nice to be important. But it is more important to be nice! | Failure, the best teacher it is!

                        1 Reply Last reply Reply Quote 0
                        • J
                          johnpoz LAYER 8 Global Moderator
                          last edited by Mar 8, 2019, 1:39 PM

                          Not that not a fan of them... Just much more experience with Cisco, and the few times I have had to deal with HP.. Not impressed with them compared to the cisco use to working with.

                          For the price of unifi - you could get a pretty much full featured L3 switch from cisco small business line. The sg300 or sg350 line.. I just saw a sg350-28 on amazon for $179.. Its feature set far exceeds the same sort of price point from unifi.

                          An intelligent man is sometimes forced to be drunk to spend time with his fools
                          If you get confused: Listen to the Music Play
                          Please don't Chat/PM me for help, unless mod related
                          SG-4860 24.11 | Lab VMs 2.7.2, 24.11

                          1 Reply Last reply Reply Quote 0
                          • G
                            Grimson Banned @Herman
                            last edited by Mar 8, 2019, 2:09 PM

                            @herman said in VLAN's not working with pfSense and HP1810-24G Switch.:

                            login-to-view

                            Those are LAGG modes, nothing to do with setting up VLANs.

                            H 1 Reply Last reply Mar 8, 2019, 5:16 PM Reply Quote 0
                            • H
                              Herman @Grimson
                              last edited by Mar 8, 2019, 5:16 PM

                              @grimson said in VLAN's not working with pfSense and HP1810-24G Switch.:

                              @herman said in VLAN's not working with pfSense and HP1810-24G Switch.:

                              login-to-view

                              Those are LAGG modes, nothing to do with setting up VLANs.

                              Thanks for your reply @Grimson .

                              Gr. Herman

                              Limburg | The Netherlands.
                              It is nice to be important. But it is more important to be nice! | Failure, the best teacher it is!

                              1 Reply Last reply Reply Quote 0
                              • J
                                johnpoz LAYER 8 Global Moderator
                                last edited by johnpoz Mar 8, 2019, 5:34 PM Mar 8, 2019, 5:34 PM

                                The link pippin gave calls out what you need to do

                                "In HPvania, the terminology used for a port that carries multiple VLANs is a tagged port. On an HP switch, the individual ports are rarely configured directly. Instead, the VLAN itself is configured and the ports are added to the VLAN configuration. "

                                An intelligent man is sometimes forced to be drunk to spend time with his fools
                                If you get confused: Listen to the Music Play
                                Please don't Chat/PM me for help, unless mod related
                                SG-4860 24.11 | Lab VMs 2.7.2, 24.11

                                1 Reply Last reply Reply Quote 0
                                • H
                                  Herman
                                  last edited by Mar 9, 2019, 6:02 PM

                                  Hi Guys,

                                  Believe it or not, but my problem is solved. Thanks to all the expertise of you guys on here I finally get it going. There are still some issues regarding firewall rules but the VLAN part is working! Thanks to everybody who replied to this topic.

                                  For the other users who might have a HP 18010-24G and a Hyper-V virtualized pfSense I write down what the solution is in my case:

                                  1. On the pfsense box create a VLAN10 with ID 10. Assign the interface VLAN10 with the LAN (hn0) interface as parent interface.
                                  2. on the Hyper-V host run in a elevated powershell the folowing line: Get-VMNetworkAdapter -VMName "name of vm" | Where-Object -Property MacAddress -eq "mac address of the LAN interface" | Set-VMNetworkAdapterVlan -Trunk -NativeVlanId 1 -AllowedVlanIdList "10". If you have more interfaces connected to the pfSense box for example LAN and WAN, the mac address will modify the right interface. In this case the LAN interface.
                                  3. on the HP 1810-24G switch set the port that is connected to the LAN port of the pfSense box for both vlan's to Tagged! In this case VLAN1 and VLAN10 need to be marked as Tagged.
                                  4. All the device you want to have in VLAN10 the physical switch port of that device need to be set to Untagged on VLAN 10. VLAN1 should then become Excluded automatically on that port.
                                  5. Last but not least create a VLAN10 firewall rule. Tip. Copy the "Default allow LAN to any" and modify the rule from LAN to VLAN10 there were needed.
                                  6. Voila! In my case all was working now.

                                  In the above explanation I took VLAN10 and the networks 10.0.0.0/24 and 10.0.10.0/24 as example. Feel free to play around with other vlan's and subnets.

                                  Take also a look at the info other members provided. For me it was a big help and learning curve.

                                  Thanks again guys for all the help and patience.

                                  Cheers Herman

                                  Limburg | The Netherlands.
                                  It is nice to be important. But it is more important to be nice! | Failure, the best teacher it is!

                                  1 Reply Last reply Reply Quote 0
                                  • J
                                    johnpoz LAYER 8 Global Moderator
                                    last edited by Mar 9, 2019, 6:27 PM

                                    If your setting vlan 1 as native - that would be an untagged vlan..

                                    An intelligent man is sometimes forced to be drunk to spend time with his fools
                                    If you get confused: Listen to the Music Play
                                    Please don't Chat/PM me for help, unless mod related
                                    SG-4860 24.11 | Lab VMs 2.7.2, 24.11

                                    H 1 Reply Last reply Mar 9, 2019, 7:23 PM Reply Quote 0
                                    • H
                                      Herman @johnpoz
                                      last edited by Mar 9, 2019, 7:23 PM

                                      @johnpoz said in VLAN's not working with pfSense and HP1810-24G Switch.:

                                      If your setting vlan 1 as native - that would be an untagged vlan..

                                      Both vlans on port 1 set to (T)agged. This setup is working here.

                                      Limburg | The Netherlands.
                                      It is nice to be important. But it is more important to be nice! | Failure, the best teacher it is!

                                      1 Reply Last reply Reply Quote 0
                                      • D
                                        Derelict LAYER 8 Netgate
                                        last edited by Mar 9, 2019, 8:43 PM

                                        Tagged VLAN 1 😱

                                        Chattanooga, Tennessee, USA
                                        A comprehensive network diagram is worth 10,000 words and 15 conference calls.
                                        DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
                                        Do Not Chat For Help! NO_WAN_EGRESS(TM)

                                        H 1 Reply Last reply Mar 9, 2019, 8:45 PM Reply Quote 0
                                        • H
                                          Herman @Derelict
                                          last edited by Herman Mar 9, 2019, 8:46 PM Mar 9, 2019, 8:45 PM

                                          @derelict said in VLAN's not working with pfSense and HP1810-24G Switch.:

                                          Tagged VLAN 1 😱

                                          @Derelict, you are screaming... Please tell me why?

                                          Limburg | The Netherlands.
                                          It is nice to be important. But it is more important to be nice! | Failure, the best teacher it is!

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