How to DHCP request a second, different, IP for the same physical interface

dhclientdhcpgentooiproute2

(Similar to this question, but with two different DHCP-assigned IPs)

Is there any way to let dhclient or dhcpcd request two different IPs for one physical interface, e.g. via virtual interfaces eth0 and eth0:1? Maybe by letting eth0:1 have a different MAC? Or by creating a virtual eth1 bridged to eth0? Or can I use ip addr add directly somehow?

Best Answer

If eth0:1 has a different MAC, dhcpd should provide a second address automatically, unless it is on a different VLAN.

Related Topic