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

    Managed Switch having DHCP issues

    Scheduled Pinned Locked Moved DHCP and DNS
    5 Posts 3 Posters 544 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.
    • P
      PM_13
      last edited by

      Hi,

      I just bought a Trendnet 8-port managed switch which came pre-configured with 192.168.10.200 address which I used to access the management console and changed the setting to DHCP.

      After reboot, I am unable to find DHCP lease within pfSense and after searching logs for the MAC address of this switch, I found following lines:

      Dec 30 17:14:53	dhclient		Creating resolv.conf
      Dec 30 17:17:03	dhcpd		DHCPDISCOVER from 3c:8c:f8:19:93:01 via igb1: network 192.168.20.0/24: no free leases
      Dec 30 17:17:03	dhcpd		DHCPDISCOVER from 3c:8c:f8:19:93:01 via igb3
      Dec 30 17:17:03	dhcpd		DHCPDISCOVER from 3c:8c:f8:19:93:01 via igb0: network 192.168.10.0/24: no free leases
      Dec 30 17:17:04	dhcpd		DHCPOFFER on 192.168.40.160 to 3c:8c:f8:19:93:01 via igb3
      Dec 30 17:17:04	dhcpd		DHCPREQUEST for 192.168.40.160 (192.168.40.208) from 3c:8c:f8:19:93:01 via igb1: wrong network.
      Dec 30 17:17:04	dhcpd		DHCPNAK on 192.168.40.160 to 3c:8c:f8:19:93:01 via igb1
      Dec 30 17:17:04	dhcpd		DHCPREQUEST for 192.168.40.160 (192.168.40.208) from 3c:8c:f8:19:93:01 via igb3
      Dec 30 17:17:04	dhcpd		DHCPACK on 192.168.40.160 to 3c:8c:f8:19:93:01 via igb3
      Dec 30 17:17:04	dhcpd		DHCPREQUEST for 192.168.40.160 (192.168.40.208) from 3c:8c:f8:19:93:01 via igb0: wrong network.
      Dec 30 17:17:04	dhcpd		DHCPNAK on 192.168.40.160 to 3c:8c:f8:19:93:01 via igb0
      Dec 30 17:18:01	dhcpd		Internet Systems Consortium DHCP Server 4.4.1
      

      The log activity seems to indicate that it got 192.168.40.160 assignment on igb3 (this one runs the guest subnet DHCP) but there is no lease entry for it and the URL does not work either.

      Any idea what this means and how to set it right?

      JKnottJ N 2 Replies Last reply Reply Quote 0
      • JKnottJ
        JKnott @PM_13
        last edited by

        @pm_13

        It would appear it's stuck on the wrong subnet. Is there a reset button you can try?

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

        P 1 Reply Last reply Reply Quote 1
        • P
          PM_13 @JKnott
          last edited by

          @jknott I tried rebooting then did a factory reset which solved the problem for now.

          1 Reply Last reply Reply Quote 0
          • N
            netblues @PM_13
            last edited by

            @pm_13 Did you notice that the same mac requests dhcp on different interfaces and gets the same ip

            igb0 igb1 igb3 appears in the logs.
            No doubt it didnt work.
            Apart from that, dhcp on a managed switch, without console is the definition of looking for trouble.
            Static is the only way to go

            P 1 Reply Last reply Reply Quote 1
            • P
              PM_13 @netblues
              last edited by

              @netblues Yes my LANs are messed up and I am investing time to learn VLANs and hopefully sort this mess out. Thanks.

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