Not logged in
Log in now
Create an account
Subscribe to LWN
LWN.net Weekly Edition for May 23, 2013
An "enum" for Python 3
An unexpected perf feature
LWN.net Weekly Edition for May 16, 2013
A look at the PyPy 2.0 release
Udev and systemd to merge
Posted Apr 4, 2012 13:46 UTC (Wed) by drag (subscriber, #31333)
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..
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.
Posted Apr 4, 2012 15:04 UTC (Wed) by mathstuf (subscriber, #69389)
Thanks for that link. It really needs to be mentioned in the nmcli man pages.
Posted Apr 4, 2012 17:59 UTC (Wed) by mgedmin (subscriber, #34497)
I can barely manage to figure out how to list available networks ('nmcli dev wifi', really?).
Posted Apr 4, 2012 18:43 UTC (Wed) by tzafrir (subscriber, #11501)
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).
Posted Apr 4, 2012 18:52 UTC (Wed) by drag (subscriber, #31333)
Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds