Assigning dynamic IP addresses on aliases using macvlan?
This is new stuff for me, so I am learning and googling a lot.
My problem is, I want to be able to have interfaces named:
eth0:0
eth0:1
etc...
But I want them each to have a dynamic IP address. I know this works for static, and I know interface aliases can't use dynamic addresses because they share the same MAC address.
But I wondered if there is a way to trick the system using macvlan or some other way?
The reason I want to do this is because I have an application that looks for the ethernet interfaces eth0, eth0:1, eth0:2. I am trying to see if I can avoid using static IPs for these interfaces so there is no potential conflict with another system with the same IP. I have alternative solutions but I just want to know if I can hack this and make it work.
I tried to create macvlans, then ran dhclient on them so they each have their own IP, and then tried to rename them to the eth0:0, eth0:1 etc. But I'm really just hacking at this because I don't totally know what I'm doing yet.
Thanks for trying to help.
Last edited by magpiesally; 07-28-2013 at 09:58 PM.
|