Various CentOS 7 settings

From D3xt3r01.tk
Revision as of 22:05, 11 October 2014 by Admin (talk | contribs) (Created page with "===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 t...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

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"

SOURCES

CentOS7 FAQ