DHCP Server and Client on same interface

Sumant Gupta sumantgupta at gmail.com
Tue Aug 22 16:19:24 UTC 2017

Actually i am writing an application that reads the data from client which
is connected serially to linux machine where dhcp server is running,so i
read the dhcp solicit from the serial interface and write to the TAP0
interface where dhcp server is running.
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?
Am i thinking the right way..

Hoping that you got my view

On Tuesday, August 22, 2017, Patrick Trapp <ptrapp at nex-tech.com> wrote:

> It sounds like you want the DHCP server to be getting its address from
> itself - if that's correct, I have to ask what you are hoping to
> accomplish, because I'm not creative enough to understand why that would be
> desirable.
> I believe Eugene is assuming that you want the server to obtain an address
> from a different DHCP server on one interface while providing DHCP service
> on a second interface.
> On Aug 22, 2017, at 10:53 AM, Sumant Gupta <sumantgupta at gmail.com
> <javascript:_e(%7B%7D,'cvml','sumantgupta at gmail.com');>> wrote:
> Thanks Eugene for quick response.
> 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?
> Also do u have information that does dhcp server validate that source MAC
> address of in coming dhcp solicit packet?
> -sumant
> On Tuesday, August 22, 2017, Eugene Grosbein <eugen at grosbein.net
> <javascript:_e(%7B%7D,'cvml','eugen at grosbein.net');>> wrote:
>> 22.08.2017 22:26, Sumant Gupta wrote:
>> > Hi,
>> > My machine has 2 interfaces tap0 and eth0.
>> > Is it possible to run the dhcp server on tap0 interface and client on
>> eth0.
>> Of course it is possible, why not? You will need another DHCP server
>> reachable via eth0.
>> _______________________________________________
>> dhcp-users mailing list
>> dhcp-users at lists.isc.org
>> https://lists.isc.org/mailman/listinfo/dhcp-users
> _______________________________________________
> dhcp-users mailing list
> dhcp-users at lists.isc.org
> <javascript:_e(%7B%7D,'cvml','dhcp-users at lists.isc.org');>
> https://lists.isc.org/mailman/listinfo/dhcp-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20170822/427e7126/attachment.html>

More information about the dhcp-users mailing list