Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 492394 - sys-apps/systemd Needs to provide service unit for static IP addressing
Summary: sys-apps/systemd Needs to provide service unit for static IP addressing
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Gentoo systemd Team
Depends on:
Reported: 2013-11-23 21:57 UTC by Reuben Martin
Modified: 2014-08-21 00:58 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Reuben Martin 2013-11-23 21:57:55 UTC
systemd currently does not provide an IP addressing (that I am aware of) and relies on service units provided by packages like networkmanager, netctl, dhcp client or something similar to manage network connections.

There are many scenarios where services like this are overkill. I would like to propose that it would be prudent to provide a service file with the systemd package that would allow setting a static IP. It would depend on sys-apps/iproute2

I've been using the following based on quick googling:

Description=Static Network Addressing

ExecStart=/bin/ip link set dev ${interface} up
ExecStart=/bin/ip addr add ${address}/${netmask} broadcast ${broadcast} dev ${interface}
ExecStart=/bin/ip route add default via ${gateway} dev ${interface}
ExecStop=/bin/ip addr flush dev ${interface}        
ExecStop=/bin/ip link set dev ${interface} down



Reproducible: Always
Comment 1 Mike Gilbert gentoo-dev 2013-11-23 22:34:37 UTC
I don't think it makes any sense for us to invent yet another way to configure networking with systemd.

Also, you think netctl is overkill, I think you haven't even looked at it.
Comment 2 Franz Trischberger 2013-11-26 18:27:37 UTC
Seems like >systemd-208 will get a "networkd". Reading the commit message of the initial commit [*] this might be what you are looking for...

Comment 3 Duncan 2014-08-21 00:56:45 UTC
(In reply to Franz Fellner from comment #2)
> Seems like >systemd-208 will get a "networkd".

With nothing below systemd-212 in-tree any longer, this bug should most likely be resolved/obsolete.
Comment 4 Mike Gilbert gentoo-dev 2014-08-21 00:58:49 UTC