Archive

Archive for the ‘Networking’ Category

A Good Centos System Administration Book

February 3rd, 2009 No comments

I have been a big fan of the unleashed guides every since I purchased Mac OS X Tiger Unleashed. I loved this book as it was both great for beginners but had some reallly good advanced sections that allowed me to learn some great stuff on mac os x.

So, naturally, when I was looking for a guide to Centos, I purchased another unleashed book. As you probably know, Red Hat Enterprise Linux (RHEL) and Centos are basically the same product, minus the proprietary Redhat pieces and non GPL pieces that are not legally available for free. CentOS takes the GPL portions and repackages them as CentOS. This logically led me to Red Hat Enterprise Linux 5 Administration Unleashed. I found this to be a decent book that is great starting point for using Centos, though not as advanced as I would have liked.





Anyone have any suggestions for an advanced system admin book for Centos?

How To Configure a Network Card by Command Line on Centos 5.2

December 6th, 2008 No comments

Use the command line gui tool

system-config-network-tui &

or

Go to /etc/sysconfig/network-scripts/

cd /etc/sysconfig/network-scripts/

edit ifcfg-eth0 or ifcfg-eth1 etc..

/etc/sysconfig/network-scripts/ifcfg-eth0

Add the following text

DEVICE=eth0
BOOTPROTO=static
DHCPCLASS=
HWADDR=00:30:48:56:A6:2E
IPADDR=10.10.29.66
NETMASK=255.255.255.192
ONBOOT=yes

Save file

Define the gateway and hostname in /etc/sysconfig/network file.

Restart networking

/etc/init.d/network restart

Setup the DNS servers in /etc/resolv.conf

Make sure it all works 

ping google.com

Categories: Centos 5.2, Networking Tags: ,