Baby network person here.
If I want to have only 1 DHCP server, which router would be the best/how would it be set up? I believe I should be able to set any one router to work as DHCP and hand out IPs from different pools for any endpoints(except for routers which have static IPs).
So, questions: 1. If R1 becomes DHCP server, how does it determine which pool to use for PC2 & PC3? Even with DHCP relay setup, they'd be coming from the same interface(same line). Or does R2 & R3 replace the source address when relaying the DHCP broadcast packets so R1 can look at that and use it to determine which pool?
- Extension of Q1, how does DHCP server decide between multiple pools? If R2 was DHCP server, does it look at which interface it came from(which would cause problem for multiple VLANs coming via multiple hops to same interface) or does it look at source router IP address that started DHCP relay?
Kinda confused here, any help would be awesome!