[systemd-devel] [RFC][PATCH] networkd: add a basic network daemon
"Jóhann B. Guðmundsson"
johannbg at gmail.com
Wed Nov 6 07:50:02 PST 2013
On 11/06/2013 12:33 AM, Tom Gundersen wrote:
> [Match]
> MACAddress=
> Path=
> Driver=
> Type=
> Name=
>
> [Network]
> Description=
>
> [IP]
> Gateway=192.168.1.1
> Address=label at 192.168.1.23/24
> Address=fe80::9aee:94ff:fe3f:c618/64
Hmm..
Cant we try to follow the same construct as the other units?
Something like this perhaps ( I think these for case cover more less the
most common parts )...
The "default" device present spawn *when link is detected* unit "Type=dhcp"
network@<network device>.network
[Unit]
Description=Network device %I
[Service]
Type=|dhcp
Rest provided by dhcp
|The administrator configurable unit "Type=Static"
em1.network
[Unit]
Description=Network device em1
[Service]
Type=static
Address=192.168.0.1/24
[Install]
WantedBy=multi-user.target
The administrator configurable unit "Type=bridge"
bridge0.network
[Unit]
Description=Network device bridge 0
Master=em1
Slave=em2
[Service]
Type=bridge
[Install]
WantedBy=multi-user.target
The administrator configurable unit "Type=bridge"
bond0.network
[Unit]
Description=Network device bonding 0
Master=bond0
Slave=em1,em2
[Service]
Type=bonding
Address=192.168.0.1/24
[Install]
WantedBy=multi-user.target
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20131106/361b18a6/attachment.html>
More information about the systemd-devel
mailing list