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

    Ethernet devices being assigned WI-Fi Range IP addresses - How do I keep the subnets separate?

    Scheduled Pinned Locked Moved General pfSense Questions
    6 Posts 3 Posters 770 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.
    • M
      mkammer
      last edited by mkammer

      Gertjan,

      To answer your questions:
      You have a Wifi adaptor "playing" AP on a LAN type interface (OPTx), and a classic NIC being LAN, right ? YES
      Both are separated networks, right ? YES
      Both have separated DHCP servers assigned, right ? YES
      And thus separated pools ! YES

      I am moderately confident that this question has been asked before, but I am currently stumped:
      I have a desktop I-5 computer with a built in Atheros Wi-Fi adapter.

      When I configure DHCP to use this adapter, and the primary NIC, with a different subnet range I do get Wi-Fi addresses from devices attached to the Wi-Fi devices.
      however:

      When leases for Ethernet devices expire, those Ethernet devices are being assigned addresses that should have been assigned to WI-Fi devices.

      How do I keep DHCP from assigning Wi-Fi addresses to Ethernet devices?

      This is the real crux of the problem: I am using a Google Mesh for Wi-Fi and it is not allowing me to access my LG TV from my Galaxy Note 9 phone.
      I was hoping to use the internal Atheros adapter in the router to set up an access point. This works, but I am having IP assignment problems when it is attached.

      1 Reply Last reply Reply Quote 0
      • GertjanG
        Gertjan
        last edited by

        You have a Wifi adaptor "playing" AP on a LAN type interface (OPTx), and a classic NIC being LAN, right ?
        Both are separated networks, right ?
        Both have separated DHCP servers assigned, right ?
        And thus separated pools !

        And AP is nothing more as a "Radio traffic" to "electric over cable traffic" converter. The DHCP server can not know if a device is connected over Wifi (radio) and then over wire (== electric) : for the server, it's all the same ....

        If you need to have some devices always have the same IP, use the static MAC DHCP lease facility.

        When a devices uses another network, thus other DHCP server, thus other pool, the IP will be different.

        Most probably I didn't understand the question ...

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

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

          @Gertjan said in Ethernet devices being assigned WI-Fi Range IP addresses - How do I keep the subnets separate?:

          Most probably I didn't understand the question ...

          That makes two of us. I have a notebook computer here which I use on either Ethernet or WiFi. It gets different IP addresses, according to how it's connected. That's entirely normal. If WiFi is on a different subnet, how could an Ethernet device, get an address from the other subnet, unless he has something configured wrong.

          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
            mkammer
            last edited by mkammer

            Yes, that is my question. Most likely I DO have something configured incorrectly.
            What is happening is this:

            I have a pool for Ethernet on LAN set for 192.168.1.5 - 192.168.1.150
            The Wifi address is set to 192.168.5.1/24
            I have a DHCP pool for Wifi set for 192.168.5.2 - 192.168.5.100

            Wi-fi devices are receiving addresses in the correct range of 192.168.5.2 - 192.168.5.100

            OCCCASIONALLY devices on the LAN are receiving addresses from the the WI-Fi DHCP pool range even though they are on ethernet (wired line)

            Note: Simply moving the laptop from Wi-Fi to Lan and back does not cause this issue. The lease has to expire before the misdirection occurs.

            How is this even possible? I did not think there was a method that would allow DHCP to be unaware of the physical connection.
            I am obviously missing something fundamental here.
            I looked at the DORA interaction, and yes the PFSense is offering newly connected Ethernet devices addresses in either the first or second subnet equally.

            Is the Wiireless mode supposed to be set to "Access Point", Infrastructure (BSS), or AdHoc (IBSS). - I had assumed it would be Access Point

            GertjanG 1 Reply Last reply Reply Quote 0
            • GertjanG
              Gertjan @mkammer
              last edited by

              @mkammer said in Ethernet devices being assigned WI-Fi Range IP addresses - How do I keep the subnets separate?:

              OCCCASIONALLY devices on the LAN are receiving addresses from the the WI-Fi DHCP pool range even though they are on ethernet (wired line)

              If an interface is activated and 'hooked up' it is normal that your PC has a 192.168.1.x LAN IP and at the same time an IP like 192.168.5.y at the Wifi Interface.
              Your PC has TWO IP's at that moment. Not a problem at all.
              At any time, only one of these interfaces (IP's) also has it's gateway activated, or to be more precise : it's metric value is higher then the other interface, so it will be used in priority.

              Normally, when you are at home, and wired up (cable) you shut down ( there is a key on the keyboard for this ) the Wifi.

              No "help me" PM's please. Use the forum, the community will thank you.
              Edit : and where are the logs ??

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

                @Gertjan said in Ethernet devices being assigned WI-Fi Range IP addresses - How do I keep the subnets separate?:

                Normally, when you are at home, and wired up (cable) you shut down ( there is a key on the keyboard for this ) the Wifi.

                I have never done that. I just rely on the metric. Also, with Linux, unlike Windows, the WiFi address is still reachable via the Ethernet port. So, if I ping the WiFi address, while connected with Ethernet, the ping goes in via Ethernet. I have verified that with Wireshark.

                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.