DHCP Server and Client on same interface
sumantgupta at gmail.com
Tue Aug 22 16:43:51 UTC 2017
Eugene can please comment in my below scenario,it would be really helpful.
i am writing an application on host machine that reads the data from
client which is connected serially via COM port to host machine where dhcp
server is running,so i read the dhcp solicit from the serial interface from
client and my application writes to the TAP0 interface where dhcp server
Now to write the data to TAP0 interface my application needs to populate
the source MAC ,destination MAC i .Destination MAC I can populate but how
to fill the Source MAC?.
Purpose is to provide Dhcp address to the serially connected Client?
On Tuesday, August 22, 2017, Eugene Grosbein <eugen at grosbein.net> wrote:
> 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
> 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.
> dhcp-users mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the dhcp-users