This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
CCNA Lab – Frame Relay en Routers Cisco en topología hub-and-spoke
Posted in cisco, Networking, Sistemas, Utilidades, virtualización on Nov 2nd, 2010
Fuente: Cisco Networking Academia – Supplemental Activities for CCNA – Configuring Frame-
Relay
ConfiguringFrameRelay.zip : ConfiguringFrameRelay
CCNA Lab – Frame Relay en Routers Cisco en topología hub-and-spoke
Serial0/0/0.103 (up): point-to-point dlci, dlci 103, broadcast, status defined, active
Serial0/0/0.104 (up): point-to-point dlci, dlci 104, broadcast, status defined, active
Ver los LMI
R1# show frame-relay lmi
…
Ver los PVC
R1# show frame-relay pvc
4
Configuración Frame relayEl primer paso dentro de la configuración de Frame-Relay es el de la activaciónde la interfaz que conecta a dicho router con una CSU/DSU, conectada a su vez con el switch del proveedor.Además de la dirección IP correspondiente se debe establecer el tipo de encapsulación:
•IETF para equipos No cisco.
•Cisco para equipos cisco, en el caso de elegir esta encapsulación no hará falta especificarla.
Router(config)#interface Serial 1Router(config-if)#ip address [direction IP+máscara]Router(config-if)#encapsulation frame-relay [cisco/ietf]Router(config-if)#bandwidth [valor del ancho de banda en Kbps]Si fuera necesario, según la versión de IOS, configurar LMI:
dlci: numero de dlci de la interfaz local, valor entre el 16 y 1007.
Configuración estática de Frame-RelayCuando un router no soporta ARP inverso, o cuando se quiere controlar el tráfico sobre los circuitos virtuales se debe definir estáticamente una tabla de dirección remota y su DLCI.
A partir de la configuración básica se agrega le mapeo estático:Router(config-if)#frame-relay map [protocolo][dirección destino][DLCI local][broadcast][ietf/cisco][payload-compress paket-by-paket]
5
Donde se define el tipo de protocolo, la dirección IP del destino y el DLCI local. Con dispositivos Cisco no es necesaria la configuración de la encapsulación, mientras que con dispositivos no Cisco se debe utilizar IETF. Los parámetros restantes son opcionales y habilitan el envío de difusiones y la compresión de sobrecarga.
configuración subinterfaces
Al establecer una conexión con un CSU/DSU se pueden abastecer varios PVC en una sola conexión física. Para este fin es necesario configurar subinterfaces que actúen como interfaces lógicas conectadas a los PVC.
Una subinterfaz no tiene forma predeterminada de conexión y puede configurase como:
Punto a punto: cada subinterfaz establece una conexión PVC directa punto a punto con su correspondiente router remoto. El tráfico de actualización de enrutamiento NO está sujeto a la regla del horizonte dividido.
Multipunto: una subinterfaz establece múltiples conexiones PVC a través de la nube Frame-Relay a varias interfaces físicas o subinterfaces de los routers remotos. El tráfico de actualización de enrutamiento está sujeto a la regla del horizonte dividido.Proceso de configuración de subinterfaces: Seleccione la interfaz en la que creará las subinterfaces y verifique la NO existencia de direccionamiento de capa tres. Configure la encapsulación Frame-Relay correspondiente en dicha interfaz. Seleccione la subinterfaz y si se utilizará como punto a punto o multipunto, rango de 0-4.294.967.295. Recuerde que no tienen valor predeterminado. Configure el valor de DLCI local en la subinterfaz, rango de 16-1007.
Comandos de configuración de subinterfaces:
Router(config)#interface Serial [número]Router(config-if)#no ip addressRouter(config-if)#encapsulation frame-relayRouter(config-if)#exitRouter(config)#interface serial [número.número de subinterfaz]
show interfcace serial nº pto: Muestra la información relativa a los DLCIs usados en la interface. show frame-relay traffic: Muestra las estadísticas globales de Frame Relay desde la última reinicialización del router. clear frame-relay inarp: Borra los mapeos Frame Relay creados dinámicamente. show frame-relay lmi: Muestra las estadísticas sobre la LMI (Local Management Interface) show frame-relay map: Muestra las entradas de mapeo actuales y la info sobre las conexiones. show frame-relay pvc: Muestra las estadísticas sobre los circuitos virtuales permanentes(PVCs) para las interfaces Frame Relay.
Solución de problemas
debug frame-relay: Muestra información sobre los paquetes recibidos en la interface Frame Relay. debug frame-relay lmi: Muestra información de los paquetes LMI intercambiados entre el router y el proveedor del servicio.
7
CONFIGURACION DE FRAME RELAY CON SUBINTERFACES PUNTO A PUNTO
Cuando configuramos una Frame Relay con subinterface se debe de asociar el DLCI o DLCI's en cada interface usando el siguiente comando.
Router (config) # interface serial [slot_#/] port_#. subinterface_# point-to-point|multipoint
RouterB(config-if)# ip address 192.168.2.2 255.255.255.0
RouterB(config-if)# no shutdown
RouterB(config-if)# exit
RouterB(config)# interface ethernet 0
RouterB(config-if)# ip address 172.17.1.1 255.255.255.0
RouterB(config-if)# no shutdown
RouterB(config-if)# exit
Lo único que cambia entre la configuración del router a y router B son sus direcciones privadas de sus redes y las IP's que se unen al router A, que como se ve, es diferente a la IP del router B, ya que se trata de diferentes subredes.
10
Configuring Frame Relay in Point-to-Point topology on Cisco IOS.Posted on May 14, 2010
Configuring Frame Relay on Cisco Systems router is not so difficult and
takes several minutes. My virtual lab consists of Dynamips network
simulator running on Ubuntu. Here is the topology we will use:
In Frame Relay Point-to-Point topology every pair of routers have their
own subnet (usually /30). It is not a good solution if you are running out of
IP addresses in your network – in every subnet used for connecting routers,
2 of 4 available addresses are wasted for network address and broadcast
address.
However configuring Frame Relay with point-to-point sub-interfaces avoids
problem of split horizon rule that can appear when using distance vector
routing protocols such as RIP orEIGRP.
Synopsis:
What we are going to do is configure routers R1, R2 and R3 with point-to-
point sub-interfaces. We will use inverse ARP for IP to DLCI mapping. We
will also configure Frame Relay switch (FRSWITCH). So, let’s get this
***El resto de los Router's (R1,R2 y R3) quedan igual a la configuracion anterior, o si queremos agregamos los mapas de frame-relay manualmente de la siguiente manera en cada una de las interfaces de los Router's:
R4(config-router)#network 192.168.4.0 0.0.0.255 area 0
R4(config-router)#neighbor 10.0.0.1
With red we have highlighted OSPF priority configuration, we have done that because we
want R1 to be Designated Router. In this topology where all Routers are in the same
subnet we need a designated router for this subnet, PVC with all routers has only R1 that’s
why we have configured OSPF priority 0 to other routers, with priority 0 Router will not be a
DR or BDR (Backup Designated Router). Now it’s time to see the results we got. In next
screenshots are shown Neighbors relationships formed, routes learned by R2 and Ping
results from R2 to R4.
Neighbors on R1 and R2
50
IP routes on R2
Ping Results from R2 to R4
From the pictures everything is fine except Ping from R2 to R4 loopback interface. If you look in Routing Table you see that next hop to go to 192.168.4.1 is Router R4 (10.0.0.4), but there is no any PVC between these two routers and that’s why ping to R4 failed. If we add Frame Relay mappings on R2, R3 and R4 to each other, ping will work fine. In next configs we added mappings. R2
R2(config)#interface Serial0/0.1 multipoint
R2(config-subif)#frame-relay map ip 10.0.0.3 1001
R2(config-subif)#frame-relay map ip 10.0.0.4 1001
R3
51
R3(config)#interface Serial0/0.1 multipoint
R3(config-subif)#frame-relay map ip 10.0.0.3 1001
R3(config-subif)#frame-relay map ip 10.0.0.4 1001
R4
R4(config)#interface Serial0/0.1 multipoint
R4(config-subif)#frame-relay map ip 10.0.0.3 1001
R4(config-subif)#frame-relay map ip 10.0.0.4 1001
And now the results:
Ping Results after adding Frame Relay mappings
Results are as expected by using Frame Relay mapping with the same DLCI that goes to
R1.
52
Point to Multipoint Frame Relay Topology
As you have already seen we will configure R1 interface as multipoint but R2 and R3 as
point-to-point. Note that by default Split Horizon Rule is in effect on interfaces and EIGRP
traffic between R2 Lan and R3 Lan would not be advertisted if we will not disable this rule
on R1 S0/0.1 subinterface. To get this working you have to do next configurations:
First we need to configure interfaces, subinterfaces, Frame Relay Encapsulation and Frame
Relay mapping for our Routers
53
R1
interface Loopback0
ip address 192.168.1.1 255.255.255.0
interface Serial0/0
no ip address
encapsulation frame-relay
interface Serial0/0.1 multipoint
ip address 192.168.0.1 255.255.255.248
no ip split-horizon eigrp 1
frame-relay map ip 192.168.0.2 102 broadcast
frame-relay map ip 192.168.0.3 103 broadcast
R2
interface Loopback0
ip address 192.168.2.1 255.255.255.0
interface Serial0/0
no ip address
encapsulation frame-relay
54
interface Serial0/0.1 point-to-point
ip address 192.168.0.2 255.255.255.248
frame-relay interface-dlci 201
R3
interface Loopback0
ip address 192.168.3.1 255.255.255.0
interface Serial0/0
no ip address
encapsulation frame-relay
interface Serial0/0.1 point-to-point
ip address 192.168.0.3 255.255.255.248
frame-relay interface-dlci 301
Now we can configure EIGRP to route traffic between Routing Devices
R1
router eigrp 1
network 192.168.0.0 0.0.0.7
network 192.168.1.0
no auto-summary
R2
55
router eigrp 1
network 192.168.0.0 0.0.0.7
network 192.168.2.0
no auto-summary
R3
router eigrp 1
network 192.168.0.0 0.0.0.7
network 192.168.3.0
no auto-summary
Let’s check Routing tables on R2, R3 and to verify ping between R2 and R3