Some personnel notes /references for CENTOS , as my future R&D will be done mainly in centos dueto its preloaded options for ease of use.
1- Configuring Static IP address in CENTOS [6.x]
If you want to configure static IP address in CENTOS, then edit following file
vi /etc/sysconfig/network-scripts/ifcfg-eth0
Use following as sample
DEVICE=eth0 HWADDR=00:0C:29:73:0A:5A TYPE=Ethernet UUID=d34531a1-3c76-4527-8e50-448857568abc ONBOOT=yes NM_CONTROLLED=no BOOTPROTO=static IPADDR=192.168.10.2 # IP Address you want to fix NETMAST=255.255.255.0 # Netmask as per network GATEWAY=192.168.10.1 # Your Router/DLS Gateway DNS1=8.8.8.8 # Your ISP DNS or standard Google dns
Note: set following for sure
NM_CONTROLLED=no
BOOTPROTO=static
ONBOOT=yes
Save & Exit, and restart the network service or interface to take effect
service network restart
OR
ifdown eth0
ifup eth0
Issue IFCONFIG command to verify the result.
centos7 is a mess :( so better to stick with 6
2- Disabling default firewall SELINUX
To disable builtin firewall in centos, edit following
vi /etc/selinux/config
and change the
SELINUX=enforcing
to
SELINUX=disabled
Save & Exit.
Or use the SED shortcut ;) # Zaib
sed -i "s/=enforcing/=disabled/g" /etc/selinux/config
3- Adding Necessary Tools
Some must-have tools
yum install -y nano wget curl net-tools lsof
4- SERVICES Related
service --status-all
To disable service on startup , use
chkconfig httpd off
To be continued …
#z@iB
Filed under: Linux Related
![](http://pixel.wp.com/b.gif?host=aacable.wordpress.com&blog=10450829&post=5335&subd=aacable&ref=&feed=1)