DHCP Server and Client on same interface

Eugene Grosbein eugen at grosbein.net
Tue Aug 22 16:37:06 UTC 2017

22.08.2017 22:51, Sumant Gupta wrote:
> I didnt understand the below:
> You will need another DHCP server reachable via eth0.
> Also i have another query that is it possible to run dhcp server and dhcp client on same machine on same interface tap0?

If you want same machine to be dhcp server for itself and client for this server,
this depends on your operating system and not on DHCP software.

Some operating systems allow you to virtualize network stack instances,
so you could have two distinct network stacks within single kernel (FreeBSD's VNETs).

Or you could use full-blown Virtual Machine that has its own network stack.

You generally cannot run both of DHCP client and server within single network stack
using same interface.

> Also do u have information that does dhcp server validate that source MAC address of in coming dhcp solicit packet?

This depends of DHCP server software and its version too. You did not specify it.

More information about the dhcp-users mailing list