Archive for July, 2010

Running-projects

Thursday, July 15th, 2010

Objective : Write Monitoring script for bellow network diagram.

Script include : (a) Monitor Mysql replication
(b) Monitor Dns Servers
(i) Change A records for any Apache server failure.
(c) Monitor Apache servers
(d) Monitor Red hat clusters
(e) Monitor DRBD replication

How to configure Cisco router to use Microsoft DHCP server Or Active Directory Server between vlans

Friday, July 9th, 2010

Note :This is a router on a stick method (cisco 1941 router)

(a) Find out router interfaces

EVROUTER#show ip interface brief
Interface                  IP-Address      OK? Method Status                Prot
ocol
GigabitEthernet0/0         unassigned      YES manual up                    up
 
GigabitEthernet0/1         88.88.88.81    YES DHCP   up                    up
 
NVI0                       unassigned      NO  unset  up                    up

(b) Create Sub interface related to individuals vlan

For vlan1 
configure terminal
interface GigabitEthernet0/0.1
 encapsulation dot1Q 1
 ip address 192.168.1.1 255.255.255.0
 
For Vlan 10
configure terminal
interface GigabitEthernet0/0.10
 encapsulation dot1Q 10
 ip address 192.168.10.1 255.255.255.0
 
For Vlan 20
 
configure terminal
interface GigabitEthernet0/0.20
 encapsulation dot1Q 20
 ip address 192.168.20.1 255.255.255.0

output should be :

EVROUTER#show ip interface brief
Interface                  IP-Address      OK? Method Status                Prot
ocol
GigabitEthernet0/0         unassigned      YES manual up                    up
 
GigabitEthernet0/0.1       192.168.1.1        YES manual up                    up
 
GigabitEthernet0/0.10      192.168.10.1    YES manual up                    up
 
GigabitEthernet0/0.20      192.168.20.1    YES manual up                    up
 
GigabitEthernet0/1         88.88.88.81    YES DHCP   up                    up
 
NVI0                       unassigned      NO  unset  up                    up
 
EVROUTER#

(c)Setup the relay agent for individuals subnet

For vlan 1 
EVROUTER#configure terminal
EVROUTER(config)#interface gigabitEthernet 0/0.1
EVROUTER(config-subif)#ip helper-address 192.168.1.7
 
For Vlan10:
EVROUTER#configure terminal
EVROUTER(config)#interface gigabitEthernet 0/0.10
EVROUTER(config-subif)#ip helper-address 192.168.1.7
 
For vlan20
EVROUTER#configure terminal
EVROUTER(config)#interface gigabitEthernet 0/0.20
EVROUTER(config-subif)#ip helper-address 192.168.1.7

now all your vlans will be able to get Ip from each individuals subnet from DHCP server and they would be able to use active directory to login each computer with their user name and password.

(d) Allow each vlans to use internat
(1) label each interface and sub interface for NAT

     configure terminal	 
     interface gigabitEthernet 0/0.1 
     ip nat inside
     exit
      interface gigabitEthernet 0/0.10 
     ip nat inside
    exit
    interface gigabitEthernet 0/0.20 
     ip nat inside
    exit
     interface gigabitEthernet 0/1 
     ip nat outside
    exit

(2)Create Access list to allow this vlans to use NAT

     configure terminal
     ip access-list standard NAT_ADDRESS 
     permit 192.168.0.0 0.0.255.255

(3)Enable nat overload

   ip nat inside source list NAT_ADDRESS gigabitEthernet 0/1  overload

note : At this point all vlans will be able to get to the internet .

Cisco:How to solve line protocol down problem for serial interface in packet tracer

Saturday, July 3rd, 2010

I am using cisco 2811 router with 1 WIC-1T card for serial interface

Both router is connected by serial (DCE/DTE) interface and and ip is set as follows:
router 1: 192.168.1.1 255.255.255.0
router 1: 192.168.1.2 255.255.255.0

Problem: line protocol is showing down .
Example bellow :

R1#show ip interface brief 
Interface              IP-Address      OK? Method Status                Protocol
 
FastEthernet0/0        unassigned      YES manual administratively down down
 
FastEthernet0/1        unassigned      YES manual administratively down down
 
Serial0/3/0            192.168.1.1     YES manual up                    down
Vlan1                  unassigned      YES manual administratively down down

Reason :
one of the reason is on DCE , clock rate is set to : no clock , as bellow example

R1#show controllers serial 0/3/0
Interface Serial0/3/0
Hardware is PowerQUICC MPC860
DCE V.35, no clock
idb at 0x81081AC4, driver data structure at 0x81084AC0
SCC Registers:
General [GSMR]=0x2:0x00000000, Protocol-specific [PSMR]=0x8
Events [SCCE]=0x0000, Mask [SCCM]=0x0000, Status [SCCS]=0x00
Transmit on Demand [TODR]=0x0, Data Sync [DSR]=0x7E7E
Interrupt Registers:
Config [CICR]=0x00367F80, Pending [CIPR]=0x0000C000
Mask   [CIMR]=0x00200000, In-srv  [CISR]=0x00000000
Command register [CR]=0x580
Port A [PADIR]=0x1030, [PAPAR]=0xFFFF
       [PAODR]=0x0010, [PADAT]=0xCBFF
Port B [PBDIR]=0x09C0F, [PBPAR]=0x0800E
       [PBODR]=0x00000, [PBDAT]=0x3FFFD
Port C [PCDIR]=0x00C, [PCPAR]=0x200
       [PCSO]=0xC20,  [PCDAT]=0xDF2, [PCINT]=0x00F
Receive Ring
        rmd(68012830): status 9000 length 60C address 3B6DAC4
        rmd(68012838): status B000 length 60C address 3B6D444
Transmit Ring
 --More--

Solve:
add clock rate by hand

R1#configure t
R1#configure terminal 
Enter configuration commands, one per line.  End with CNTL/Z.
R1(config)#in
R1(config)#interface se
R1(config)#interface serial 0/3/0
R1(config-if)#clo
R1(config-if)#clock r
R1(config-if)#clock rate 1000000
R1(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/3/0, changed state to up

Protected: Perl:Array

Thursday, July 1st, 2010

This content is password protected. To view it please enter your password below:

Protected: Perl:Files and I/O

Thursday, July 1st, 2010

This content is password protected. To view it please enter your password below: