Corosyn for DHCP failover
Glenn Satchell
glenn.satchell at uniq.com.au
Tue Jun 7 13:12:58 UTC 2011
On 06/07/11 21:47, neeraj jain wrote:
> Hi all,
> I am tring to use the corosync for the dhcp failover instead of DHCP
> failover configuration. I am able to run the dhcp with the corosync
> successfully and tested the failover also. Corosync assign the VIP and
> switch in case of failover. I am also using rsync to synchronize the
> configurations and lease file.
> Only problem is that when my relay agent send the DHCP discover request
> at VIP, my dhcp server reply with offer using the physical ip of the
> machine.
> What I need is the discovery and offer should happen at the same VIP. I
> am not sure why DHCP is using physical ip to reply for the request.
> Even I am not sure if this the correct forum to raise this question but
> help me in case someone has faced the same problem.
> Thanks in advance,
> Neeraj jain
>
>
Hi Neeraj
Depending on your operating system, the usual behaviour for any socket
is to use the first IP assigned on that interface as the source address.
You can override this to some extent using the 'server-identifier'
setting in dhcpd.conf. See the man page for full details.
Note that this doesn't necessarily change the source IP address of
packets from the server, but it sets an internal dhcp option so that the
client will use this address when contacting the server.
--
regards,
-glenn
More information about the dhcp-users
mailing list