0

(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?

2 Answers2

0

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

NickW
  • 10,289
0

No. The virtual interface is still the same underlying physical interface, and the MAC address is part of the physical interface, not the virtual interface.

You need to make one of the addresses static.

fukawi2
  • 5,494