Managed Switch having DHCP issues
-
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?
-
It would appear it's stuck on the wrong subnet. Is there a reset button you can try?
-
@jknott I tried rebooting then did a factory reset which solved the problem for now.
-
@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 -
@netblues Yes my LANs are messed up and I am investing time to learn VLANs and hopefully sort this mess out. Thanks.