INTRODUCCIN A LA CONFIGURACIN
Y OPERACIN DE ROUTERS
CGRC - C1
Agenda
Introduccin al Internetworking.
Enrutamiento - Nivel de Red.
Operaciones bsicas en routers.
Configuracin de routers
Introduccin al TCP/IP
Configuracin de ruteo IP
Redes WAN
Frame Relay
Internet
Introduccin al Internetworking
1960s - 1970s: Comunicaciones
Software
Hardware
Software
Hardware
- Comunicaciones centralizadas
alrededor del mainframe
Red de valor
aadido
- Uso de terminales tontos.
- Enlaces de baja velocidad.
- IBM con SNA, no IBM con X.25
CGRC - C1
Introduccin al Internetworking
1970s - 1980s: Redes
Token
Ring
- Introduccin de las PCs
- Aparicin de las redes de area local LANs
- Necesidad de conectar las LANs al mainframe
CGRC - C1
Introduccin al Internetworking
1980s - 1990s: Interconexin de redes
Redes Privadas
o Publicas
FDDI
- Mezcla de tecnologas antiguas y nuevas.
- Comercio electrnico, mensajera.
- Migracin de aplicaciones de hosts centrales
a servidores distribuidos.
- Nuevos patrones de trfico, necesidad de mayor
ancho de banda
CGRC - C1
Introduccin al Internetworking
1990s: Interconexin global
Red Global
Internet
- Requerimiento de mayor ancho de banda.
- Integracin de voz, datos y video.
- Ambientes cliente -servidor.
- Trfico en demanda.
CGRC - C1
Introduccin al Internetworking
Mdelo de Capas OSI - Funciones
7
Aplicacin
Presentacin
Sesin
Transporte
Servicios a las aplicaciones
de usuario
Representacin de los datos.
Manejo de sesiones
entre aplicaciones.
Conexin end to end
Red
Direccionamiento y
eleccin del camino
Enlace
Acceso al medio
Fsico
Transmisin binaria
CGRC - C1
Introduccin al Internetworking
Mdelo de Capas OSI - Comunicacin entre hosts
Aplicacin
Aplicacin
Presentacin
Presentacin
Sesin
Sesin
Transporte
Red
Enlace
Fsico
HOST A
CGRC - C1
paquetes
tramas
bits
Transporte
Red
Enlace
Fsico
HOST B
Introduccin al Internetworking
Mdelo de Capas OSI - Encapsulacin dedatos
AH
Aplicacin
Presentacin
Sesin
Transporte
Red
Enlace
Fsico
HOST A
CGRC - C1
PH
SH
TH
Network
Header
Frame
Header
datos
datos
datos
datos
datos
datos
010110011001
Aplicacin
Presentacin
Sesin
Transporte
Red
Enlace
Fsico
HOST B
Introduccin al Internetworking
Niveles Fsico y de Enlace
Enlace
(tramas)
Fsico
(bits,
seales,
reloj)
E
t
h
e
r
n
e
t
802.2 LLC
8
0
2
.
3
8 F
0 D
2 D
. I
5
LAN
CGRC - C1
X.25
link ISDN
Dial
sdlc hdlc
on
PPP
Frame
demand
Relay
V.24
EIA-530
G.703
V.35
HSSI
EIA-449
WAN
Introduccin al Internetworking
Niveles Fsico y de Enlace
Logical Link Control
RED
LLC
ENLACE
MAC
FISICO
Media Acces Control
Cdigo de
Vendedor
ROM
Nmero
de serie
RAM
EL LLC permite las funciones de software a las capas superiores.
El MAC permite las funciones de hardware, el acceso al medio fsico.
CGRC - C1
Introduccin al Internetworking
Tecnologas comunes de LAN
Ethernet
(CSMA/CD - 10, 100 Mbps)
Token Ring
(Token - 4, 16 Mbps)
FDDI
(Token - 100 Mbps)
CGRC - C1
Token
Ring
FDDI
Introduccin al Internetworking
Tecnologas comunes de WAN
SDLC
HDLC
LAPB
PPP
X.25
Frame Relay
ISDN
CGRC - C1
Introduccin al Internetworking
Tecnologas comunes de WAN: Nivel Fsico
EIA 232
V.35
X.21
HSSI
Others
CSU/DSU
CGRC - C1
DTE
(mdem)
DCE
Data Terminal Equipment
Data Circuit Equipment
Fin del lado del cliente
Fin del lado del proveedor
Introduccin al Internetworking
Tecnologas comunes de WAN: Nivel de Enlace
(mdem)
(mdem)
CSU/DSU
CSU/DSU
- SDLC: Synchronous Data Link Control
- HDLC: High-Level Data Link Control
- LAPB: Link Access Procedure, Balanced
- Frame Relay: Versin simplificada del framing HDLC.
- PPP: Point to Point Protocol.
- X.25: Packet Level Protocol.
- ISDN: Integrated Services Digital Network (data-link signaling.
CGRC - C1
Agenda
Introduccin al Internetworking.
Enrutamiento - Nivel de Red.
Operaciones bsicas en routers.
Configuracin de routers
Introduccin al TCP/IP
Configuracin de ruteo IP
Redes WAN
Frame Relay
Internet
Enrutamiento - Nivel de Red
Dispositivos de red.
Repetidor:
- Extensin fsica de la red.
- Trabaja a nivel fsico (seales).
- Ejem. HUBs
Bridge:
- Extensin lgica de la red.
- Separacin de segmentos de red.
- Control a nivel de enlace. (MAC)
NO RECONOCEN PROTOCOLOS DE RED
CGRC - C1
Enrutamiento - Nivel de Red
Dispositivos de red.
Switch (conmutador):
- Trabaja como un bridge mltiple (por
puerto), de una sola direccin.
- Remplaza a los HUBs por mejor
performance.
Router:
- Trabaja a nivel de red.
- Segmentacin e interconexin de redes.
- Reconoce protocolos de red.
- Usa protocolos de enrutamiento para elegir
el mejor camino (inteligencia).
CGRC - C1
Enrutamiento - Nivel de Red
Tecnologa de routers.
Que camino seguir?
La funcin del nivel de red es la de encontrar el mejor
camino a travs de la red con direccin al destino.
CGRC - C1
Enrutamiento - Nivel de Red
Tecnologa de routers.
4
2
10
8
5
1
3
Las direcciones representan el camino (enlaces) por el
cual los datos viajan desde el origen al destino.
CGRC - C1
Enrutamiento - Nivel de Red
Determinacin de los caminos.
RED
HOST
1
2
3
1
2
X.1
X.2
2.1
2.2
1.1
1.2
1.3
- Las direcciones de RED son usadas por los routers.
- Las direcciones de HOST, especifican un dispositivo o puerto.
CGRC - C1
Enrutamiento - Nivel de Red
Enrutamiento esttico vs dinmico.
DEFINICION:
Tcnica para encontrar el camino a un punto destino.
ENRUTAMIENTO ESTTICO:
- El administrador configura (previamente) LA RUTA por
donde el router buscar la red destino.
ENRUTAMIENTO DINAMICO:
- El router conoce LA RUTA a la red destino usando un
protocolo de ruteo que aprende automticamente la
topologa de la red y/o los cambios en ella.
CGRC - C1
Enrutamiento - Nivel de Red
Ejemplo de enrutamiento esttico.
El Administrador configura la ruta
para llegara la red remota (RED X).
Menor consumo de ancho de banda.
No es flexible para redes grandes.
Una sola red remota, no es
necesario updates de rutas.
A
B
RED X
CGRC - C1
Enrutamiento - Nivel de Red
Ejemplo de enrutamiento dinmico.
- Recomendable para redes grandes.
- El protocolo de enrutamiento
mantiene y distribuye la informacin
de las redes
Protocolo de Enrutamiento
B
RT
CGRC - C1
RT
Enrutamiento - Nivel de Red
Concepto Protocolos Vector Distancia.
1.1.0.0
1.2.0.0
E0
S0
S0
Routing Table
1.1.0.0
1.3.0.0
1.2.0.0
E0
S0
0
0
1.3.0.0
S0
1.4.0.0
S0
S1
Routing Table
1.2.0.0
1.3.0.0
S0
S1
0
0
1.4.0.0
S1
1.1.0.0
S0
E0
S0
1.4.0.0
Routing Table
1.3.0.0
1.4.0.0
S0
E0
0
0
1.2.0.0
S0
1.1.0.0
S0
- Envio peridico de tablas de rutas a los routers vecinos.
- Eleccin del mejor camino, de acuerdo a los saltos a la red destino.
CGRC - C1
Enrutamiento - Nivel de Red
Concepto Protocolos Link State.
W
E0
S0
S0
S1
SPF
E0
S0
SPF
C
SPF
Routing Table
Routing Table
Routing Table
E0
S0
S0
S0
S1
E0
- Construccin de base de datos de la topologa de red.
- Intercambio de base de datos para reconstruir la topologa.
- No es necesario envio peridicos de tablas de rutas.
CGRC - C1
Agenda
Introduccin al Internetworking.
Enrutamiento - Nivel de Red.
Operaciones bsicas en routers .
Configuracin de routers
Introduccin al TCP/IP
Configuracin de ruteo IP
Redes WAN
Frame Relay
Internet
Operaciones bsicas en routers Cisco
Arquitectura interna.
RAM
NVRAM Flash
Consola
Auxiliar
ROM
Interfaces
- RAM/DRAM: usado para la configuracin dinmica y procesos de ruteo.
- NVRAM: contiene la copia backup de la configuracin del router.
- Flash: memoria que contiene la IOS (sistema operativo) del router.
- ROM: contiene un IOS por defecto (sin prestaciones completas).
CGRC - C1
Operaciones bsicas en routers Cisco
Tipos de acceso al router.
Terminales
Virtuales
Puerto de
consola
Puerto auxiliar
(mdem)
Interfaces
Servidor
TFTP
Estacin
de
Gestin
Fuentes de configuracin del router.
- Las ms usadas: Puerto de Consola y Terminales Virtuales.
- Los terminales virtuales son accesos remotos (telnet).
CGRC - C1
Operaciones bsicas en routers Cisco
Modos de operacin del router
Modo de ejecucin de USUARIO (User EXEC Mode):
- Acceso limitado al router (estados de las interfaces, pruebas).
- Es posible acceso remoto, requiere password de terminal virtual.
Router>
Modo de ejecucin de administrador (Privileged EXEC Mode):
- Permite exmen detallado del router (pruebas, diagnstico, etc)
- Es posible acceso remote, requiere password de terminal virtual
y password de administrador (enable).
Router#
CGRC - C1
Operaciones bsicas en routers Cisco
Modos de operacin del router
consola
Router con0 is now available
Press RETURN to get started,
Router>
Router> enable
Password: xxxxxxx
Router#
Router#exit
Router>
Router>logout
CGRC - C1
Puerto Console
(9600bps, 8-1-N)
Operaciones bsicas en routers Cisco
Modos de operacin del router
C:> Telnet router 1
User Access Verification
Password: xxxxxx
Router>
Router> enable
Password: xxxxxxx
Router#
Router#exit
Terminales
remotos
Es posible el acceso al router desde terminales remotos.
Se necesita conocer el password de acceso.
CGRC - C1
router 1
Operaciones bsicas en routers Cisco
Modos de operacin del router (modo usuario)
Router>?
Exec commands:
access-enable
atmsig
cd
clear
connect
dir
disable
exit
help
lat
lock
login
logout
--More --
CGRC - C1
Create a temporary Access-List entry
Execute Atm Signalling Commands
Change current device
Reset functions
Open a terminal connection
List files on given device
Turn off privileged commands
Exit from the EXEC
Description og the interactive help system
Open a lat connection
Lock the terminal
Log in as a particular user
Exit from the EXEC
Operaciones bsicas en routers Cisco
Modos de operacin del router (modo administrador)
Router#?
Exec commands:
access-enable
access-template
bfe
clear
clock
configure
connect
copy
debug
disable
disconnect
enable
erase
exit
help
--More --
CGRC - C1
Create a temporary Access-List entry
Create a temporary Access-List entry
For manual emergency modes setting
Reset functions
Manage the system clock
Enter configuration mode
Open a terminal connection
Copy a configuration or image data
Debugging functions (see also undebug)
Turn off privileged commands
Disconnect from an existing connection
Turn on privileged commands
Erase flash or configuration memory
Exit from the EXEC
Description og the interactive help system
Operaciones bsicas en routers Cisco
El comando show version:
Router# show version
IOS (tm) 2500 Softwqre (C2500-JS-L), Version 11.2 (6), RELEASE SOFTWARE (fc1)
Copyright 1986-1997 by cisco Systems, Inc.
Compiled Tue 06-May-97 16:17 by kuong
Image text-base: 0x0303ED8C, data-base: 0x00001000
ROM: System Bootstrap, Version 5.2(8a), RELEASE SOFTARE
ROM: 2500-XBOOT Bootstrap Software, Version 10.3(1), RELEASE SOFTWARE (fc1)
router uptime is 1 week, 3 days, 33 minutes
System restarted by reload
System image file is c2500-js-l, booted via tftp from 192.168.1.130
CGRC - C1
Operaciones bsicas en routers Cisco
El comando show interfaces:
Router# show interfaces
Serial0 is up, line protocol is up
Hardware is HD64570
Description: --- ENLACE UNIRED --Internet address is 200.37.147.118 255.255.255.252
MTU 1500 bytes, BW 1984 Kbit, DLY 20000 usec, rely 255/255, load 1/255
Encapsulation HDLC, loopback not set, keepalive set (10 sec)
Last input 0:00:03, output 0:00:06, output hang never
Last clearing of "show interface" counters 2w5d
Output queue 0/40, 0 drops; input queue 0/75, 0 drops
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
496491 packets input, 101812790 bytes, 0 no buffer
Received 191403 broadcasts, 0 runts, 0 giants
360 input errors, 357 CRC, 7 frame, 0 overrun, 0 ignored, 3 abort
550812 packets output, 36889473 bytes, 0 underruns
0 output errors, 0 collisions, 58 interface resets, 0 restarts
0 output buffer failures, 0 output buffers swapped out
0 carrier transitions
DCD=up DSR=up DTR=up RTS=up CTS=up
CGRC - C1
Operaciones bsicas en routers Cisco
El comando show interfaces:
Router# show interfaces
Serial0 is up, line protocol is up
Hardware is HD64570
Description: --- ENLACE UNIRED --Internet address is 200.37.147.118 255.255.255.252
MTU 1500 bytes, BW 1984 Kbit, DLY 20000 usec, rely 255/255, load 1/255
Encapsulation HDLC, loopback not set, keepalive set (10 sec)
Last input 0:00:03, output 0:00:06, output hang never
Last clearing of "show interface" counters 2w5d
Output queue 0/40, 0 drops; input queue 0/75, 0 drops
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
496491 packets input, 101812790 bytes, 0 no buffer
Received 191403 broadcasts, 0 runts, 0 giants
360 input errors, 357 CRC, 7 frame, 0 overrun, 0 ignored, 3 abort
550812 packets output, 36889473 bytes, 0 underruns
0 output errors, 0 collisions, 58 interface resets, 0 restarts
0 output buffer failures, 0 output buffers swapped out
0 carrier transitions
DCD=up DSR=up DTR=up RTS=up CTS=up
CGRC - C1
Agenda
Introduccin al Internetworking.
Enrutamiento - Nivel de Red.
Operaciones bsicas en routers.
Configuracin de routers
Introduccin al TCP/IP
Configuracin de ruteo IP
Redes WAN
Frame Relay
Internet
Configuracin de routers
Aspectos bsicos (tareas a realizar):
- Revisar la configuracin del router.
- Personalizar la identificacin del router.
- Asignar passwords de acceso.
- Configurar interfaces.
- Guardar la configuracin en la NVRAM.
CGRC - C1
Configuracin de routers
Aspectos bsicos (revisin de la configuracin):
Router#show running-config
Building configuration...
Current configuration:
!
version 11.0
no service udp-small-servers
no service tcp-small-servers
!
hostname Router
!
interface Ethernet0
no ip address
shutdown
!
interface Serial0
no ip address
shutdown
!
-- More --
CGRC - C1
interface Serial1
no ip address
shutdown
!
line con 0
line 1 8
transport input all
line aux 0
transport input all
line vty 0 4
!
end
Configuracin de routers
Modos de configuracin:
Modo de usuario
Router>
Modo de administrador
Router#
Modo de configuracin general
Router(config)#
Configuration Mode
Interface
Subinterface
Controller
Line
Router
Route-map
CGRC - C1
Prompt
Router(config-if)#
Router(config-subif)#
Router(config-controller)#
Router(config-line)#
Router(config-router)#
Router(config-route-map)#
Configuracin de routers
Configuracin de password:
Password de Consola
Router(config)# line console 0
Router(config-line)# login
Router(config-line)# password cisco
Password de terminalremoto
Router(config)# line vty 0 4
Router(config-line)# login
Router(config-line)# password ciscopass
Enable password
Router(config)# enable password ciscoxxx
Secret password
Router(config)# enable secret ciscoxxx
CGRC - C1
Configuracin de routers
Configuracin de una interface:
Router(config)# interface tipo
numero
Router(config-if)#
Router(config)# interface tipo slot /numero
Router(config-if)#
Router(config-if)# exit
- tipo, puede ser: serial, ethernet, hssi, fddi, async
atm, bri,loopback, dialer, null, token ring
- nmero, se usa para identificar a las interfaces
- para los routers 7000, 7500
- salir de configuracin de interface.
De acuerdo a la caracterstica de cada interface, se configura los parmetros,
como: la direccin del puerto, el tipo de encapsulacin, el ancho de banda, etc.
CGRC - C1
Configuracin de routers
Show interfaces:
Router# show interface serial 0
Serial0 is up, line protocol is up
Hardware is HD64570
Description: --- ENLACE UNIRED --Internet address is 200.37.147.118 255.255.255.252
MTU 1500 bytes, BW 1984 Kbit, DLY 20000 usec, rely 255/255, load 1/255
Encapsulation HDLC, loopback not set, keepalive set (10 sec)
:::::::::::
DCD=up DSR=up DTR=up RTS=up CTS=up
Carrier Detect
Keepalives
Circuito operativo...........................Serial 0 is up, line protocol is up
Problema de enlace........................Serial 0 is up, line protocol is down
Problema de interface....................Serial 0 is down, line protocol is down
Interface deshabilitada.................. Serial 0 is administratively down, line protocol is down
CGRC - C1
Configuracin de routers
Prctica de configuracin de interfaces:
R1
R2
DCE
red X
2 Mbps
R3
R4
red Y
DCE
512 kbps
red A
red B
R5
- Configurar los nombres y password de los routers
- Configurar las interfaces segn el diagrama.
- Revisar el estado de las interfaces.
- Asignar nmeros IP para pruebas.
- Revisar configuracin.
CGRC - C1
Agenda
Introduccin al Internetworking.
Enrutamiento - Nivel de Red.
Operaciones bsicas en routers.
Configuracin de routers
Introduccin al TCP/IP
Configuracin de ruteo IP
Redes WAN
Frame Relay
Internet
Introduccin al TCP/IP
Modelo de capas TCP/IP (comparacin con OSI)
Aplicacin
Presentacin
Aplicacin
Sesin
Transporte
Red
Enlace
Fsico
OSI
CGRC - C1
Transporte
Internet
Interface
de red
TCP/IP
Introduccin al TCP/IP
TCP/ IP- Nivel de aplicacin:
Aplicacin
Transporte
Internet
Interface
de red
CGRC - C1
File Transfer
-TFTP
-FTP
-NFS
Email
- SMTP
Remote Login
- Telnet
- rlogin
Network Management
- SNMP
Introduccin al TCP/IP
TCP/ IP- Nivel de transporte:
Aplicacin
Transmission Control
Protocol (TCP)
Transporte
Internet
Interface
de red
CGRC - C1
User Datagram
Protocol (UDP)
Introduccin al TCP/IP
TCP/ IP- Nivel de internet (red):
Internet Prococol (IP)
Aplicacin
Transporte
Internet
Interface
de red
CGRC - C1
Internet Control Message
Prococol (ICMP)
Address Resolution
Prococol (ARP)
Reverse Address
Resolution Protocol
(RARP)
Introduccin al TCP/IP
ICMP - busqueda de destino y ping:
Host A
Envio datos
aZ
No se como
llegar a Z
Red de Datos
Datos a Z
Destino no alcanzable
Esta C
alcanzable?
Prueba usando ping
ICMP echo request
ICMP echo reply
CGRC - C1
Si aqu
estoy
Introduccin al TCP/IP
ARP - Address Resolution Protocol:
172.20.50.1
Necesito conocer
la direccion ETHER
de la IP 172.20.50.5
172.20.50.5
ICMP echo request
ICMP echo request
- ARP define IP
Ethernet
- RARP define Ethernet
IP
CGRC - C1
He recibido un broadcast.
El mensaje es para mi.
Mi ethernet addres es:
Introduccin al TCP/IP
Direccionamiento TCP / IP:
Host B
Compaa Y
Host A
Compaa X
- El sistema de direccionamiento nico permite la
comunicacin entre las estaciones finales.
- La eleccin del camino de ruta est basado en las direcciones
que representan un destino final.
CGRC - C1
Introduccin al TCP/IP
Direcciones IP:
32 bits
NETWORK
8 bits
172
CGRC - C1
HOST
8 bits
. 16
8 bits
100
8 bits
129
Introduccin al TCP/IP
Clases de direcciones IP:
Clase A:
NET
HOST
HOST
HOST
Clase B:
NET
NET
HOST
HOST
Clase C:
NET
NET
NET
HOST
Clase D: reservado para multicast
Clase E: reservado para investigacin
CGRC - C1
Introduccin al TCP/IP
Clases de direcciones IP:
Clase A, rango 1.0.0.0 hasta 126.0.0.0
Clase B, rango desde 128.0.0.0 hasta 191.255.0.0
Clase C, rango desde 192.0.0.0 hasta 223.255.255.0
Clase D, rango desde 224.0.0.0 hasta 239.255.255.0
CGRC - C1
Introduccin al TCP/IP
Ejercicios:
Direccin
10.5.3.1
128.12.2.100
203.222.1.60
192.7.113.16
127.0.0.1
256.241.201.0
CGRC - C1
Clase
Red
Host
Introduccin al TCP/IP
Direccionamiento TCP / IP - Mscaras:
Clase A, mscara: 255.0.0.0
Clase B, mscara: 255.255.0.0
Clase C, mscara 255.255.255.0
CGRC - C1
Introduccin al TCP/IP
Direccionamiento TCP / IP - Mscaras:
R1
R2
S0
red X
192.168.10.1
R3
S1
192.168.10.2
135.15.50.15
R5
10.1.1.15
CGRC - C1
R6
10.100.15.26
S0
R4
red Y
S1
R7
221.20.13.1
132.15.1.200
R8
221.20.13.157
Introduccin al TCP/IP
Direccionamiento TCP / IP - Mscaras:
172.16.3.0
255.255.255.0
172.16.2.0
255.255.255.0
172.16.4.0
255.255.255.0
172.16.0.0
255.255.0.0
172.16.1.0
255.255.255.0
Red sin subnetting
CGRC - C1
Red con subnetting
Introduccin al TCP/IP
Direccionamiento TCP / IP - Mscaras:
Network
172
Host
16
Network
255
Host
255
Network
172
CGRC - C1
0
Subnet
16
Network
255
150
Direccin
IP
2
Subnet
255
255
Mscara x
defecto
Host
150
Direccin
IP
Host
Mscara
de 8 bits
Introduccin al TCP/IP
Direccionamiento TCP / IP - Mscaras:
Network
172
Host
16
Network
255
Host
255
Network
172
CGRC - C1
0
Subnet
16
Network
255
150
Direccin
IP
2
Subnet
255
255
Mscara x
defecto
Host
150
Direccin
IP
Host
Mscara
de 8 bits
Introduccin al TCP/IP
Direccionamiento TCP / IP - Mscaras:
NETWORK
172.16.2.160
10101100
255.255.0.0
11111111
00010000
11111111
HOST
00000010
00000000
00000000
10101100
00010000
00000000
00000000
172
16
MSCARA POR DEFECTO
NO USO DE SUBNETTING
CGRC - C1
10100000
Introduccin al TCP/IP
Direccionamiento TCP / IP - Mscaras:
NETWORK
172.16.2.160
10101100
255.255.255.0
11111111
00010000
11111111
SUBNET
HOST
00000010
10100000
11111111
00000000
10101100
00010000
00000000
00000000
172
16
USO DE SUBNET DE 8 BITS
CGRC - C1
Introduccin al TCP/IP
Direccionamiento TCP / IP - Ejercicios:
NETWORK
200.37.160.121
11001001
255.255.255.224
11111111
Subnet:
00100111
11111111
SUBNET
10100000
11111111
11001001
00100111
10100000
200
37
160
011 11001
111 00000
011 00000
96
Direccin del host = 200.37.160.121
Mscara de subnet = 255.255.255.224
Direccin de subnet = 200.37.160.96
Direccin de broadcast = 200.37.160.127
Nmero de bits usados para subnetting = 3
CGRC - C1
HOST
Introduccin al TCP/IP
Ejercicios:
R=0
R=64
R=128
R=192
SUBNETTING
DE CLASE C
200.48.10.0
255.255.255.0
BUSCAR:
B=31
B=95
B=159
B=223
200.48.10.15 255.255.255.224
R=32
R=96
R=160
R=224
200.48.10.126 255.255.255.192
200.48.10.196 255.255.255.128
200.48.10.150 255.255.255.224
200.48.10.60 255.255.255.192
B=63
CGRC - C1
B=127
B=191
B=255
200.48.10.5 255.255.255.0
Introduccin al TCP/IP
Ejercicios - red 200.4.150.0:
RED A = 28 HOSTS
RED X = 32 HOSTS
RED B = 110 HOSTS
RED X
RED A
CGRC - C1
RED B
Introduccin al TCP/IP
Ejercicios - red 200.4.150.0:
RED A = 28 HOSTS
RED X = 32 HOSTS
RED B = 110 HOSTS
router_1
router_2
router_3
router_4
RED X
RED A
RED B
Comandos en Cisco:
Router(config)# hostname router_X
Router(config-if)# ip address 200.4.150.X 255.255.255.X
Router(config)# ip host <nombre-del-host>
CGRC - C1
Introduccin al TCP/IP
Ejercicios - red 200.4.150.0:
Router# ping <direccin ip del router remoto>
Router# ping <nombre del router remoto>
Router# ping 200.4.150.1
Type escape sequence to abort
Sending 5, 100-byte ICMP Echos to 200.4.250.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent, rount-trip min/avrg/max = 6/6/6 ms
Router#
Router# ping
Protocol (ip):
Target IP address: 200.4.250.1
Repeat count (5): 100
Datagram size (100): 1024
Timeout in seconds (2)
Extended commands (n): y
Source address:
CGRC - C1
Agenda
Introduccin al Internetworking.
Enrutamiento - Nivel de Red.
Operaciones bsicas en routers.
Configuracin de routers
Introduccin al TCP/IP
Configuracin de ruteo IP
Redes WAN
Frame Relay
Internet
Configuracin de ruteo IP
Aspectos bsicos - Tabla de ruteo inicial
Red 20.1.2.0
E0
Red 20.5.9.0
S0
S1
Red 20.1.4.0
Red 20.2.15.0
Red 20.1.3.0
Routing Table
Network Interface
20.1.2.0
20.1.4.0
20.5.9.0
CGRC - C1
E0
S0
S1
El Router conoce
las redes que tiene
fsicamente conectado.
---------
Para reconocer las redes
remotas, necesita un
protocolo de enrutamiento
Configuracin de ruteo IP
Aspectos bsicos - Tipos de enrutamiento
RUTAS ESTTICAS:
Manualmente definicas por el administrador,
como el nico camino al destino.
RUTA POR DEFECTO:
Manualmente definicas por el administrador,
como el camino a tomar cuando no hay
informacin de otros caminos para llegar al
destino.
RUTAS DINMICAS:
El router aprende los caminos a los destinos,
recibiendo las actualizaciones de otros routers,
a travs de un protocolo de enrutamiento.
CGRC - C1
Configuracin de ruteo IP
Aspectos bsicos - Distancia Administrativa
R1
Administrative
Distance = 100
R3
Administrative
Distance = 120
R2
R4
El router prefiere el camino con Distancia Administrative menor.
Interface conectada fsicamente
Ruta esttica
Protocolo OSPF
Protocolo RIP
Unknown
CGRC - C1
0
1
110
120
255
Configuracin de ruteo IP
Configuracin de ruta esttica:
Router (config)#
ip route < red destino> mscara <direccin gateway o interface> <distancia>
- Define un camino a una red destino
R1
172.16.20.2
R2
192.168.10.0
255.255.255.0
172.16.20.1
ip route 192.168.10.0 255.255.255.0 172.16.20.1
CGRC - C1
Configuracin de ruteo IP
Configuracin de ruta por defecto:
Router (config)#
ip default-network <red por defecto>
- Define un camino por defecto (last-resort)
R1
R2
172.16.20.0
ip default-network 172.16.20.0
CGRC - C1
Configuracin de ruteo IP
Enrutamiento dinmico - conceptos:
Sistema Autnomo A
IGP
Sistema Autnomo B
EGP
IGP
- Sistema Autnomo: routers bajo una misma administracin
- EGP: Exterior Gateway Protocol (entre sistemas autnomos)
- IGP: Interior Gateway Protocol (dentro de un mismo S.A).
CGRC - C1
Configuracin de ruteo IP
Configuracin de enrutamiento dinmico IP:
Red: 180.20.0.0
Para habilitar el enrutamiento
es necesario:
RIP
IGRP
- Seleccionar el protocolo.
- Especificar las redes asociadas
a ese protocolo.
- Configurar las interfaces.
Red: 189.65.0.0
RIP
Red: 180.25.0.0
Router(config)#
router <protocol>
Router(config-router)#
network <la red asociada>
CGRC - C1
! define el protocolo a usar
! define la red asociada al protocolo
Configuracin de ruteo IP
Enrutamiento dinmico RIP - visin rpida:
9600 bps
E1
E1
E1
El router selecciona el camino basado en el nmero de saltos
Router(config)# router rip
Router(config-router)# network 20.0.0.0
Router(config-router)# exit
CGRC - C1
Configuracin de ruteo IP
Ejercicio de enrutamiento IP:
R4
R1
R2
red X
R3
red a
red b
red Y
red a = 10.1.1.0 255.255.255.0
red b = 20.2.2.0 255.255.0.0
red c = 163.20.1.0 255.255.0.0
red d = 200.10.1.0 255.255.255.0
red X = 220.10.1.0 255.255.255.0
red Y = 15.0.0.0 255.0.0.0
red Z = 156.50.0.0 255.255.0.0
red W = 225.20.5.0 255.255.255.0
USAR RIP en red Y , red Z
CGRC - C1
R5
red Z
R6
R7
red W
R8
red c
red d
Configuracin de ruteo IP
Diagnstico de problemas:
Router> show ip protocol
Routing Protocol is rip
Sending updates every 30 seconds, next due in 13 seconds
::::::::::
Routing for networks
15.0.0.0
156.50.0.0
::::::::::
Distance (default is 120)
Router> show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, ....
::::::::::
Gateway of last resort is not set
C
C
163.20.10.0 is directly connected, Ethernet 0
156.50.0.0 is directly connected, Serial 0
15.0.0.0 (120/ 1) via 156.50.0.2, 00:00:09 Serial 0
CGRC - C1
Configuracin de ruteo IP
Verificacin de estados:
Router> ping 163.20.10.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 163.20.10.2, timeout is 2
seconds:
!!!!!
Succes rate is 100 percent, round-trip min/avrg/max = 4/4/4 ms
Router>
Router> trace 15.0.0.1
Type escape sequence to abort
Tracing the route to 15.0.0.1
1
2
156.50.1.2
15.0.0.1
10 msec 8 msec 10 msec
* 10 msec 10 msec
Router> show interfaces
Router> debug ip rip
CGRC - C1
Agenda
Introduccin al Internetworking.
Enrutamiento - Nivel de Red.
Operaciones bsicas en routers.
Configuracin de routers
Introduccin al TCP/IP
Configuracin de ruteo IP
Redes WAN
Frame Relay
Internet
Redes WAN
Introduccin - servicios de WAN con routers:
X.25 / LAPB
Frame Relay
ISDN/ LAPD
SDLC
HDLC
PPP
DDR
CGRC - C1
Red Pblica
o Privada
Redes WAN
Introduccin - seleccin de tipo de enlace
Tipos de servicio
Tecnologa necesaria
Enlaces dedicados
Punto a punto sobre lneas seriales
Modems asncronos (dial in)
Servidores de acceso
Conexiones Dial up
Enrutamiento Dial on Demand y
servicios de redes de circuitos
Servicios de redes de
paquetes
CGRC - C1
X.25, Frame Relay, ATM
Redes WAN
Enlaces punto a punto:
DTU/CSU
DTU/CSU
LOS ENLACES ESTAN PERMANENTEMENTE DISPONIBLES
CGRC - C1
Redes WAN
Enlaces asncronos dial in:
RTB
Servidor de
Autentificacin
LAS CONEXIONES DIAL-IN ASINCRONAS LE PERMITEN A LOS
USUARIOS ACCESO A RECURSOS COMPARTIDOS.
CGRC - C1
Redes WAN
Enlaces Dial on Demand:
RTB o RDSI
LA CONEXIN SE REALIZA SOLO CUANDO HAY TRAFICO CON
DESTINO A OTRAS REDES
CGRC - C1
Redes WAN
Protocolos de encapsulacin WAN
PPP, SLIP,ARAP,CSLIP
Dialup/Dedicado
Dedicado
Punto a Punto
RTB
Cisco HDLC, PPP, LAPB
X.25 -LAPB, Frame Relay-ietf
Red de Paquetes
Red de Circuitos
CGRC - C1
X.25, F.R, ISDN
ISDN Canal D - LAPD
ISDN Canal B - PPP, X.25, F.R
Redes WAN
Repasos de interfaces
- LOS PUERTOS DE LOS ROUTERS SON MULTI-INTERFACE.
- LA DIFERENCIA DE INTERFACE LA HACE EL CABLE CONECTADO.
- EN G.703 LOS CABLES SON DB9.
- EXISTEN CABLES DTE Y DCE (El router puede generar clock)
- LA VELOCIDAD MXIMA PARA INTERFACES V.35 ES 2 Mbps.
- A NIVEL DE RED, EL ROUTER PUEDE ACTUAR COMO DCE o DTE
(REDES X.25 o FRAME RELAY).
CGRC - C1
Agenda
Introduccin al Internetworking.
Enrutamiento - Nivel de Red.
Operaciones bsicas en routers.
Configuracin de routers
Introduccin al TCP/IP
Configuracin de ruteo IP
Redes WAN
Frame Relay
Internet
Frame Relay
Aspectos bsicos:
Switch F.R
DCE o RED
Router
DTE o USER
Aqu trabaja
el Frame Relay
del Router
Las conexiones son definidas por los circuitos virtuales (PVC-DLCI )
CGRC - C1
Frame Relay
Aspectos bsicos:
Local Loop
= E1
LMI
16=active
17=active
Local Loop
= 64 kbps
DLCI=16
Local Loop
= 64 kbps
DLCI=17
DLCI = Data Link Connection Identifier, identifica el circuito lgico entre
el Router y el Switch Frame Relay de la red.
LM I = Local Management Interface, sealizacin estandar entre e router
y el switch F.R. Es responsable de manejar la conexin y mantener el
estado de los circuitos lgicos.
CGRC - C1
Frame Relay
Aspectos bsicos:
Estoy congestionado
BECN
FECN
E1 = 2048 Kbps
Bc = 32 Kbps
CIR = 64 kbps
CGRC - C1
Frame Relay
Aspectos bsicos - conceptos:
CIR (Commited information rate)
La velocidad (ancho de banda) , en bits por segundo, que la red acuerda transferir
los datos. Esta velocidad est usualmente promediada sobre un periodo de tiempo,
conocido como el Tc (commited rate measurement interval).
Oversubscription (saturacin).
Cuando la suma de todos los CIRs en todos los DLCIs excede la velocidad de
acceso de la lnea. Cuando existe oversubscription los paquetes son perdidos.
Puede ocurrir cuando la suma de todos los CIRs + Be excede la velocidad de
acceso de la lnea.
Commited Burst (Bc)
El mximo nmero de bits que la red F.R acuerda transferir durante el intervalo de
tiempo Tc. Por ejemplo, si el Tc es de 2 segundos y el CIR es de 32 kbps, el Bc
es 64Kb.
CGRC - C1
Frame Relay
Aspectos bsicos - conceptos:
Excess Burst.
El mximo nmero de bits no acordados que la red intenta transferir por encima del
CIR. Tpicamente es configurado a la velocidad del puerto de acceso de la lnea.
FECN - Forward Explicit Congestion Notification.
Cuando el switch F.R reconoce congestin en la red, enva un paquete FECN al
dispositivo destino (router) indicando que una congestin a ocurrido.
BECN - Backward Explicit Congestion Notification
Cuando el switch F.R reconoce congestin en la red, enva un paquete BECN al
router origen indicandole que debe reducir la velocidad de transmisin de sus
paquetes. (Los routers con versin 11.2 entienden paquetes BECN).
DE - Discard Eligibility Indicator
Cuando el router detecta congestin y continua enviando paquetes, el switch
F.R puede descartar los paquetes configurando el bit DE. Normalmente es
configurado cuando existe un estado de oversubscription.
CGRC - C1
Frame Relay
Operacin de un enlace F.R.
DLCI = 400
R1
Peticin de estado
DLCI=200 activo
Red
Frame
Relay
DLCI = 200
R2
Peticin de estado
DLCI=400 activo
Yo soy 129.30.40.1 usando el DLCI=400, quien eres t?
CGRC - C1
Frame Relay
Configuracin de un enlace Frame Relay
DLCI = 400
R1
interface Serial 1
ip address 20.31.0.1
255.255.255.0
encapsulation frame-relay ietf
frame-relay lmi-type ccitt
bandwidth 64
!
CGRC - C1
Red
Frame
Relay
DLCI = 200
R2
interface Serial 1
ip address 20.31.0.2
255.255.255.0
encapsulation frame-relay ietf
frame-relay lmi-type ccitt
bandwidth 64
!
Frame Relay
Configuracin de un enlace Frame Relay
R1
DLCI = 110
DLCI=110
20.31.0.1/24
interface Serial 0
ip address 20.31.0.1 255.255.255.0
encapsulation frame-relay ietf
frame-relay lmi-type ccitt
bandwidth 64
frame-relay map ip 20.31.0.2 broadcast
ietf
!
CGRC - C1
Red
Frame
Relay
DLCI = 220 R2
DLCI=220
20.31.0.2/24
interface Serial 0
ip address 20.31.0.2 255.255.255.0
encapsulation frame-relay ietf
frame-relay lmi-type ccitt
bandwidth 64
frame-relay map ip 20.31.0.2 broadcast ietf
!
Frame Relay
Verificando la operacin de Frame Relay
Router#
show interfaces serial
Muestra la informacin del estado
de los DLCI y LMIs
Router#
show frame-relay pvc
Muestra la estadstica de trfico de
los circuitos virtuales.
Router#
show frame-relay map
Muestra el mapa de rutas
(estticos y dinmicos)
Router#
show frame-relay lmi
Muestra la informacin del LMI.
CGRC - C1
Frame Relay
Ejercicios Frame Relay
Interlan
Red: 172.18.15.0 255.255.255.0
Interlan
Red: 200.20.10.192 255.255.255.192
CGRC - C1
Frame Relay
Ejercicios Frame Relay
red A
Red
Frame
Relay
red C
red B
RED A = 192.168.128.0 255.255.255.192
RED B = 230.15.20.192 255.255.255.192
RED C = 172.16.0.0 255.255.0.0
CGRC - C1
Frame Relay
Configurando sub-interfaces:
interface Serial0
no ip address
encapsulation frame-relay IETF
bandwidth 128
frame-relay lmi-type q933a
!
interface Serial0.1 point-to-point
ip address 10.15.0.1 255.255.255.0
bandwidth 64
frame-relay interface-dlci 16
!
interface Serial0.2 point-to-point
ip address 10.16.0.1 255.255.255.0
bandwidth 64
frame-relay interface-dlci 17
!
CGRC - C1
Serial 0.1
Red F.R
Serial 0.2
Router# show interface serial 0.1
Serial 0.1 is ip, line protocol is up
:::::::::
Encapsulation FRAME-RELAY
Agenda
Introduccin al Internetworking.
Enrutamiento - Nivel de Red.
Operaciones bsicas en routers.
Configuracin de routers
Introduccin al TCP/IP
Configuracin de ruteo IP
Redes WAN
Frame Relay
Internet
Internet
Introduccin
- INTERCONECTA A REDES DE TODOS LOS PAISES.
- HACE USO DEL CONCEPTO DE SISTEMAS AUTNOMOS
- EL PROTOCOLO DE ENRUTAMIENTO ES BGP4
- SERVICIOS BASADOS EN ARQUITECTURA CLIENTE
SERVIDOR.
- USA DIRECCIONES IP LEGALES, UNICAS EN EL MUNDO.
CGRC - C1
Internet
Enrutamiento
AS 1
BGP
AS 3
AS 2
BGP
IBGP
El enrutamiento se efecta a travs de Sistemas Autnomos
CGRC - C1
Internet
Servicios
DNS
Permite el intercambio de direcciones IP a nombres fcilmente reconocibles.
El servicio DNS (servidores DNS) estn interconectados por niveles de
autoriodad.
Root
Servers
NIC .AR
Argentina
NIC .ES
UniRed
Espaa
1
2
NIC .PE
CGRC - C1
Internet
Servicios
CORREO
Permite el intercambio de mensajes entre servidores de correo y usuarios
finales.
NEWS
Servicio para grupos de noticias, foros sobre temas diversos donde los
usuarios intercambian ideas.
FTP
Servicio para el intercambio de paquetes de software, consume mayor ancho
de banda.
CGRC - C1
Internet
Diagnstico de problemas
Desde el router:
- Para probar el enlace, hacer pings al router remoto.
- Para probar enrutamiento (hasta el router), hacer pings
a los servidores del proveedor (UniRed) - 206.138.105.37
- Para probar salida a Internet, hacer pings y/o traceroutes
a una direccin IP externa, ejemplo: 208.218.3.1 , 207.200.75.200
Desde la estacin:
- Realizar las mismas pruebas para probar enrutamiento.
- Probar resolucin de nombres (DNS) con el comando: nslookup,
ejemplo: c:> nslookup www.disney.com
CGRC - C1