Ciscofriend's Blog

December 29, 2011

Difference between Protocol number and port number

Blog location changed

press here to see the topic

December 21, 2011

Changed blog

Filed under: Others — ciscofriend @ 10:20 pm

Changed blog to ciscofriend.blogspot.com

Please visit ciscofriend.blogspot.com for new posts/old posts

December 18, 2011

Installing Active directory in Windows Server 2008

changed location of blog.
Please click here to see the post

 

December 8, 2011

Upgrading Windows Server 2003 to Windows Server 2008

changed location of blog

Please click here to see the blog

December 7, 2011

Configuring ASA to allow ping

Just add ICMP to default inspection class:firewall

ASA(config)#policy-map global_policy

ASA(config-pmap)#class inspection_default

ASA(config-pmap-c)#inspect icmp

December 6, 2011

HTTP installation of RHEL6/CentOS/SL-6

On Server

  • Install apache server (HTTP server) using yum apache webserver5

#yum install httpd

Note: if you don’t know how to setup yum you can see this post

  • Mount the DVD (which is also specified in the above post) and copy the content to /var/www/html/cdrom

For example, if DVD is mounted to /cdrom directory, then

#cp –vrf /cdrom /var/www/html/

Note: alternatively, we can mount the DVD directly to the web accessible, /var/www/html/ path

  • Now, start the http service

#service httpd start

  • Check the setting using the web browser with server’s IP. If server IP is 192.168.1.10 then use http://192.168.1.10/cdrom 

Note: if firewall is on, turn off firewall or add exception to port 80

 

On the installation system

  • Download boot.iso from redhat.

Note: boot.iso not ship with DVD now. So we need to download it from redhat site. Alternatively we can use CentOS netinstall.iso, both are same

  • CentOS 6 netinstall.iso is available here:  redhat logo

http://mirrors.hns.net.in/centos/6.0/isos/x86_64/CentOS-6.0-x86_64-netinstall.iso

http://mirrors.hns.net.in/centos/6.0/isos/i386/CentOS-6.0-i386-netinstall.iso

  • Write the the image to a CD and put it in the CD-ROM drive. Alternatively, we can use USB key. It is explained here.
  • Reboot the system and supply the following boot string at the end of current line without quotes by pressing tab

‘linux repo=http://192.168.1.10/cdrom ip=192.168.1.20 netmask=255.255.255.0 gateway=192.168.1.1 dns=192.168.1.1′

Note: if more than one DNS server is available specify it using comma. DNS server address is optional. Here IP is the address of the current system

December 5, 2011

Making CD/DVD as yum repository

Changed location of blog

Please press here to see the post

 

December 3, 2011

November 29, 2011

Monitoring Internet Connection using IP SLA

Our company may have two connection to the internet through 2 ISPs. If we want to use one connection as primary and other as backup, we can use IP SLA to monitor the link. It detects the link failure even if the connection between modem and ISP fails. So it helps to switch over to the backup path automatically as soon as the primary path is down.

ip sla router

Step1 : Configuring SLA process

R1(config)#ip sla 1

R1(config-ip-sla)#icmp-echo 8.8.8.8

R1(config-ip-sla-echo)#frequency 5 (Means, every 5 second send icmp-echo packet to the ip 8.8.8.8. This can by any reliable IP on internet)

R1(config-ip-sla-echo)#exit

Step2: Scheduling SLA process

R1(config)#ip sla schedule 1 start-time now life forever (Means, start the sla process now and don’t end)

Note: we can check the process using the following command

R1#show ip sla statistics

Step3: Create a track object to track the change. It is used to inform the router about the current condition

R1(config)#track 10 rtr 1 reachability (this will inform the router if any reachability problem occurs. rtr is the old name of IP SLA)

R1(config-track)#exit

Step4: Create two static route two both ISPs with some tweaks

R1(config)#ip route 0.0.0.0 0.0.0.0 fastEthernet 0/0 track 10

R1(config)#ip route 0.0.0.0 0.0.0.0 fastEthernet 0/1 2

Now router will select ISP1 as primary path because of administrative distance is lower. If the link to ISP1 is down, then router automatically switch the connection to ISP2

November 28, 2011

ASA static/Default Routing configuration

ASA STATIC DEFAULT ROUTING

Syntax of static route configuration is :

Route <interface-name> <ip address> <netmask> <gateway ip> [distance]

Objects:

  • Configure static routing to inside interface

ASA1(config)#route inside 172.30.10.0 255.255.255.0 172.30.30.2 1
ASA1(config)#route inside 172.30.20.0 255.255.255.0 172.30.30.2 1

  • Configure default route to internet

ASA1(config)#route outside 0.0.0.0 0.0.0.0 192.168.1.2

Note: we can use the command “route outside 0 0 192.168.1.2” for default route, both are same.

Older Posts »

Blog at WordPress.com.

Create your own website, free on WordPress.com.Create your own website.
Start free