Posts

Showing posts from 2018

Generación de una Onda Cuadrada utilizando el PIC 16F877A en Pic Simulator IDE.

Image
A continuación se muestra el código para generar una onda cuadrada, asi como su simulacion en Proteus. OPTION_REG = 0x01 TRISB = 0x00 TMR0 = 250 INTCON.GIE = 1 INTCON.T0IE = 1 loop: PORTB.1 = 0 Goto loop End                                               On Interrupt PORTB.1 = 1 INTCON.T0IE = 1 INTCON.T0IF = 0 TMR0 = 250 Resume                       Simulación:                     

CONFIGURACIÓN FRAME RELAY CON ROUTER'S CISCO EN GNS3 Y SALIDA A INTERNET

Image
COMANDOS R1 conf t hostname R1 int e0/0 ip add 172.16.20.1 255.255.255.0 no shut ip ospf 10 area 0 exit int e0/1 ip add 200.10.10.1 255.255.255.0 no shut exit int ser 2/0 encapsulation frame-relay frame-relay lmi-type ansi ip add 10.10.10.4 255.255.255.0 ip ospf 10 area 0 no shut exit router ospf 10 router-id 1.1.1.1 exit int ser 2/0 ip ospf network point-to-multipoint exit ip route 0.0.0.0 0.0.0.0 200.10.10.2 router ospf 10 default-information originate exit =========================================================== R2 conf t hostname R2 int e0/0 ip add 192.168.10.1 255.255.255.0 no shut ip ospf 10 area 0 exit int ser 2/0 encapsulation frame-relay frame-relay lmi-type ansi ip add 10.10.10.5 255.255.255.0 ip ospf 10 area 0 no shut exit router ospf 10 router-id 2.2.2.2 exit inter ser 2/0 frame-relay map ip 10.10.10.4 101 broadcast exit int ser 2/0 ip ospf network point-to-multipoint exit =========================================================== R3 conf t hostname R3 int e0/0 ip

Configuración OSPF multiarea con IPV6.

Image
Comándos:  R1 conf t ipv6 unicast-routing int e0/0 ipv6 add 2001:1:1:10::1/64 no shut ipv6 ospf 10 area 10 exit int e0/1 ipv6 add 2001:1:1:2A::1/64 no shut ipv6 ospf 10 area 0 exit int e0/2 ipv6 add 2001:1:1:11::1/64 no shut ipv6 ospf 10 area 20 exit ipv6 router ospf 10 router-id 1.1.1.1 exit ======================================== BROCADE-1 configure set interfaces ethernet eth0 address 2001:1:1:2A::2/64 set interfaces ethernet eth1 address 2001:1:1:1A::1/64 set protocols ospfv3 parameters router-id 2.2.2.2 set protocols ospfv3 area 0.0.0.0 range 2001:1:1:2a::/64 set protocols ospfv3 area 0.0.0.0 range 2001:1:1:1a::/64 set protocols ospfv3 area 0.0.0.0 interface eth0 set protocols ospfv3 area 0.0.0.0 interface eth1 commit ======================================= HPE interface ge1/0 ipv6 add 2001:1:1:10::2/64 exit interface ge2/0 ipv6 add 2001:1:1:3D::1/64 exit ospfv3 10 router-id 5.5.5.5 exit interface ge1/0 ospfv3 10 area 10 e

Configuración de IS-IS y salida a internet, utilizando router's Cisco, Juniper y Mikrotik.

Image
  Implementación del protocolo IS-IS de la Topología Planteada. Código  R2 ========================================================= conf t int lo0 ip add 192.168.0.1 255.255.255.255 ip router isis exit int e0/0 ip add 10.10.2.1 255.255.255.0 no shut ip router isis exit int e0/1 ip add 10.10.4.1 255.255.255.0 no shut ip router isis exit int e0/2 ip add 200.10.20.253 255.255.255.252 no shut exit router isis net 49.0006.1921.6800.0001.00 exit ip route 0.0.0.0 0.0.0.0 200.10.20.254 router isis default-information originate exit ========================================================= JUN-1 ========================================================= configure set interfaces em0 unit 0 family inet address 10.10.2.2/24 set interfaces em0 unit 0 family iso set interfaces em1 unit 0 family inet address 200.10.10.253/30 set interfaces em2 unit 0 family inet address 10.10.5.1/24 set interfaces em2 unit 0 family iso set interfaces em3 unit 0 family inet address 10.10.3.1/24 set interfac

