I've got a situation where i have two subnets. (Say subnet 1 and subnet 2).
`
My DHCP Client is configured inside subnet 1 (net id : network id 10.1.1.0)
My DHCP Server is configured inside subnet 2 (net id : newtork id 10.1.2.0)
Both has a subnet mask of 255.255.255.0
My Router is acting as the DHCP relay agent
`
Now, If my DHCP server has to lease out an IP address from a pool.
On the basis of which gateway IP (subnet 1 or 2) will it lease out an IP address ?
`
Best Answer
http://en.wikipedia.org/wiki/Dynamic_Host_Configuration_Protocol#DHCP_relaying
(Meaning: it adds the gateway interface address facing the client, obviously, otherwise it couldn't work.)