Posts

Showing posts from April, 2012

KVM-VIRTUAL-MACHINE

Install the RHEL FOR 64Bit. Create the Yum Server For RHEL 64Bit. [root@station27 ~]# yum install kvm* qemu* libvirt* python-virtinst* [root@station27 ~]# /etc/init.d/libvirtd start [root@station27 ~]# virsh -c qemu:///system list [root@station27 ~]# yum install bridge-utils* [root@station27 ~]# /etc/init.d/NetworkManager stop [root@station27 ~]# chkconfig NetworkManager off [root@station27 ~]# /etc/init.d/network restart [root@station27 ~]# cd /etc/sysconfig/network-scripts/ [root@station27 ~]# vim ifcfg-br0 ################################################################ DEVICE=br0 TYPE=Bridge BOOTPROTO=static GATEWAY=192.168.0.1 IPADDR=192.168.0.100 NETMASK=255.255.255.0 ONBOOT=yes ################################################################ [root@station27 ~]# vim ifcfg-eth0 ############################################################## DEVICE=eth0 HWADDR=00:1e:90:f3:f0:02 ONBOOT=yes TYPE=Ethernet IPV6INIT=no USERCTL=no BRIDGE=br0 ##############################################

Mysql Authentication in Squid

[root@station39 ~]# yum install *mysql* *squid* *gcc* -y ===> Download mysql_auth-0.8.tar.gz [root@station39 ~]# /etc/init.d/mysqld restart [root@station39 ~]# mysqladmin password "password" [root@station39 ~]# useradd proxy [root@station39 ~]# passwd proxy [root@station39 ~]# su - proxy [proxy@station39 ~]$ wget http://people.arxnet.hu/airween/mysql_auth/mysql_auth-0.8.tar.gz [proxy@station39 ~]$ tar xvzf mysql_auth-0.8.tar.gz [proxy@station39 ~]$ cd mysql_auth-0.8 [proxy@station39 mysql_auth-0.8]$ vim squid.sql ####################################################### CREATE DATABASE squid; use squid; DROP TABLE IF EXISTS `auth`; CREATE TABLE `auth` ( `username` varchar(25) default NULL, `password` varchar(25) default NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1; LOCK TABLES `auth` WRITE; INSERT INTO `auth` VALUES ('username','username '); UNLOCK TABLES; ####################################################### [proxy@station39 mysql_auth-0.8]$ exit [r

SNMP With CACTI

SNMP+CACTI =========================================== What is SNMP Simple Network Management Protocol ( SNMP ) is an "Internet-standard protocol for managing devices on IP networks.Devices that typically support SNMP include routers, switches, servers, workstations, printers, modem racks, and more. It is used mostly in network management systems to monitor network-attached devices. Required software(s) MySQL Server : Store cacti data. NET-SNMP server - SNMP (Simple Network Management Protocol) is a protocol used for network management. PHP with net-snmp module - Access SNMP data using PHP. Apache / lighttpd / ngnix webserver : Web server to display graphs created with PHP and RRDTOOL Install the software [root@localhost ~]# yum install mysql* php* http* -y Configure MySQL server [root@localhost ~]# /etc/init.d/mysqld restart [root@localhost ~]# mysqladmin password "redhat"

Vyatta Load-Balancing With Squid + Sarg

I am using 3 lan card :- eth0 – 192.168.1.100 ( Airtel Line ) eth1 – 192.168.2.100 ( BSNL Line ) eth2 – 192.168.0.100 ( Private Line ) Set ip to the your lan card of vyatta machine # configure # set interface ethernet eth0 address 192.168.1.100/24 # set interface ethernet eth1 address 192.168.2.100/24 # set interface ethernet eth2 address 192.168.0.100/24 # commit # save set the name-server and gateway of your vyatta machine # set system name-server 4.2.2.2] # set system gateway-address 192.168.1.1 # set system gateway-address 192.168.2.1 # commit # save Enabling the ssh and https service # set service ssh # set service https # commit >>>Load-balancing # set protocols static route 192.168.1.0/24 next-hop 192.168.1.1 # set protocols static route 192.168.2.0/24 next-hop 192.168.2.1 # commit # set load-balancing wan interface-health eth0 failure-count 2 # set load-balancing wan interface-health eth0 nexthop 192.168.1.1 # set load-balancing wan interface-healt