OSPF ENLACES VIRTUALES / OSPF VIRTUAL LINKS

Image
Código R1 conf t int e0/0 ip add 172.20.4.253 255.255.255.252 no shut ip ospf 10 area 2 exit int e1/0 ip add 192.168.10.1 255.255.255.0 no shut ip ospf 10 area 1 exit int e1/1 ip add 192.168.11.1 255.255.255.0 no shut ip ospf 10 area 1 exit router ospf 10 router-id 1.1.1.1 area 2 virtual-link 3.3.3.3 exit ==================================== R2 conf t int e0/0 ip add 172.20.4.254 255.255.255.252 no shut ip ospf 10 area 2 exit int e1/0 ip add 172.20.8.253 255.255.255.252 no shut ip ospf 10 area 2 exit router ospf 10 router-id 2.2.2.2 exit ====================================== R3 conf t int e0/0 ip add 172.20.8.254 255.255.255.252 no shut ip ospf 10 area 2 exit int e1/0 ip add 172.20.12.253 255.255.255.252 no shut ip ospf 10 area 0 exit router ospf 10 router-id 3.3.3.3 area 2 virtual-link 1.1.1.1 exit ======================================= R4 conf t int e0/0 ip add 172.20.12.254 255.255.255.252 no shut ip osp

OSPF Multiarea con IPV4.

Image
CÓDIGO: R1 ena conf t hostname R1 int e0/0 ip add 200.10.10.253 255.255.255.252 no shut ip ospf 10 area 0 exit int e0/1 ip add 200.10.10.249 255.255.255.252 no shut ip ospf 10 area 0 exit int e0/2 ip add 10.10.10.1 255.255.255.0 no shut ip ospf 10 area 0 exit router ospf 10 router-id 1.1.1.1 exit ========================================== R2 ena conf t hostname R2 int e0/0 ip add 200.10.10.254 255.255.255.252 no shut ip ospf 10 area 0 exit int e0/1 ip add 172.16.20.1 255.255.255.0 no shut ip ospf 10 area 15 exit int e0/2 ip add 172.16.22.1 255.255.255.0 no shut ip ospf 10 area 15 exit router ospf 10 router-id 2.2.2.2 exit ========================================== R3 ena conf t hostname R3 int e0/0 ip add 200.10.10.250 255.255.255.252 no shut ip ospf 10 area 0 exit int e0/1 ip add 192.168.10.1 255.255.255.0 no shut ip ospf 10 area 20 exit int e0/2 ip add 192.168.20.1 255.255.255.0 no shut ip ospf 10 area 20 exit router ospf 10 router-id 3.3.3.3 exit ===============================

Red OSPF con salida a internet usando routers Cisco, Juniper y Mikrotik en GNS3.

Image
COMANDOS: JUNIPER cli configure set interfaces em0 unit 0 family inet address 10.10.2.1/24 set interfaces em1 unit 0 family inet address 10.10.3.1/24 set interfaces em2 unit 0 family inet address 10.10.15.1/24 set interfaces em3 unit 0 family inet address 10.10.16.1/24 set routing-options router-id 1.1.1.1 set protocols ospf area 0.0.0.0 interface em0 set protocols ospf area 0.0.0.0 interface em1 set protocols ospf area 0.0.0.0 interface em2 set protocols ospf area 0.0.0.0 interface em3 commit exit ========================================== R1 conf t int e0/0 ip add 10.10.2.2 255.255.255.0 ip ospf 10 area 0 no shut exit int e0/1 ip add 10.10.4.1 255.255.255.0 ip ospf 10 area 0 no shut exit int e0/2 ip add 10.10.7.1 255.255.255.0 ip ospf 10 area 0 no shut exit int e0/3 ip add 10.10.8.1 255.255.255.0 ip ospf 10 area 0 no shut exit router ospf 10 router-id 11.11.11.11 exit ========================================== R2 conf t int e0/0 ip

