Re: [CentOS] C7 and /etc/sysconfig/network

2015-08-26 Thread Chris Beattie
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.

-- 
-Chris
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] C7 and /etc/sysconfig/network

2015-08-26 Thread Robert Moskowitz



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.


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] C7 and /etc/sysconfig/network

2015-08-25 Thread Robert Moskowitz
Does Centos 7 use /etc/sysconfig/network or is this replaced by some 
systemctl set of commands.


For example I know to set my host name with:

hostnamectl set-hostname nevia.htt-consult.com

But I don't know if this is the same as

cat EOF/etc/sysconfig/network || exit 1
NETWORKING=yes
HOSTNAME=nevia.htt-consult.com
EOF


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos