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

    Subnetmask

    Scheduled Pinned Locked Moved General pfSense Questions
    21 Posts 4 Posters 1.4k Views 5 Watching
    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.
    • M Offline
      macguyver2000
      last edited by

      Hello and thank you in advance for any guidance.

      Something 'simple' being a bit perplexing.

      Standard network.

      I have pfsense, netgate, on a typical network.
      From Netgate to a switch.
      I am simply adding another switch.
      When connecting a computer to that new switch, the netmask shown on the computer adapter differs. From the existing switch or the Netgate, it will be the same, all is generally well. But on the new switch, it does not connect, as the netmask is different.

      My goal is 'simple' .. to satisfy this netmask difference so that computers can connect automatically with the switch without changing any settings on those computers.

      It seems a 'simple' issue but to me, perplexing.

      I appreciate any guidance that makes this no longer perplexing and running smoothly.

      JKnottJ 1 Reply Last reply Reply Quote 0
      • JKnottJ Offline
        JKnott @macguyver2000
        last edited by

        @macguyver2000

        There are 2 ways the subnet mask can be set, manually or via DHCP. Does that switch have a DHCP server? They generally don't. A switch should be transparent to that sort of thing.

        Perhaps a little more info would help.

        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
        • M Offline
          macguyver2000
          last edited by

          The topic of 'looping' came up when I talked to someone yesterday.
          Seems the network is acting strange. A user loses network just now, unknown why.
          I was understanding one could use OPT1. In the meanwhile, things appear to be getting kaotic.

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

            User reboots, fine now.
            Another user, I change to an existing connection used by another user, they are fine now.

            Something affecting existing lines is a little bit of a mystery.

            One suggestion was to enable and run through OPT1 to the new switch.
            Another suggestion was to set one of the LAN ports as discreet.

            In the beginning, I thought just adding a switch just passes through whatever was on the previous switch or router, not affecting the netmask.

            JKnottJ 1 Reply Last reply Reply Quote 0
            • JKnottJ Offline
              JKnott @macguyver2000
              last edited by

              @macguyver2000

              Without knowing more about what you're doing, it's hard to offer advice. However, it's unlikely a switch would cause that problem.

              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
              • johnpozJ Offline
                johnpoz LAYER 8 Global Moderator
                last edited by johnpoz

                Switches have ZERO to do with netmask and would have ZERO to do with a client getting a different one...

                What switch? What exactly happens when you say the netmask changes!

                And please READ MY SIGNATURE about sending me PM for help!!!

                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

                M 1 Reply Last reply Reply Quote 0
                • M Offline
                  macguyver2000 @johnpoz
                  last edited by

                  @johnpoz Thank you for your reply Johnpoz. Yes, rightly said.

                  A machine connecting to the new switch, their adapter will 255.255.0.0 not 255.255.255.0

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

                    And what is the IP they get, is it 169.254.x.x ? If so they are not getting an IP from dhcp and using APIPA.. Which uses a default mask of /16 or 255.255.0.0

                    If your saying they get an IP in your exact range - which is what 192.168.1/24, and the mask is wrong - that is just plain impossible unless some other dhcp server on the network handing out the same range with a different mask.

                    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

                    M 1 Reply Last reply Reply Quote 0
                    • M Offline
                      macguyver2000 @johnpoz
                      last edited by

                      @johnpoz Yes, like this. It is not getting the IP from the DHCP and using the APIPA. Just as you said, this is what is indeed happening. I don't recall what IP it was getting at that time, I bet it was something exactly as you wrote.

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

                        I enabled the OPT1 port, it is set to DHCP, APIPA still takes place.
                        There appears more that I need to be setting.
                        The goal is to let the OPT1 port be DHCP and supply the network.

                        I do like both of your taglines very much.
                        "I haven't lost my mind. It's around here...somewhere..."
                        "An intelligent man is sometimes forced to be drunk to spend time with his fools."
                        These are well put. I relate to these :-)

                        NogBadTheBadN 1 Reply Last reply Reply Quote 0
                        • JKnottJ Offline
                          JKnott @macguyver2000
                          last edited by

                          @macguyver2000

                          Well, if you're getting a 169.254 address then you're not connecting to the rest of the network, including the DHCP server. Since inserting that switch causes the problem then you should start looking there, including bad cables.

                          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...

                          M 1 Reply Last reply Reply Quote 0
                          • NogBadTheBadN Offline
                            NogBadTheBad @macguyver2000
                            last edited by

                            @macguyver2000 said in Subnetmask:

                            I enabled the OPT1 port, it is set to DHCP, APIPA still takes place.
                            There appears more that I need to be setting.
                            The goal is to let the OPT1 port be DHCP and supply the network.

                            I do like both of your taglines very much.
                            "I haven't lost my mind. It's around here...somewhere..."
                            "An intelligent man is sometimes forced to be drunk to spend time with his fools."
                            These are well put. I relate to these :-)

                            Plug a PC directly into the OPT1 port, does it work yes / no ?

                            Andy

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

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

                              So lets see some details.. You setup what network on this opt1 interface? Which specific interface is this? Is it actually enabled? What range did you setup for the dhcp server?

                              And as mentioned - yes just plug a client into this interface does it get an IP? Do the lights come on on the interfaces?

                              Do we even know the cables are good your using? etc. etc..

                              What other switches do you have? How are they connected.. What specific hardware is this? Is this like a 3100 with switch ports?

                              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

                              M 1 Reply Last reply Reply Quote 0
                              • M Offline
                                macguyver2000 @JKnott
                                last edited by

                                @JKnott A number of cables were used, with the same issue. Unless they are causing the common problem.

                                1 Reply Last reply Reply Quote 0
                                • M Offline
                                  macguyver2000 @johnpoz
                                  last edited by

                                  @johnpoz OPT1 was enabled. I believe the range was set from .100 onward.
                                  It unfortunately wasn't a go.

                                  When plugging into one of the ports, like the four lan, yes the switch will light for each one.

                                  The cables that were made up, on use appeared they were good, as networking had carried across each one.

                                  This would be the second switch of two. A Trend 8 port gig non peo switch. other is a Cisco switch. The device is the 3100 with switch ports.

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

                                    A 3100.. And what interface are you plugging the switch into?

                                    The opt1 interface.. And if you plug in a device to this port, not your switch.. Does it work? Do you get lights, does it get dhcp?

                                    Your not plugging the same switch into the lan ports and OPT1?

                                    Post up your settings.. This is really clickly clickity shit,, it takes all of 30 seconds to setup.. So either you have something stupid missed, or your cable or switch is bad.. Or the port?

                                    When you connect a device or switch to this port... Does pfsense show it come up and at what speed and duplex?

                                    What actual interface do you have this new network assigned too? mvneta? 0,1, 2? Please post up your interface assignment page.

                                    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

                                    M 1 Reply Last reply Reply Quote 0
                                    • M Offline
                                      macguyver2000 @johnpoz
                                      last edited by

                                      @johnpoz There was some lines showing intermittent or no connect when plugged in directly. Yes, without the switch in line, things could work. Lan ports, not the Opt1. That had not worked.

                                      I agree too, should be a quick thing, something silly missed, or a cable or switch failed. Although the vendor hasn't recalled a bad switch sold, they wondered if that was the problem.

                                      Yes, when without the switch, and a working connection, it will show the speed and duplex.

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

                                        @macguyver2000 said in Subnetmask:

                                        Yes, when without the switch, and a working connection, it will show the speed and duplex.

                                        So your saying when you connect the switch pfsense does not show speed and duplex come up? If doesn't then no it would never work.

                                        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

                                        M 1 Reply Last reply Reply Quote 0
                                        • M Offline
                                          macguyver2000 @johnpoz
                                          last edited by

                                          @johnpoz directly, it got the speed and duplex.

                                          JKnottJ 1 Reply Last reply Reply Quote 0
                                          • JKnottJ Offline
                                            JKnott @macguyver2000
                                            last edited by

                                            @macguyver2000

                                            Well, if it works with a direct connection, but not through the switch, then there's a problem with the switch. Any chance it's a managed switch that's been misconfigured?

                                            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
                                            • First post
                                              Last post
                                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.