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

Re: Feedback regarding "Allow selecting boot eth dev by MAC address"



On 08/19/2015 05:26 PM, Daniel Baumann wrote:
> i'll have to think about how to handle these things
> and make it more generic (by also introducing alternative mechanisms to
> select the "right" network device, not just the mac).

i think we could follow the systemd namespace here.. some examples:

  * matching a netdev by name
    this would select the second onboard network device to be used:

    live-boot.netdev-match.name=eno2

  * matching a netdev by mac address
    this would select the network device that has a given mac address:

    live-boot.netdev-match.macaddress=aa:bb:cc:dd:ee:ff

  * matching a netdev by a certain ip address (or subnet)
    if there are multiple interfaces, and they have all dhcp or a
    preconfigured static address inside the image, then
    select the first one that is in the given subnet (or has a
    given address):

    live-boot.netdev-match.address=196.168.0.0/24

or something like that..

Regards,
Daniel

-- 
Address:        Daniel Baumann, Donnerbuehlweg 3, CH-3012 Bern
Email:          daniel.baumann@progress-technologies.net
Internet:       http://people.progress-technologies.net/~daniel.baumann/


Reply to: