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

    Subnetmask

    Scheduled Pinned Locked Moved General pfSense Questions
    21 Posts 4 Posters 1.5k 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.
    • 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 25.07.1 | Lab VMs 2.8, 25.07.1

        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 25.07.1 | Lab VMs 2.8, 25.07.1

            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 25.07.1 | Lab VMs 2.8, 25.07.1

                      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 25.07.1 | Lab VMs 2.8, 25.07.1

                            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 25.07.1 | Lab VMs 2.8, 25.07.1

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

                                      And this client gets a dhcp address?

                                      Yeah with @JKnott here if you get duplex and speed with client, and then using the same wired connected to switch you do not.. Then something night right with that 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 25.07.1 | Lab VMs 2.8, 25.07.1

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