I factory reset an L009 and do QuickSet router mode, and I run DHCP Client and attach it to interface ‘bridge’ - and I don’t get an IP.
I have a device connected to ether8 and it’s assigned an IP just fine.
Should the DHCP Client be working in this circumstance?
I’m trying to find a minimal test case for the DHCP Client, as a baseline for using it to debug VLAN DHCP issues - but I’m having problems with Very Basic things, so just want a sanity check.
I downgraded to 7.13.5 from 7.14.1 after starting this thread, to debug some stuff, but that should not be relevant here - that’s just why it’s that version.
Where from? That would work only if you had another DHCP server running on network, attached to bridge. But then I’m why woukd you need anotger DHCP server (running on your L009).
No, it doesn’t have any sense to run both DHCP server and client on the same interface. If not for other things, DHCP server needs fully functional IP address on the interface before it can answer any lease request. But if you already have IP address on bridge (according to your config you do), why would you want to get another one (in same IP subnet)?
If you are using your device as router then you need some WAN interface, so you can connect your device that is acting as router to the internet.
In that case default configuration configure ether1 as WAN port and enable DHCP client on it. If you connect that port to your existing network then IF you have DHCP server enabled on it router will receive IP address from your other network.
You must decide are you using your device as a switch or router…
Okey, that makes sense, thanks for the replies - I was misusing the DHCP Client so (was looking to use it as a debugging tool to check DHCP availability of interfaces), and it should not function this way - so there is nothing wrong/amiss here.
Well, you can check DHCP leases under IP/DHCP Server/Leases. Here you will find all leases issued by your DHCP server. IP addresses, MAC addresses etc.
EDIT: Ahh, typical - moments after I post about a problem I’ve been trying to sort out for 2 days, I sort it out almost immediately after
Turned out to be this SwOS setting, missing a ‘trusted’ selection for the trunk port - preventing DHCP from getting through from the router:
Thanks - yes, have confirmed leases aren’t showing in that, have been running Wireshark on the computer trying to get a DHCP IP and can see the DHCP Discovery sent from computer but nothing else - and have gone as far as mining through the packet sniffer and such to try and trace where it all breaks.
The situation I have is that with a VLAN and untagged ports, computer plugged directly into router, DHCP works fine - but when I use tagged ports, with a computer plugging into switch, which plugs into a router trunk port - I have management access by MAC address, but no DHCP (and I’ve made sure both trunk port and bridge are together marked as tagged).
Yet I still don’t have DHCP when trunking in through the (SwOS) switch - so am presently trying to figure out why. Here are the SwOS settings, for wrapping the computer connection into VLAN 10 (non-management), but which doesn’t receive DHCP (don’t have a plaintext way to export SwOS settings): https://i.imgur.com/DOvwEOM.jpeg https://i.imgur.com/vN6hrnV.jpeg https://i.imgur.com/8f8veeG.jpeg
(ignore ‘membership’ selections at end of last image - it is correct, just cut/pasted to reduce image size)