[systemd-devel] networkd config for dummy0 interface
Tom Gundersen
teg at jklm.no
Tue Jul 1 04:55:19 PDT 2014
So I had another look at this:
On Tue, Jun 24, 2014 at 12:14 PM, Vasiliy Tolstov <v.tolstov at selfip.ru> wrote:
> Hi. I have very strange task:
> 1) Nedd modprobe dummy
Don't (will be autoloaded in 2)).
> 2) Assign specific mac address to it
Do this when creating the dummy device:
# ip link add my-dummy address 6e:f0:0c:93:cf:e3 type dummy
(I'd be happy to take a patch to add dummy support to networkd so that
we can create this from a .netdev file).
> 3) Bring up it
> 4) Assign specific address to it
As mentioned earlier, just use a .network file:
--8<-------------
[Match]
Name=my-dummy
[Network]
Address=192.168.0.1/24
--8<-------------
HTH,
Tom
More information about the systemd-devel
mailing list