CENTOS 6 Minimal does not have the Network interfaces up by default

So test drove CentOS  6 Minimum install .. Only real hiccup till now is : TUV ( the upstream vendor) aka RHEL decided to disable the network interfaces by default. WTF to that. A glance at the FAQ  will show the solution : Here’s my version for multiple interfaces.   # cd /etc/sysconfig/network-scripts/   # sed…

Installing SNMP on Centos 6.x

Installing SNMP daemon and tools: As root yum -y install net-snmp.i686 yum -y install net-snmp-utils Once these are installed start the snmp daemon: /etc/init.d/snmpd start chkconfig snmpd on   This is just the basic install but testing it : snmpwalk -v 1 -c public -O e 127.0.0.1 For production servers it is advisable to at least…

Setting hostname

#vim /etc/sysconfig/network Use something like HOSTNAME=testarossa.maranello.local to overwrite the default name and domain of the server. e.g. NETWORKING=yes HOSTNAME=testarossa.maranello.local To avoid rebooting issue the following : hostname  testarossa.maranello.local That will set it for the current  session.      

Monitoring connections

To monitor TCP and UDP connections the following command is very useful: netstat -t -u to have a continuous update use the watch command: watch netstat -t -u There is a much stronger tool for real time analysis called iptraf. It is quite self explanatory : at command line run iptraf This tool has many functions…

Setup default gateway with route command Linux

Display default route The following three commands display the current routing table: # route Output: Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.1.0 * 255.255.255.0 U 0 0 0 ra0 default dsl-router 0.0.0.0 UG 0 0 0 ra0 # /sbin/route Output: Kernel IP routing table Destination Gateway Genmask Flags Metric…

Slash notation lookup table

Total-addresses: how many unique addresses can be represented. To determine how many are available to be assigned to devices you need to subtract 2 from the provided number to allow for the ‘network’ and ‘broadcast’ address. A further one of these may need to be assigned to a router. Net bits Subnet mask Total-addresses /20 255.255.240.0 4096 /21…