chiark / gitweb /
udev: link-config - add mac address policy
authorTom Gundersen <teg@jklm.no>
Sun, 27 Oct 2013 23:19:59 +0000 (00:19 +0100)
committerTom Gundersen <teg@jklm.no>
Mon, 28 Oct 2013 17:10:23 +0000 (18:10 +0100)
This introduces a new key MACAddressPolicy.

The possible policies are 'persistent' and 'random'.

'persistent' will do nothing if the current address is the hardware address,
but if the hardware does not have an address (or another address is set for
whatever reason), we will generate an address which will be random, but
persistent between boots (based on machineid and persistent netif name).

'random' will do nothing if the kernel already set a random address, otherwise
it will generate a random one and use that instead.

This patch sets MACAddressPolicy=persistent in the default .link file.


No differences found