DHCP for linux sub-interfaces

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello *,

I am trying to support DHCP for ethernet sub-interfaces(eth0:0,
eth0:1...) in Linux 2.4.x

The idea that I have in mind is to modify the DHCP client code to
generate pseudo MAC addresses (or client id - which is a 32 bit field
in the DHCP header) for each sub-interface.
The issue of ensuring that each client machine uses separate pseudo
address needs to be tackled (but I am assuming that with few machines
and a good random number, this is not a problem).

And when the DHCP server replies with an offer, the kernel in the
client has to map the reply to the appropriate sub-interface...

Any other ideas will be appreciated. Also, which particular files in
the kernel source do I need to fiddle with to do the mapping I
mentioned above ?

Thanks in adv,
Subhash

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux