Mihamina Rakotomandimby
2015-Apr-21 12:10 UTC
[CentOS] C7 systemd and network configuration
Hi all, I used to manage network through /etc/sysconfig/network-scripts/ifcfg-* Most of my use case are vlans (ie: eth0.1) an aliases (ie: eth1:3) My context in headless VMs (no DE, no Xorg, no GUI) With CentOS7 and systemd: is it still managed with /etc/sysconfig/network-scripts/ifcfg-* ? For the mount component, I found that systemd kind of "sources" /etc/fstab and converts it to something for it (so, no worry about fstab), but how about networking? Thanks.
On 21.04.2015 14:10, Mihamina Rakotomandimby wrote:> Hi all, > > I used to manage network through /etc/sysconfig/network-scripts/ifcfg-* > Most of my use case are vlans (ie: eth0.1) an aliases (ie: eth1:3) > My context in headless VMs (no DE, no Xorg, no GUI) > > With CentOS7 and systemd: is it still managed with > /etc/sysconfig/network-scripts/ifcfg-* ? > > For the mount component, I found that systemd kind of "sources" > /etc/fstab and converts it to something for it (so, no worry about > fstab), but how about networking?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. Regards, Dennis
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. -- Jonathan Billings <billings at negate.org>