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

    Not new to pfSense, but setting up my first VLAN, but I just can't grasp the concept...

    Scheduled Pinned Locked Moved L2/Switching/VLANs
    vlan
    17 Posts 3 Posters 1.8k 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.
    • G
      GoateedGeek
      last edited by

      From the bottom of the linked page...

      "Note
      Selecting a Gateway from the drop-down list, or adding a new gateway and selecting it, will cause pfSense to treat that interface as a WAN type interface for NAT and related functions. This is not desirable for internal-facing interfaces such as LAN or a DMZ. Gateways may still be utilized on those interfaces for static routes and other purposes without selecting a Gateway here on the interfaces page."

      This is from the first Netgate link I posted. Towards the bottom of that page.
      https://docs.netgate.com/pfsense/en/latest/book/config/interface-configuration.html#config-interface-configuration-basics

      I interpreted that to read as I must setup another gateway, as I can not select my 192.168.1.1 gateway. In my mind Gateway means address back to the router.

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

        Huh?? It states

        "This is not desirable for internal-facing interfaces such as LAN or a DMZ"

        A gateway is an IP that you would send traffic to get off "this network"

        So your lan is 192.168.1/24, pfsense IP is 192.168.1.1 - this interface has NO GATEWAY!!! Yes pfsense IP 1.1 is the "gateway" for say 192.168.1.100, because pfsense is the IP it talks to to get OFF of 192.168.1

        Pfsense ONLY gateway is your ISP gateway ip address, of if your behind a double nat... the gateway listed on your wan... This is the only gateway you would setup on pfsense... Unless you had another wan connection, or a transit network to get to other networks.

        When you setup your vlan, 192.168.0/24 with pfsense address on this interface say 192.168.0.1 there is NO GATEWAY setup on this interface.. Devices on 192.168.0/24 say 192.168.0.99 would use pfsense IP 192.168.0.1 as their "gateway"

        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

        G 1 Reply Last reply Reply Quote 0
        • G
          GoateedGeek @johnpoz
          last edited by

          @johnpoz
          Thank you. That greatly clarifys it for me.

          My last question, will I be able to use 802.1Q VLAN tagging based on the device (Roku, or MAC Address or IP address) as opposed to port tagging?

          Thanks much for your assistance!

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

            Yeah want to use tagging vs ports for sure.. But I question if that tplink will actually allow you to remove a port from vlan 1.. What netgear do you have?

            Also if your going to be doing tagging on esxi your prob going to need to set the vswitch vlan IP to 4095 so it doesn't strip tags... Prob a good idea to draw it all up how you want to physically connect everything, and we can discuss.

            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

            G 1 Reply Last reply Reply Quote 0
            • G
              GoateedGeek @johnpoz
              last edited by

              @johnpoz
              I have a Netgear GS108TV2.
              I'm not an artist so:

              Roku 1
              Roku 2
              ATV 1
              ATV 2
              FireTV
              These I want to go across 192.168.0.1 LAN, pulling from WAN only, NOT my VPN which is also setup on pfSense.

              Everything else (for the present for now) across 192.168.1.1 LAN.

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

                break out some crayons dude ;) How do you have this all connect to your esxi host.

                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
                • G
                  GoateedGeek
                  last edited by

                  The ESXi server has 6 NIC's. 2 for management, the others for are for pfSense. One incoming WAN, 192.168.1.1 LAN comes out of one NIC to the 16 port switch. Actually, I have the other 2 connected to the switch as well. Why? I don't really know, because I could I guess, redundency?gear.jpg

                  1 Reply Last reply Reply Quote 0
                  • GrimsonG
                    Grimson Banned
                    last edited by

                    Lol, that's not the kind of picture you were asked for. Look at these and then make your own: https://en.wikipedia.org/wiki/Computer_network_diagram

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

                      So you have enough physical nics on your esxi host that you dont need to vlan.. in pfsense or esxi, only on your switch to isolate the different layer 2 traffic.

                      About ready to head home - I will draw it up tmrw or later tonight... Prob early tmrw morning when I wake up and have quiet time..

                      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

                      G 1 Reply Last reply Reply Quote 0
                      • G
                        GoateedGeek @johnpoz
                        last edited by

                        @johnpoz
                        Thanks for your help!

                        I dumped Visio years ago when I retired...

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

                          You don't need visio - lots of alternatives..

                          Here some ascii ones ;)

                          https://textik.com
                          http://asciiflow.com/

                          Or gliffy etc. etc.

                          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

                          G 1 Reply Last reply Reply Quote 0
                          • G
                            GoateedGeek @johnpoz
                            last edited by

                            @johnpoz
                            This is as close as i can get.

                            network.jpg

                            1 Reply Last reply Reply Quote 0
                            • G
                              GoateedGeek
                              last edited by

                              @johnpoz
                              My drawing above is the existing config. The Netgear switch is completely unused. I would be fine using that if need be for the VLAN or port 5 or 6, although from Example 1 here, which I was going to loosely follow for the VLAN tagging, it appears to me, I should be able to remove a port from VLAN 1.

                              https://www.tp-link.com/us/faq-788.html

                              Tim

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