Re: F21 - Refreshing DHCP lease on ethernet

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 23.01.2015 05:37, Robert Moskowitz wrote:
...
> 
> Using NetworkManager.
> 

I'll give you an example to start with.

$ man 5 NetworkManager.conf

PLUGINS

ifcfg-rh
    This plugin is used on the Fedora and Red Hat Enterprise Linux distributions to read and write configuration from the standard
    /etc/sysconfig/network-scripts/ifcfg-* files. It currently supports reading Ethernet, Wi-Fi, InfiniBand, VLAN, Bond, Bridge, and
    Team connections.

'ifcfg-rh' plugin is used as a default on Fedora, but in fact it is unnecessary impact of the Big Brother RHEL, and actually serves as a backward compatibility - but on Fedora we do not need it, purely by the fact that there is a native 'keyfile' plugin which is moreover the only complete in terms of functionality.


keyfile
    The keyfile plugin is the generic plugin that supports all the connection types and capabilities that NetworkManager has. It
    writes files out in an .ini-style format in /etc/NetworkManager/system-connections.

    The stored connection file may contain passwords and private keys, so it will be made readable only to root, and the plugin will
    ignore files that are readable or writeable by any user or group other than root.

    This plugin is always active, and will automatically be used to store any connections that aren't supported by any other active
    plugin.


So in order to use only, and only this plugin:

$ cat /etc/NetworkManager/conf.d/keyfile-plugin.conf 
[main]
plugins=keyfile

[keyfile]
...


$ file /etc/NetworkManager/NetworkManager.conf 
/etc/NetworkManager/NetworkManager.conf: symbolic link to `/etc/NetworkManager/conf.d/keyfile-plugin.conf'

After
# systemctl restart NetworkManager.service

profiles of all connections should belong here:
/etc/NetworkManager/system-connections/

If necessary delete previously created with 'ifcfg-rh' plugin and re-create now with 'keyfile' plugin enabled.
Whatever you need before, and it was in /etc/sysconfig/, now is only for the purpose of a museum.

If you notice functional deficiencies, do not hesitate to subscribe to:
NetworkManager discussions
https://mail.gnome.org/mailman/listinfo/networkmanager-list
and talk to people there.
I recommend.

Corinna, this is for you too.


Welcome to 2015.


poma


-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org




[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux