LWN.net Logo

Udev and systemd to merge

Udev and systemd to merge

Posted Apr 4, 2012 10:52 UTC (Wed) by lindi (subscriber, #53135)
In reply to: Udev and systemd to merge by cortana
Parent article: Udev and systemd to merge

My largest problem with ifupdown is that it does not understand anything about multiple routing tables or firewalls. We just end up doing all network setup in ugly "post-up" calls.


(Log in to post comments)

Udev and systemd to merge

Posted Apr 4, 2012 13:46 UTC (Wed) by drag (subscriber, #31333) [Link]

I like network manager, personally, but I don't think it's going to offer much of a improvement over 'post-up' calls.

Generally what you'd want to do for network-manager is to put your scripts into /etc/NetworkManager/dispatcher.d in the typical "if [ "$2" = "up" ]; then" style format.

To get the best benefits out of NetworkManager you want to disable all the 'legacy' configuration plugins and use keyfile. That way you can edit all your network configurations using a 'ini' file format in /etc/NetworkManager/system-connections/

The advantage to this is that you can support a much more diverse amount of network connection types with better granularity then you can through traditional distro-specific configs.

The spec for the settings can be found..
http://projects.gnome.org/NetworkManager/developers/api/0...
http://live.gnome.org/NetworkManager

For managing it through the command line use 'nmcli'.

I wish Gnome would provide a better documentation and examples for people using network manager on a server, but oh well.

Udev and systemd to merge

Posted Apr 4, 2012 15:04 UTC (Wed) by mathstuf (subscriber, #69389) [Link]

> The spec for the settings can be found..
> http://projects.gnome.org/NetworkManager/developers/api/0...

Thanks for that link. It really needs to be mentioned in the nmcli man pages.

Udev and systemd to merge

Posted Apr 4, 2012 17:59 UTC (Wed) by mgedmin (subscriber, #34497) [Link]

I've attempted to use nmcli to connect to a wireless network (WPA2 encryption) in the past and failed miserably. As far as I can tell, this is simply not supported (you can only connect to a connection you've configured before).

I can barely manage to figure out how to list available networks ('nmcli dev wifi', really?).

Udev and systemd to merge

Posted Apr 4, 2012 18:43 UTC (Wed) by tzafrir (subscriber, #11501) [Link]

That said, the full reference file is confusing without an example.

http://bugs.debian.org/637769

Last time I asked, I was told adding such a thing was not a good idea (which is why the bug report is not in the NM bugzilla).

Udev and systemd to merge

Posted Apr 4, 2012 18:52 UTC (Wed) by drag (subscriber, #31333) [Link]

It certainly seems like a good candidate for /usr/share/doc/*/examples item.

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds