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

    VLAN can't ping pfSense address

    Scheduled Pinned Locked Moved L2/Switching/VLANs
    32 Posts 4 Posters 4.3k 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.
    • D
      Daniel1972
      last edited by

      Hi. Iam facing an strange problem setting up a new VLAN in my pfSense.
      I create a new VLAN (ID 20) in an OPT Interface.
      I configured my switch to manage traffic between servers in this VLAN and pfSense.
      Also configured the servers (ESXi) with vlan ID 20.

      The traffic between servers is Ok. But cant ping pfSense.

      In order to remove a bad switch config from the equation, we swap some patchords in switch (server1 patchord -> pfsense switch port and pfsense patchord -> server1 switch port)

      When we do that, the server1 was still reachable and pfsense can't be reached as before. So, at a first glance the switch config it's not the problem.

      It's there a chance that I need to reboot my pfSense? Or this that's not makes any sense?

      Thanks in advance.

      johnpozJ 1 Reply Last reply Reply Quote 0
      • johnpozJ
        johnpoz LAYER 8 Global Moderator @Daniel1972
        last edited by

        what are you rules on this new vlan interface?

        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.8, 24.11

        D 1 Reply Last reply Reply Quote 0
        • D
          Daniel1972 @johnpoz
          last edited by

          @johnpoz
          d6fd4a0d-096b-4d3b-809c-5a089759758b-image.png

          all traffic is allowed. or am I wrong?

          Bob.DigB 1 Reply Last reply Reply Quote 0
          • Bob.DigB
            Bob.Dig LAYER 8 @Daniel1972
            last edited by Bob.Dig

            @daniel1972 said in VLAN can't ping pfSense address:

            all traffic is allowed. or am I wrong?

            You are wrong, IPv6 is not allowed.
            Here it is working without a problem.

            D 1 Reply Last reply Reply Quote 0
            • D
              Daniel1972 @Bob.Dig
              last edited by

              @bob-dig , yes, you are wright. We dont use IPv6. That's all.

              I have found a clue.

              screenshot.130.jpg

              My traffic is send to Internet. I need to know why.

              192.168.5.14 is a pc in my LAN. 192.168.20.11 is my Server 1.

              V 1 Reply Last reply Reply Quote 0
              • V
                viragomann @Daniel1972
                last edited by

                @daniel1972 said in VLAN can't ping pfSense address:

                My traffic is send to Internet. I need to know why.
                192.168.5.14 is a pc in my LAN. 192.168.20.11 is my Server 1.

                This typically hapens when the destination IP doesn't lie within one of the networks which are assigned to pfSense and there is no other appropriate route defined.

                I assume, 192.168.20.11 is in the concerned VLAN with ID20.
                Possibly you've set a wrong mask for that interface?

                johnpozJ D 2 Replies Last reply Reply Quote 0
                • johnpozJ
                  johnpoz LAYER 8 Global Moderator @viragomann
                  last edited by

                  So your trying to ping pfsense 20.11 address from a different network this 192.168.5 - what are the rules on this interface. I would guess your forcing traffic out your internet gateway which is why its sending traffic there.

                  Look to bypass policy routing.

                  https://docs.netgate.com/pfsense/en/latest/multiwan/policy-route.html#bypassing-policy-routing

                  I thought you couldn't ping the pfsense 20.x address from something on the 20 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.8, 24.11

                  D 2 Replies Last reply Reply Quote 0
                  • D
                    Daniel1972 @viragomann
                    last edited by

                    @viragomann well, config seems to be ok:

                    e1c18a1a-1710-4e28-831e-d9d68b55ea85-image.png

                    c994c2ca-513a-4b49-92b5-d2dce2c61a0c-image.png

                    1 Reply Last reply Reply Quote 0
                    • D
                      Daniel1972 @johnpoz
                      last edited by

                      @johnpoz said in VLAN can't ping pfSense address:

                      I thought you couldn't ping the pfsense 20.x address from something on the 20 vlan..

                      That's true too.

                      ed4497b8-8cfa-4919-8dba-12aaecedfa04-image.png

                      D 1 Reply Last reply Reply Quote 0
                      • D
                        Daniel1972 @Daniel1972
                        last edited by

                        @daniel1972

                        Well, at least routing is solved:

                        17c34aca-b5ba-43f2-a4ce-a9503b8b028e-image.png

                        Iam suspecting about my switch now.

                        1 Reply Last reply Reply Quote 0
                        • D
                          Daniel1972 @johnpoz
                          last edited by

                          @johnpoz thanks. I solve routing issue using your the link you share.
                          Unfortunatelly I can't solve the traffic issue inside VLAN 20.
                          But Iam gonna give some try to switch config.

                          I guess the problem is there right now.

                          Thanks.

                          johnpozJ 1 Reply Last reply Reply Quote 0
                          • johnpozJ
                            johnpoz LAYER 8 Global Moderator @Daniel1972
                            last edited by

                            Also configured the servers (ESXi) with vlan ID 20.

                            How is pfsense connected to the network - via a switch? If vlan 20 is tagged in pfsense, then it needs to be tagged on your switch port its connected to.

                            When it comes to the connection into esxi. What vswitch and port group is connected to? If you want esxi to pass the tags then your vswitch/port group needs to have vlan ID 4095 set to pass the tags.

                            Or you can just let esxi handle the tags and set them on your vswitch/port group and the VM interface connected to this would not have any tags set.

                            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.8, 24.11

                            D 1 Reply Last reply Reply Quote 0
                            • D
                              Daniel1972 @johnpoz
                              last edited by

                              @johnpoz said in VLAN can't ping pfSense address:

                              How is pfsense connected to the network - via a switch? If vlan 20 is tagged in pfsense, then it needs to be tagged on your switch port its connected to.

                              Yes. pfsense connects via switch. Vlan is tagged in pfsense:
                              316c696f-d5c3-4774-b136-9d3487f1dc62-image.png

                              And it's tagged on switch to ( as trunk port)

                              When it comes to the connection into esxi. What vswitch and port group is connected to? If you want esxi to pass the tags then your vswitch/port group needs to have vlan ID 4095 set to pass the tags.

                              The switch ports where ESXi is connected are trunked to. and VLAN 20 is configured at ESXi management NIC.

                              Iam reading this:

                              https://docs.netgate.com/pfsense/en/latest/recipes/switch-vlan-configuration.html

                              To try to understand a little bit more about the correct config.
                              I have change the switch without success. Iam gonna set servers ports to access and remove all vlans config from switch and ESXi to try to setting this up from bottom to top.

                              If setting ESXi without vlan config and switch ports as access, then I guess if the problem still persist I will have to take a look at pfsense, but if the problem dissapear then I have to take a look at switch config.

                              Unfortunatelly I am not a pfSense neither networking expert. So I can't tell yet where the error is.

                              Thanks for your time.

                              Or you can just let esxi handle the tags and set them on your vswitch/port group and the VM interface connected to this would not have any tags set.

                              johnpozJ 1 Reply Last reply Reply Quote 0
                              • johnpozJ
                                johnpoz LAYER 8 Global Moderator @Daniel1972
                                last edited by johnpoz

                                @daniel1972 said in VLAN can't ping pfSense address:

                                VLAN 20 is configured at ESXi management NIC.

                                So your trying to get to esxi managment? Or a vm?

                                I would suggest just connect a normal PC to the port - would just be access port in vlan 20.. does that work?

                                esxi and vlan with tagging can be bit much for someone new to it.. Are you doing VST or VGT, or do you have multiple interfaces in your esxi host and going to do EST?

                                This might help
                                https://kb.vmware.com/s/article/1003806

                                But I would get your switch and pfsense working with just a PC ending up in the vlan you want first before playing with esxi and 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.8, 24.11

                                D 1 Reply Last reply Reply Quote 0
                                • D
                                  Daniel1972 @johnpoz
                                  last edited by Daniel1972

                                  @johnpoz Thanks for your help. Iam gonna try with a PC as you said in a access port.

                                  Well I really don't know wich virtual tagging method are gonna be finally used. That's an integrator VMWare consultant matter.

                                  Iam trying to figure it out why is this enviroment not working (it's someway similar to another ones we alredy had)

                                  But following your tip Iam gonna start from simplest config as I can.

                                  Thanks again.

                                  D 1 Reply Last reply Reply Quote 0
                                  • D
                                    Daniel1972 @Daniel1972
                                    last edited by

                                    @daniel1972

                                    I had setup a Notebook in an access port with an IP in VLAN 20 range (192.168.20.64) and can't ping it at all.

                                    I just get Destination Host Unreachable from this notebook and from one ESXi server (removed vlan config and set switch port to access).

                                    Iam planning to restart pfSense. Not more changes for today.

                                    Thanks.

                                    johnpozJ 1 Reply Last reply Reply Quote 0
                                    • johnpozJ
                                      johnpoz LAYER 8 Global Moderator @Daniel1972
                                      last edited by johnpoz

                                      @daniel1972 said in VLAN can't ping pfSense address:

                                      Iam planning to restart pfSense.

                                      That not going to fix anything.. The only time you would ever have to reboot pfsense is on an upgrade..

                                      What switch are you setting vlans on? Is this a netgate appliance - and you are using the switchports on it?

                                      Setting up vlans is literally 30 seconds.. If you working with netgate appliance and you wanting to put port in a vlan - your going to have to show your switch config from your appliance.

                                      If this is some other switch?

                                      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.8, 24.11

                                      D 2 Replies Last reply Reply Quote 0
                                      • D
                                        Daniel1972 @johnpoz
                                        last edited by

                                        @johnpoz thanks for your kind help.

                                        well, at least I learnt something (when to restart pfsense).

                                        I have found this in my arp table:

                                        tabla_arp.png

                                        Still can't figure it out what is happening here (pfsense or switch config).

                                        Iam gonna try a couple of things and then upload switch config. It's a CISCO SG-250. Very simple switch.
                                        Iam using it to test this environment and then move to production one.

                                        johnpozJ 1 Reply Last reply Reply Quote 0
                                        • johnpozJ
                                          johnpoz LAYER 8 Global Moderator @Daniel1972
                                          last edited by johnpoz

                                          Well lets see the config from your 250, I have 350s

                                          Yeah your right simple config.. Like I said this is 30 seconds.. Did you actually create vlan 20 in your cisco switch?

                                          pfsense -- trunk 20T -- cisco -- Acess 20U --- PC

                                          incomplete in the arp table - just means nothing answered for the IP you arp for

                                          here

                                          [21.05-RELEASE][admin@sg4860.local.lan]/root: ping 192.168.9.44
                                          PING 192.168.9.44 (192.168.9.44): 56 data bytes
                                          ^C
                                          --- 192.168.9.44 ping statistics ---
                                          3 packets transmitted, 0 packets received, 100.0% packet loss
                                          [21.05-RELEASE][admin@sg4860.local.lan]/root: arp -a | grep 192.168.9.44
                                          ? (192.168.9.44) at (incomplete) on igb0 expired [ethernet]
                                          [21.05-RELEASE][admin@sg4860.local.lan]/root: 
                                          

                                          Because there is no 9.44 - You have a problem with just layer 2 connectivity if you can not arp the mac

                                          I create a new VLAN (ID 20) in an OPT Interface.

                                          So is there a native network on this opt interface? Do you have the interface enabled?

                                          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.8, 24.11

                                          1 Reply Last reply Reply Quote 0
                                          • D
                                            Daniel1972 @johnpoz
                                            last edited by

                                            @johnpoz here it is, switch config:

                                            VLANs:
                                            1 - Not used at all
                                            3 - traffic alredy passing across pfsense (its working)
                                            20 and 25 - My New VLANs.

                                            Iam just only talking about VLAN 20 because I assume that if a fix one, fix both.

                                            Switch:
                                            ports: 1-4 trunk ports (1st. attempt)
                                            port: 10 - VLAN 20 Untagged port for my laptop
                                            ports: 13-16 untagged ports on VLAN 20 (where my hosts are right now)
                                            port 23: where pfsense is connected to.
                                            port 24: VLAN 3 traffic (working Ok)

                                            That's all.

                                            switch_cfg.png

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