Is it possible to assign 2 ip addresses from different subnet to an dhcp request?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Is it possible to assign 2 ip addresses from different subnet to an dhcp request?

Marc Roos


Is it possible to assign 2 ip addresses from different subnets to a dhcp
request? So the receiving client should configure eth0 and eth0:1.



_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users
Reply | Threaded
Open this post in threaded view
|

Re: Is it possible to assign 2 ip addresses from different subnet to an dhcp request?

Simon Hobson
Marc Roos <[hidden email]> wrote:

> Is it possible to assign 2 ip addresses from different subnets to a dhcp
> request? So the receiving client should configure eth0 and eth0:1.

Yes, you just need to arrange for a client to make separate requests using different Client-IDs

BTW, using eth0:1 for additional addresses is rather outdated - and IME of little utility. All I've ever done for years is just add the addresses to the base interface, as in :
ip addr add a.b.c.d/nn dev eth0

Also note that you cannot bind a DHCP client to such an interface either. Since it has to handle broadcast messages, the system is unable to differentiate between broadcast messages to be handled by eth0 and broadcast messages to be handled by eth0:1.

_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users