[CentOS] C7 systemd and network configuration

Dennis Jacobfeuerborn dennisml at conversis.de
Tue Apr 21 18:35:10 UTC 2015


On 21.04.2015 16:46, Johnny Hughes wrote:
> On 04/21/2015 08:54 AM, Jonathan Billings wrote:
>> On Tue, Apr 21, 2015 at 03:46:52PM +0200, Dennis Jacobfeuerborn wrote:
>>> Networking isn't really controlled by systemd but by NetworkManager. I
>>> usually just yum remove NetworkManager* and then everything works just
>>> as it did in CentOS 6.
>>
>> Note:  NetworkManager is in CentOS6 too, and is part of the default
>> workstation install.  The NM in CentOS7 is a bit more polished than
>> the NM in CentOS6, but it is configured in the same way, using files
>> in /etc/sysconfig/network-scripts/ (using the ifcfg-rh NetworkManager
>> plugin).  In both cases, you can remove NM and use the 'network'
>> service instead.
>>
> 
> You can disable NetworkManager for now in CentOS-7 and use the network
> service .. but in reality I am not sure how long that is going to be
> 100% true.  In fact, things like dnsmsq and even libvirt/qemu are
> becoming much harder to configure to work via the network service and
> are pre-configured to work with NetworkManager. (Don't yell at me, not
> my decision :D)
> 
> I have decided it is likely better to bite the bullet and learn how to
> use and configure Network Manager if you are going to do anything other
> than very simple things with your network .. at least on CentOS-7 or
> higher (ie, Fedora > 18, etc.).
> 
> Again, one CAN still use the network service .. but most documentation
> available now assumes instead that Network Manager is being used.

systemd-networkd is becoming increasingly capable and popular though so
NetworkManager might not actually stay around for too long.

Regards,
  Dennis




More information about the CentOS mailing list