Configuración de OSPF en routers CISCO mediante el software GNS3

Image
COMANDOS UTILIZADOS EN LA CONFIGURACIÓN   R1 conf t int e0/1 ip add 192.168.20.1 255.255.255.0 no shut exit int e0/2 ip add 192.168.10.1 255.255.255.0 no shut exit int e0/3 ip add 192.168.11.1 255.255.255.0 no shut exit int e1/0 ip add 192.168.12.1 255.255.255.0 no shut exit router ospf 10 router-id 1.1.1.1 network 192.168.20.0 0.0.0.255 area 0 network 192.168.10.0 0.0.0.255 area 0 network 192.168.11.0 0.0.0.255 area 0 network 192.168.12.0 0.0.0.255 area 0 exit ================================= R2 conf t int e0/0 ip add 192.168.20.2 255.255.255.0 no shut exit int e0/2 ip add 192.168.31.1 255.255.255.0 no shut exit int e0/3 ip add 192.168.32.1 255.255.255.0 no shut exit int e0/1 ip add 192.168.30.1 255.255.255.0 no shut exit router ospf 10 router-id 2.2.2.2 network 192.168.20.0 0.0.0.255 area 0 network 192.168.30.0 0.0.0.255 area 0 network 192.168.31.0 0.0.0.255 area 0 network 192.168.32.0 0.0.0.255 area 0 exit ==============

Conexión a Internet mediante un router Mikrotik, GNS3.

Image
Conexión 

Programación de un teclado con Pic Simulator Ide, PIC 16F877A.

Image
Programación de un teclado matricial del 1-9 en Pic Simulator Ide, ademas de la simulación en un Pic 16F877A en Proteus: Programa: TRISA = 0 TRISC = 255 TRISD = 0 PORTD = 255 main: PORTA.0 = 1 tres: If PORTC.0 = 1 Then PORTD = 110000 Goto tres Else seis: If PORTC.1 = 1 Then PORTD = 000010 Goto seis Else nueve: If PORTC.2 = 1 Then PORTD = 010000 Goto nueve Endif Endif Endif PORTA.0 = 0 PORTA.1 = 1 dos: If PORTC.0 = 1 Then PORTD = %10100100 Goto dos Else cinco: If PORTC.1 = 1 Then PORTD = %10010010 Goto cinco Else ocho: If PORTC.2 = 1 Then PORTD = %10000000 Goto ocho Endif Endif Endif PORTA.1 = 0 PORTA.2 = 1 uno: If PORTC.0 = 1 Then PORTD = %11111001 Goto uno Else cuatro: If PORTC.1 = 1 Then PORTD = %10011001 Goto cuatro Else siete: If PORTC.2 = 1 Then PORTD = %11111000 Goto siete Endif Endif Endif PORTA.2 = 0 PORTD = 255 Goto main End Sim

Transmisor y Receptor Infrarrojo.

Image
Led infrarrojo emisor y receptor: Diodo emisor de luz infrarroja (LED IR). Figure 1 Diodo emisor de luz infrarroja. Este LED emite un tipo de radiación electromagnética llamada infrarroja, que es invisible para el ojo humano porque su longitud de onda es mayor a la del  espectro visible . [1] Figure 2 . Espectro visible por el hombre. Ya que no podremos ver a simple vista si nuestro emisor está funcionando (al polarizarlo), tendremos que comprobarlo utilizando alguna cámara de fotografía o video digital, como la de nuestro celular. [1] Figure 3 Fototransistor. Figure 4 Fototransistor. Este dispositivo se diferencia de un transistor común porque su base ha sido sustituida por un cristal fotosensible que regula el flujo de corriente colector – emisor de acuerdo con la luz incidente sobre él (en nuestro caso luz infrarroja). [1] El fototransistor, aunque con la apariencia de un LED común, debe conectarse con la patilla larga a masa y la corta a vo