Various CentOS 7 settings
From D3xt3r01.tk
WHAT
CentOS 7 has a new way of doing stuff... Here's what I got to so far
HOW
By default the minimal net install doesn't come with ifconfig so you can use this to set up your networking.
ip addr list # this will get you a list of devices and settings
ip addr add IP/CIDR dev <dev> # replace dev with your interface name you got from above
ip link set dev <dev> up # same as ifconfig <dev> up .. or you can do ifup <dev> if you set up your /etc/sysconfig/network-scripts/ifcfg-<dev> right
ip route add default via <gateway> # replace gateway with your gateway ip
I don't use/need {avahi,firewalld,NetworkManager} in my minimal setup on a dedicated server.
yum remove avahi firewalld NetworkManager
You can also just disable NetworkManager for one interface by setting this in /etc/sysconfig/network-scripts/ifcfg-<dev>
NM_CONTROLLED="no"