[CentOS] C7 and /etc/sysconfig/network

Wed Aug 26 13:31:31 UTC 2015
Robert Moskowitz <rgm at htt-consult.com>


On 08/26/2015 09:14 AM, Chris Beattie wrote:
> On 8/25/2015 11:58 AM, Robert Moskowitz wrote:> Does Centos 7 use /etc/sysconfig/network or is this replaced by some
>> systemctl set of commands.
> I let Network Manager control the interfaces on my two or three C7 boxes.  I used nmtui to set the hostname, and MAC and IP addresses (the MAC addresses need to be updated if you clone a machine in VMware) interactively.
>
> That's not scriptable, but there is an nmcli command that may help.
>
I found that ifup complained without the network file.  So I added it, 
as I occationally need ifdown and ifup.

I use hostnamectl to set the host name, but that does not directly 
impact ifcfg-eth0 that I need as well with hostname?

I am interested in setting MAC addresses,  I edit 
/etc/udev/rules.d/70-persistent-net.rules

AND THEN still need to enter this altered MAC addr into ifcfg-eth0.