SlideShare a Scribd company logo
1 of 51
Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018
VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING -
VRFVRF
Protocolo deProtocolo de
Comunicaciones:Comunicaciones:
MPLSMPLS
Daniel Díaz Ataucuri
Profesor Titular de Telecomunicaciones UNI/UNMSM
Director de Investigación y Desarrollo Tecnológico del INICTEL-UNI
ddiaz1610@gmail.com/ddiaz@inictel-uni.edu.pe
Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018
VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING -
VRFVRF
VIRTUAL ROUTING AND
FORWARDING-VRF
Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018
VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING -
VRFVRF
VIRTUAL ROUTING AND FORWARDING
VRF
VRF
VRF
Interfaz física
o lógica
Interfaz física
o lógica
Virtual Routing and Forwarding-VRF es una técnica de virtualizar las
tablas de enrutamiento de un router con el objetivo de que un Proveedor
de Servicios de Internet-ISP separe sus clientes.
Cisco hace suyo VRF
Juniper lo denomina
“routing instances”
Linux denomina
“network namespaces”
Huawei denomina “VPN Routing”
Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018
VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING -
VRFVRF
VIRTUAL ROUTING AND FORWARDING
192.10.20.1/30
60.60.60.1/30
Fa 0/0 Fa 2/0
Fa 1/0
10.10.10.1.1/30
C 192.10.20.0 is directly connected, fastethernet0/0
C 10.10.10.0 is directly connected, fastethernet0/1
C 60.60.60.0 is directly connected, fastethernet1/0
Tabla de enrutamiento global
192.10.20.1/30
60.60.60.1/30
10.10.10.1.1/30192.70.80.1/30
192.70.80.1/30
192.70.80.1/30VRF
VRF
VRF
Tabla
VRF
Tabla
VRF
Tabla
VRF
Fa 0/0 Fa 2/0
Fa 1/0
C 192.70.80.0 is directly connected, fastethernet2/0
Tabla de enrutamiento vrf celeste
C 192.70.80.0 is directly connected, fastethernet0/0
Tabla de enrutamiento vrf rojo
C 192.70.80.0 is directly connected, fastethernet1/0
Tabla de enrutamiento vrf amarillo
Los VRF emplean esencialmente el mismo concepto que VLAN y trunking, pero en la capa tres.
Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018
VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING -
VRFVRF
VIRTUAL ROUTING AND FORWARDING
192.10.20.1/30
60.60.60.1/30
10.10.10.1.1/30192.70.80.1/30
192.70.80.1/30
192.70.80.1/30VRF
VRF
VRF
Tabla
VRF
Tabla
VRF
Tabla
VRF
Fa 0/0 Fa 2/0
Fa 1/0
C 192.70.80.0 is directly connected, fastethernet2/0
Tabla de enrutamiento vrf celeste
C 192.70.80.0 is directly connected, fastethernet0/0
Tabla de enrutamiento vrf rojo
C 192.70.80.0 is directly connected, fastethernet1/0
Tabla de enrutamiento vrf amarillo
Pasos a seguir:
Definir cada vrf
Asignar un valor Router Distinguisher-rd
Asociar las interfaces a cada vrf
http://www.redescisco.net/sitio/2017/02/15/configuracion-basica-de-vrf/
Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018
VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING -
VRFVRF
VIRTUAL ROUTING AND FORWARDING: Caso_01 CISCO
192.10.20.1/30
60.60.60.1/30
10.10.10.1.1/30192.70.80.1/30
192.70.80.1/30
192.70.80.1/30VRF
VRF
VRF
Tabla
VRF
Tabla
VRF
Tabla
VRF
Fa 0/0 Fa 2/0
Fa 1/0
C 192.70.80.0 is directly connected, fastethernet2/0
Tabla de enrutamiento vrf celeste
C 192.70.80.0 is directly connected, fastethernet0/0
Tabla de enrutamiento vrf rojo
C 192.70.80.0 is directly connected, fastethernet1/0
Tabla de enrutamiento vrf amarillo
Pasos a seguir:
Definir cada vrf
Asignar un valor Router Distinguisher-rd
Asociar las interfaces a cada vrf
R1(config)#ip vrf celeste
R1(config-vrf)#rd 10:1
R1(config-vrf)#exit
R1(config)#ip vrf rojo
R1(config-vrf)#rd 10:2
R1(config-vrf)#exit
R1(config)#ip vrf amarillo
R1(config-vrf)#rd 10:3
R1(config-vrf)#exit
R1(config)#
La numeración es referencial.
Permite al dispositivo distinguir qué
interfaz y que ruta pertenece a qué
dominio de enrutamiento interno.
In Cisco terminology, deployment of VRFs without MPLS is
known as VRF lite,
Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018
VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING -
VRFVRF
VIRTUAL ROUTING AND FORWARDING: Caso_01 CISCO
192.10.20.1/30
60.60.60.1/30
10.10.10.1.1/30192.70.80.1/30
192.70.80.1/30
192.70.80.1/30VRF
VRF
VRF
Tabla
VRF
Tabla
VRF
Tabla
VRF
Fa 0/0 Fa 2/0
Fa 1/0
C 192.70.80.0 is directly connected, fastethernet2/0
Tabla de enrutamiento vrf celeste
C 192.70.80.0 is directly connected, fastethernet0/0
Tabla de enrutamiento vrf rojo
C 192.70.80.0 is directly connected, fastethernet1/0
Tabla de enrutamiento vrf amarillo
Pasos a seguir:
Definir cada vrf
Asignar un valor Router Distinguisher-rd
Asociar las interfaces a cada vrf
R1(config)#interface fastethernet2/0
R1(config-if)#ip vrf forwarding celeste
R1(config-if)#ip address 192.70.80.1 255.255.255.252
R1(config-if)#no shutdown
R1(config)#interface fastethernet0/0
R1(config-if)#ip vrf forwarding rojo
R1(config-if)#ip address 192.70.80.1 255.255.255.252
R1(config-if)#no shutdown
Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018
VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING -
VRFVRF
VIRTUAL ROUTING AND FORWARDING: Caso_01 CISCO
R1(config)#interface fastethernet1/0
R1(config-if)#ip vrf forwarding amarillo
R1(config-if)#ip address 192.70.80.1 255.255.255.252
R1(config-if)#no shutdown
192.10.20.1/30
60.60.60.1/30
10.10.10.1.1/30192.70.80.1/30
192.70.80.1/30
192.70.80.1/30VRF
VRF
VRF
Tabla
VRF
Tabla
VRF
Tabla
VRF
Fa 0/0 Fa 2/0
Fa 1/0
C 192.70.80.0 is directly connected, fastethernet2/0
Tabla de enrutamiento vrf celeste
C 192.70.80.0 is directly connected, fastethernet0/0
Tabla de enrutamiento vrf rojo
C 192.70.80.0 is directly connected, fastethernet1/0
Tabla de enrutamiento vrf amarillo
Pasos a seguir:
Definir cada vrf
Asignar un valor Router Distinguisher-rd
Asociar las interfaces a cada vrf
Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018
VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING -
VRFVRF
VIRTUAL ROUTING AND FORWARDING: Caso_01 CISCO
R1#show ip route
R1#
R1#show ip route vrf celeste
Routing Table: celeste
192.70.80.0/30 is subnetted, 1 subnets
C 192.70.80.0 is directly connected, FastEthernet2/0
R1#
R1#show ip route vrf rojo
Routing Table: rojo
192.70.80.0/30 is subnetted, 1 subnets
C 192.70.80.0 is directly connected, FastEthernet0/0
R1#
R1#show ip route vrf amarillo
Routing Table: amarillo
192.70.80.0/30 is subnetted, 1 subnets
C 192.70.80.0 is directly connected, FastEthernet1/0
R1#
Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018
VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING -
VRFVRF
VIRTUAL ROUTING AND FORWARDING: Caso_02 CISCO
EMPRESA A
EMPRESA B
210.16.0.0/24
210.16.1.0/24
210.16.2.0/24
.2
.2
.2
.1
.1
.1
210.16.0.0/24
210.16.1.0/24
210.16.2.0/24
.2
.2
.2
.1
.1
.1
200.200.0.0/24
200.200.1.0/24
200.200.2.0/24
.20
.20
.20
.1
.1
.1
200.200.0.0/24
200.200.1.0/24
200.200.2.0/24
.21
.21
.21
.1
.1
.1
20.20.20.4/30
20.20.20.0/30
20.20.20.0/30
20.20.20.8/30
20.20.20.8/30
.2
.2
.1
.1
.5 .6
.9
.10
.10
.9
R1
R2
R5
R6
R3 R4
f0/0
f2/0
f1/1
f1/0
f1/0
f0/0
f2/0
f1/1
f0/0
f1/0
f1/1 f2/0
f1/1
f0/0
f0/0
f1/0
f1/0
f1/1
f2/0
f0/0
f1/1
f2/0
Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018
VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING -
VRFVRF
VIRTUAL ROUTING AND FORWARDING: Caso_02 CISCO
210.16.0.0/24
210.16.1.0/24
210.16.2.0/24
.2
.2
.2
.1
.1
.1
20.20.20.0/30
.2
.1
R1
R3
f0/0
f2/0
f1/1
f1/0
f0/0
R1(config)#interface fastethernet2/0
R1(config-if)#ip address 210.16.0.1 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#interface fastethernet1/0
R1(config-if)#ip address 210.16.1.1 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#interface fastethernet1/1
R1(config-if)#ip address 210.16.2.1 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#interface fastethernet0/0
R1(config-if)#ip address 20.20.20.2 255.255.255.252
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#ip route 0.0.0.0 0.0.0.0 20.20.20.1
Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018
VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING -
VRFVRF
VIRTUAL ROUTING AND FORWARDING: Caso_02 CISCO
210.16.0.0/24
210.16.1.0/24
210.16.2.0/24
.2
.2
.2
.1
.1
.1
20.20.20.0/30
.2
.1
R2
R3
f1/0
f0/0
f2/0
f1/1
f1/0
R2(config)#interface fastethernet0/0
R2(config-if)#ip address 210.16.0.1 255.255.255.0
R2(config-if)#no shutdown
R2(config-if)#exit
R2(config)#interface fastethernet1/1
R2(config-if)#ip address 210.16.1.1 255.255.255.0
R2(config-if)#no shutdown
R2(config-if)#exit
R2(config)#interface fastethernet2/0
R2(config-if)#ip address 210.16.2.1 255.255.255.0
R2(config-if)#no shutdown
R2(config-if)#exit
R2(config)#interface fastethernet1/0
R2(config-if)#ip address 20.20.20.2 255.255.255.252
R2(config-if)#no shutdown
R2(config-if)#exit
R2(config)#ip route 0.0.0.0 0.0.0.0 20.20.20.1
Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018
VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING -
VRFVRF
VIRTUAL ROUTING AND FORWARDING: Caso_02 CISCO
200.200.0.0/24
200.200.1.0/24
200.200.2.0/24
.20
.20
.20
.1
.1
.1
20.20.20.8/30
.9
.10
R5
R4
f1/1
f0/0
f1/0
f1/1
f2/0
R5(config)#interface fastethernet1/0
R5(config-if)#ip address 200.200.0.1 255.255.255.0
R5(config-if)#no shutdown
R5(config-if)#exit
R5(config)#interface fastethernet1/1
R5(config-if)#ip address 200.200.1.1 255.255.255.0
R5(config-if)#no shutdown
R5(config-if)#exit
R5(config)#interface fastethernet2/0
R5(config-if)#ip address 200.200.2.1 255.255.255.0
R5(config-if)#no shutdown
R5(config-if)#exit
R5(config)#interface fastethernet0/0
R5(config-if)#ip address 20.20.20.10 255.255.255.252
R5(config-if)#no shutdown
R5(config-if)#exit
R5(config)#ip route 0.0.0.0 0.0.0.0 20.20.20.9
Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018
VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING -
VRFVRF
VIRTUAL ROUTING AND FORWARDING: Caso_02 CISCO
200.200.0.0/24
200.200.1.0/24
200.200.2.0/24
.21
.21
.21
.1
.1
.1.10
.9
R6
R4
f0/0
f1/0
f0/0
f1/1
f2/0
R6(config)#interface fastethernet0/0
R6(config-if)#ip address 200.200.0.1 255.255.255.0
R6(config-if)#no shutdown
R6(config-if)#exit
R6(config)#interface fastethernet1/1
R6(config-if)#ip address 200.200.1.1 255.255.255.0
R6(config-if)#no shutdown
R6(config-if)#exit
R6(config)#interface fastethernet2/0
R6(config-if)#ip address 200.200.2.1 255.255.255.0
R6(config-if)#no shutdown
R6(config-if)#exit
R6(config)#interface fastethernet1/0
R6(config-if)#ip address 20.20.20.10 255.255.255.252
R6(config-if)#no shutdown
R6(config-if)#exit
R6(config)#ip route 0.0.0.0 0.0.0.0 20.20.20.9
Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018
VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING -
VRFVRF
VIRTUAL ROUTING AND FORWARDING: Caso_02 CISCO
R3(config)#ip vrf empresa_a
R3(config-vrf)#rd 10:1
R3(config-vrf)#exit
R3(config)#ip vrf empresa_b
R3(config-vrf)#rd 10:2
R3(config-vrf)#exit
R3(config)#interface fastethernet0/0
R3(config-if)#ip vrf forwarding empresa_a
R3(config-if)#ip address 20.20.20.1 255.255.255.252
R3(config-if)#no shutdown
R3(config-if)#exit
R3(config)#interface fastethernet1/0
R3(config-if)#ip vrf forwarding empresa_b
R3(config-if)#ip address 20.20.20.1 255.255.255.252
R3(config-if)#no shutdown
R3(config-if)#exit
EMPRESA A
EMPRESA B
20.20.20.4/30
20.20.20.0/30
20.20.20.0/30
20.20.20.8/30
20.20.20.8/30
.2
.2
.1
.1
.5 .6
.9
.10
.10
.9
R1
R2
R5
R6
R3 R4
Tabla VRF
EMPR_A
Tabla VRF
EMPR_B
Tabla VRF
EMPR_A
Tabla VRF
EMPR_B
f0/0
f1/0
f1/1 f2/0
f1/1
f0/0
Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018
VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING -
VRFVRF
VIRTUAL ROUTING AND FORWARDING: Caso_02 CISCO
R3(config)#ip route vrf empresa_a 210.16.0.0 255.255.255.0 20.20.20.2
R3(config)#ip route vrf empresa_a 210.16.1.0 255.255.255.0 20.20.20.2
R3(config)#ip route vrf empresa_a 210.16.2.0 255.255.255.0 20.20.20.2
R3(config)#ip route vrf empresa_a 200.200.0.0 255.255.255.0 20.20.20.6
R3(config)#ip route vrf empresa_a 200.200.1.0 255.255.255.0 20.20.20.6
R3(config)#ip route vrf empresa_a 200.200.2.0 255.255.255.0 20.20.20.6
R3(config)#
R3(config)#ip route vrf empresa_b 210.16.0.0 255.255.255.0 20.20.20.2
R3(config)#ip route vrf empresa_b 210.16.1.0 255.255.255.0 20.20.20.2
R3(config)#ip route vrf empresa_b 210.16.2.0 255.255.255.0 20.20.20.2
R3(config)#ip route vrf empresa_b 200.200.0.0 255.255.255.0 20.20.20.6
R3(config)#ip route vrf empresa_b 200.200.1.0 255.255.255.0 20.20.20.6
R3(config)#ip route vrf empresa_b 200.200.2.0 255.255.255.0 20.20.20.6
EMPRESA A
EMPRESA B
20.20.20.4/30
20.20.20.0/30
20.20.20.0/30
20.20.20.8/30
20.20.20.8/30
.2
.2
.1
.1
.5 .6
.9
.10
.10
.9
R1
R2
R5
R6
R3 R4
Tabla VRF
EMPR_A
Tabla VRF
EMPR_B
Tabla VRF
EMPR_A
Tabla VRF
EMPR_B
f0/0
f1/0
f1/1 f2/0
f1/1
f0/0
Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018
VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING -
VRFVRF
VIRTUAL ROUTING AND FORWARDING: Caso_02 CISCO
R3(config)#interface fastethernet1/1
R3(config-if)#no shutdown
R3(config-if)#exit
R3(config)#interface fastethernet1/1.1
R3(config-if)#ip vrf forwarding empresa_a
R3(config-if)#encapsulation dot1q 1
R3(config-if)#ip address 20.20.20.5 255.255.255.252
R3(config-if)#no shutdown
R3(config-if)#exit
R3(config)#
R3(config)#interface fastethernet1/1.2
R3(config-if)#ip vrf forwarding empresa_b
R3(config-if)#encapsulation dot1q 2
R3(config-if)#ip address 20.20.20.5 255.255.255.252
R3(config-if)#no shutdown
R3(config-if)#exit
EMPRESA A
EMPRESA B
20.20.20.4/30
20.20.20.0/30
20.20.20.0/30
20.20.20.8/30
20.20.20.8/30
.2
.2
.1
.1
.5 .6
.9
.10
.10
.9
R1
R2
R5
R6
R3 R4
Tabla VRF
EMPR_A
Tabla VRF
EMPR_B
Tabla VRF
EMPR_A
Tabla VRF
EMPR_B
f0/0
f1/0
f1/1 f2/0
f1/1
f0/0
20.20.20.4/30
f1/1 f2/0
.5 .6
Subinterfaz fa1/1.1 Subinterfaz fa2/0.1
Subinterfaz fa1/1.2 Subinterfaz fa2/0.2
R3 R4
Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018
VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING -
VRFVRF
VIRTUAL ROUTING AND FORWARDING: Caso_02 CISCO
R4(config)#ip vrf empresa_a
R4(config-vrf)#rd 10:1
R4(config-vrf)#exit
R4(config)#ip vrf empresa_b
R4(config-vrf)#rd 10:2
R4(config-vrf)#exit
R4(config)#interface fastethernet1/1
R4(config-if)#ip vrf forwarding empresa_a
R4(config-if)#ip address 20.20.20.9 255.255.255.252
R4(config-if)#no shutdown
R4(config-if)#exit
R4(config)#interface fastethernet0/0
R4(config-if)#ip vrf forwarding empresa_b
R4(config-if)#ip address 20.20.20.9 255.255.255.252
R4(config-if)#no shutdown
R4(config-if)#exit
EMPRESA A
EMPRESA B
20.20.20.4/30
20.20.20.0/30
20.20.20.0/30
20.20.20.8/30
20.20.20.8/30
.2
.2
.1
.1
.5 .6
.9
.10
.10
.9
R1
R2
R5
R6
R3 R4
Tabla VRF
EMPR_A
Tabla VRF
EMPR_B
Tabla VRF
EMPR_A
Tabla VRF
EMPR_B
f0/0
f1/0
f1/1 f2/0
f1/1
f0/0
Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018
VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING -
VRFVRF
R4(config)#ip route vrf empresa_a 210.16.0.0 255.255.255.0 20.20.20.5
R4(config)#ip route vrf empresa_a 210.16.1.0 255.255.255.0 20.20.20.5
R4(config)#ip route vrf empresa_a 210.16.2.0 255.255.255.0 20.20.20.5
R4(config)#ip route vrf empresa_a 200.200.0.0 255.255.255.0 20.20.20.10
R4(config)#ip route vrf empresa_a 200.200.1.0 255.255.255.0 20.20.20.10
R4(config)#ip route vrf empresa_a 200.200.2.0 255.255.255.0 20.20.20.10
R4(config)#
R4(config)#ip route vrf empresa_b 210.16.0.0 255.255.255.0 20.20.20.5
R4(config)#ip route vrf empresa_b 210.16.1.0 255.255.255.0 20.20.20.5
R4(config)#ip route vrf empresa_b 210.16.2.0 255.255.255.0 20.20.20.5
R4(config)#ip route vrf empresa_b 200.200.0.0 255.255.255.0 20.20.20.10
R4(config)#ip route vrf empresa_b 200.200.1.0 255.255.255.0 20.20.20.10
R4(config)#ip route vrf empresa_b 200.200.2.0 255.255.255.0 20.20.20.10
VIRTUAL ROUTING AND FORWARDING: Caso_02 CISCO
EMPRESA A
EMPRESA B
20.20.20.4/30
20.20.20.0/30
20.20.20.0/30
20.20.20.8/30
20.20.20.8/30
.2
.2
.1
.1
.5 .6
.9
.10
.10
.9
R1
R2
R5
R6
R3 R4
Tabla VRF
EMPR_A
Tabla VRF
EMPR_B
Tabla VRF
EMPR_A
Tabla VRF
EMPR_B
f0/0
f1/0
f1/1 f2/0
f1/1
f0/0
Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018
VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING -
VRFVRF
VIRTUAL ROUTING AND FORWARDING: Caso_02 CISCO
R4(config)#interface fastethernet2/0
R4(config-if)#no shutdown
R4(config-if)#exit
R4(config)#interface fastethernet2/0.1
R4(config-if)#ip vrf forwarding empresa_a
R4(config-if)#encapsulation dot1Q 1
R4(config-if)#ip address 20.20.20.6 255.255.255.252
R4(config-if)#no shutdown
R4(config-if)#exit
R4(config)#
R4(config)#interface fastethernet2/0.2
R4(config-if)#ip vrf forwarding empresa_b
R4(config-if)#encapsulation dot1Q 2
R4(config-if)#ip address 20.20.20.6 255.255.255.252
R4(config-if)#no shutdown
R4(config-if)#exit
EMPRESA A
EMPRESA B
20.20.20.4/30
20.20.20.0/30
20.20.20.0/30
20.20.20.8/30
20.20.20.8/30
.2
.2
.1
.1
.5 .6
.9
.10
.10
.9
R1
R2
R5
R6
R3 R4
Tabla VRF
EMPR_A
Tabla VRF
EMPR_B
Tabla VRF
EMPR_A
Tabla VRF
EMPR_B
f0/0
f1/0
f1/1 f2/0
f1/1
f0/0
20.20.20.4/30
f1/1 f2/0
.5 .6
Subinterfaz fa1/1.1 Subinterfaz fa2/0.1
Subinterfaz fa1/1.2 Subinterfaz fa2/0.2
R3 R4
Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018
VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING -
VRFVRF
R2#show ip route
20.0.0.0/30 is subnetted, 1 subnets
C 20.20.20.0 is directly connected, FastEthernet1/0
C 210.16.2.0/24 is directly connected, FastEthernet2/0
C 210.16.1.0/24 is directly connected, FastEthernet1/1
C 210.16.0.0/24 is directly connected, FastEthernet0/0
S* 0.0.0.0/0 [1/0] via 20.20.20.1
R2#
VIRTUAL ROUTING AND FORWARDING: Caso_02 CISCO
R1#show ip route
20.0.0.0/30 is subnetted, 1 subnets
C 20.20.20.0 is directly connected, FastEthernet0/0
C 210.16.2.0/24 is directly connected, FastEthernet1/1
C 210.16.1.0/24 is directly connected, FastEthernet1/0
C 210.16.0.0/24 is directly connected, FastEthernet2/0
S* 0.0.0.0/0 [1/0] via 20.20.20.1
R1#
Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018
VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING -
VRFVRF
R3#show ip route vrf empresa_b
Routing Table: empresa_b
S 200.200.0.0/24 [1/0] via 20.20.20.6
20.0.0.0/30 is subnetted, 2 subnets
C 20.20.20.4 is directly connected, FastEthernet1/1.2
C 20.20.20.0 is directly connected, FastEthernet1/0
S 200.200.1.0/24 [1/0] via 20.20.20.6
S 200.200.2.0/24 [1/0] via 20.20.20.6
S 210.16.2.0/24 [1/0] via 20.20.20.2
S 210.16.1.0/24 [1/0] via 20.20.20.2
S 210.16.0.0/24 [1/0] via 20.20.20.2
R3#
VIRTUAL ROUTING AND FORWARDING: Caso_02 CISCO
R3#show ip route vrf empresa_a
Routing Table: empresa_a
S 200.200.0.0/24 [1/0] via 20.20.20.6
20.0.0.0/30 is subnetted, 2 subnets
C 20.20.20.4 is directly connected, FastEthernet1/1.1
C 20.20.20.0 is directly connected, FastEthernet0/0
S 200.200.1.0/24 [1/0] via 20.20.20.6
S 200.200.2.0/24 [1/0] via 20.20.20.6
S 210.16.2.0/24 [1/0] via 20.20.20.2
S 210.16.1.0/24 [1/0] via 20.20.20.2
S 210.16.0.0/24 [1/0] via 20.20.20.2
R3#
R3#show ip route
R3#
Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018
VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING -
VRFVRF
R4#show ip route vrf empresa_b
Routing Table: empresa_b
S 200.200.0.0/24 [1/0] via 20.20.20.10
20.0.0.0/30 is subnetted, 2 subnets
C 20.20.20.4 is directly connected, FastEthernet2/0.2
C 20.20.20.8 is directly connected, FastEthernet0/0
S 200.200.1.0/24 [1/0] via 20.20.20.10
S 200.200.2.0/24 [1/0] via 20.20.20.10
S 210.16.2.0/24 [1/0] via 20.20.20.5
S 210.16.1.0/24 [1/0] via 20.20.20.5
S 210.16.0.0/24 [1/0] via 20.20.20.5
R4#
VIRTUAL ROUTING AND FORWARDING: Caso_02 CISCO
R4#show ip route vrf empresa_a
Routing Table: empresa_a
S 200.200.0.0/24 [1/0] via 20.20.20.10
20.0.0.0/30 is subnetted, 2 subnets
C 20.20.20.4 is directly connected, FastEthernet2/0.1
C 20.20.20.8 is directly connected, FastEthernet1/1
S 200.200.1.0/24 [1/0] via 20.20.20.10
S 200.200.2.0/24 [1/0] via 20.20.20.10
S 210.16.2.0/24 [1/0] via 20.20.20.5
S 210.16.1.0/24 [1/0] via 20.20.20.5
S 210.16.0.0/24 [1/0] via 20.20.20.5
R4#
R4#show ip route
R4#
Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018
VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING -
VRFVRF
R6show ip route
C 200.200.0.0/24 is directly connected, FastEthernet0/0
20.0.0.0/30 is subnetted, 1 subnets
C 20.20.20.8 is directly connected, FastEthernet1/0
C 200.200.1.0/24 is directly connected, FastEthernet1/1
C 200.200.2.0/24 is directly connected, FastEthernet2/0
S* 0.0.0.0/0 [1/0] via 20.20.20.9
R6#
VIRTUAL ROUTING AND FORWARDING: Caso_02 CISCO
R5#show ip route
C 200.200.0.0/24 is directly connected, FastEthernet1/0
20.0.0.0/30 is subnetted, 1 subnets
C 20.20.20.8 is directly connected, FastEthernet0/0
C 200.200.1.0/24 is directly connected, FastEthernet1/1
C 200.200.2.0/24 is directly connected, FastEthernet2/0
S* 0.0.0.0/0 [1/0] via 20.20.20.9
R5#
Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018
VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING -
VRFVRF
VIRTUAL ROUTING AND FORWARDING: Caso_02 CISCO
PC-1> ping 200.200.0.20
84 bytes from 200.200.0.20 icmp_seq=1 ttl=60 time=131.544 ms
84 bytes from 200.200.0.20 icmp_seq=2 ttl=60 time=137.132 ms
84 bytes from 200.200.0.20 icmp_seq=3 ttl=60 time=131.475 ms
84 bytes from 200.200.0.20 icmp_seq=4 ttl=60 time=137.491 ms
84 bytes from 200.200.0.20 icmp_seq=5 ttl=60 time=131.436 ms
Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018
VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING -
VRFVRF
VIRTUAL ROUTING AND FORWARDING: Caso_02 CISCO
PC-11> ping 210.16.2.2
84 bytes from 210.16.2.2 icmp_seq=1 ttl=60 time=131.378 ms
84 bytes from 210.16.2.2 icmp_seq=2 ttl=60 time=131.976 ms
84 bytes from 210.16.2.2 icmp_seq=3 ttl=60 time=131.537 ms
84 bytes from 210.16.2.2 icmp_seq=4 ttl=60 time=131.100 ms
84 bytes from 210.16.2.2 icmp_seq=5 ttl=60 time=137.849 ms
PC-11>
No hay captura
Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018
VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING -
VRFVRF
VIRTUAL ROUTING AND FORWARDING: Caso_03 CISCO
… … … …
200.10.1.0/24 200.20.1.0/24 200.10.2.0/24200.20.2.0/24
192.168.55.0/30 10.20.30.0/30
Acceso de
Internet
invitados
Acceso de
Internet
coorporativa
Usuarios
invitados
Usuarios
invitados
Usuarios
coorporativos
Usuarios
coorporativos
Ra Rb
R1
R2 R3
Rc Rd
.1 .2 .2 .1
OSPFv2
f0/0 f1/0
f1/1
f0/0
f1/0f1/1
f0/0
f0/0
f2/0
f0/0
f1/0
f1/1
f0/0
f0/0
f1/0 f1/1 f1/0 f1/1
Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018
VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING -
VRFVRF
VIRTUAL ROUTING AND FORWARDING: Caso_03 CISCO
… … … …
200.10.1.0/24 200.20.1.0/24 200.10.2.0/24200.20.2.0/24
192.168.55.0/30 10.20.30.0/30
Acceso de
Internet
invitados
Acceso de
Internet
coorporativa
Usuarios
invitados
Usuarios
invitados
Usuarios
coorporativos
Usuarios
coorporativos
Ra Rb
R1
R2 R3
Rc Rd
.1 .2 .2 .1
192.16.55.4/30
10.20.30.4/30
10.20.30.8/30192.168.55.8/30
192.168.55.12/30
10.20.30.12/30
192.168.55.16/30
10.20.30.16/30
192.168.55.20/30
10.20.30.20/30
.5 .9
.6 .10
.18 .21
.17 .22.18
.17
.21
.22
.5 .9
.6 .10
.13 .14
.13 .14
f0/0 f1/0
f1/1.10
f0/0.10 f1/0.20
f1/1.10
f0/0.10
f0/0
f2/0.20
f0/0.20
f1/0.10
f1/1.10
f0/0.10
f0/0
f1/0 f1/1
f1/0 f1/1
f1/1.20
f2/0.10
f1/0.10 f0/0.10
f1/0.20
f0/0.20
f1/1.20
f0/0.20
f1/1.20
f0/0.20
Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018
VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING -
VRFVRF
VIRTUAL ROUTING AND FORWARDING: Caso_03 CISCO
… … … …
200.10.1.0/24 200.20.1.0/24 200.10.2.0/24200.20.2.0/24
192.168.55.0/30 10.20.30.0/30
Acceso de
Internet
invitados
Acceso de
Internet
coorporativa
Usuarios
invitados
Usuarios
invitados
Usuarios
coorporativos
Usuarios
coorporativos
Ra Rb
R1
R2 R3
Rc Rd
.1 .2 .2 .1
OSPFv2
192.16.55.4/30
10.20.30.4/30
10.20.30.8/30192.168.55.8/30
192.168.55.12/30
10.20.30.12/30
192.168.55.16/30
10.20.30.16/30
192.168.55.20/30
10.20.30.20/30
costo
7
costo
1
costo 2costo 2 costo 2costo
1
costo 2
costo
4
costo 2 costo 2
Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018
VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING -
VRFVRF
VIRTUAL ROUTING AND FORWARDING: Caso_03 CISCO
R1(config)#interface fastethernet1/0
R1(config-if)#ip vrf forwarding invitados
R1(config-if)# ip address 192.168.55.2 255.255.255.252
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#interface fastethernet0/0
R1(config-if)#ip vrf forwarding coorporativos
R1(config-if)# ip address 10.20.30.2 255.255.255.252
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#interface fastethernet1/1
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#interface fastethernet1/1.10
R1(config-subif)#ip vrf forwarding invitados
R1(config-subif)#encapsulation dot1Q 10
R1(config-subif)#ip address 192.168.55.5 255.255.255.252
R1(config-subif)#no shutdown
R1(config-subif)#ip ospf cost 7
R1(config-subif)#exit
R1(config)#
R1(config)#ip vrf invitados
R1(config-vrf)#rd 10:10
R1(config-vrf)#exit
R1(config)#ip vrf coorporativos
R1(config-vrf)#rd 10:20
R1(config-vrf)#exit
192.168.55.0/30 10.20.30.0/30R1
192.16.55.4/30
10.20.30.4/30
10.20.30.8/30192.168.55.8/30
costo
7
costo
1
costo
1
costo
4
f1/0
f1/1.10
f0/0
f2/0.10
.2 .2
.5 .9
.5 .9
f2/0.20
f1/1.20
Ra Rb
.1 .1
f0/0 f0/0
f1/1
f2/0
Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018
VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING -
VRFVRF
VIRTUAL ROUTING AND FORWARDING: Caso_03 CISCO
R1(config)#interface fastethernet1/1.20
R1(config-subif)#ip vrf forwarding coorporativos
R1(config-subif)#encapsulation dot1Q 20
R1(config-subif)#ip address 10.20.30.5 255.255.255.252
R1(config-subif)#no shutdown
R1(config-subif)#ip ospf cost 1
R1(config-subif)#exit
R1(config)#
R1(config)#interface fastethernet2/0
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#interface fastethernet2/0.10
R1(config-subif)#ip vrf forwarding invitados
R1(config-subif)#encapsulation dot1Q 10
R1(config-subif)#ip address 192.168.55.9 255.255.255.252
R1(config-subif)#no shutdown
R1(config-subif)#ip ospf cost 1
R1(config-subif)#exit
R1(config)#
R1(config)#ip vrf invitados
R1(config-vrf)#rd 10:10
R1(config-vrf)#exit
R1(config)#ip vrf coorporativos
R1(config-vrf)#rd 10:20
R1(config-vrf)#exit
192.168.55.0/30 10.20.30.0/30R1
192.16.55.4/30
10.20.30.4/30
10.20.30.8/30192.168.55.8/30
costo
7
costo
1
costo
1
costo
4
f1/0
f1/1.10
f0/0
f2/0.10
.2 .2
.5 .9
.5 .9
f2/0.20
f1/1.20
Ra Rb
.1 .1
f0/0 f0/0
f1/1
f2/0
Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018
VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING -
VRFVRF
VIRTUAL ROUTING AND FORWARDING: Caso_03 CISCO
R1(config)#interface fastethernet2/0.20
R1(config-subif)#ip vrf forwarding coorporativos
R1(config-subif)#encapsulation dot1Q 20
R1(config-subif)#ip address 10.20.30.9 255.255.255.252
R1(config-subif)#no shutdown
R1(config-subif)#ip ospf cost 4
R1(config-subif)#exit
R1(config)#
R1(config)#ip vrf invitados
R1(config-vrf)#rd 10:10
R1(config-vrf)#exit
R1(config)#ip vrf coorporativos
R1(config-vrf)#rd 10:20
R1(config-vrf)#exit
192.168.55.0/30 10.20.30.0/30R1
192.16.55.4/30
10.20.30.4/30
10.20.30.8/30192.168.55.8/30
costo
7
costo
1
costo
1
costo
4
f1/0
f1/1.10
f0/0
f2/0.10
.2 .2
.5 .9
.5 .9
f2/0.20
f1/1.20
Ra Rb
.1 .1
f0/0 f0/0
f1/1
f2/0
R1(config)#ip route vrf invitados 0.0.0.0 0.0.0.0 192.168.55.1
R1(config)#ip route vrf coorporativos 0.0.0.0 0.0.0.0 10.20.30.1
R1(config)#router ospf 10 vrf invitados
R1(config-router)#redistribute static metric 15 subnets
R1(config-router)#default-information originate
R1(config-router)#network 192.168.55.0 0.0.0.3 area 0
R1(config-router)#network 192.168.55.4 0.0.0.3 area 0
R1(config-router)#network 192.168.55.8 0.0.0.3 area 0
R1(config-router)#exit
R1(config)#
Propaga la
ruta estática
por defecto
en mensajes
OSPF
Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018
VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING -
VRFVRF
VIRTUAL ROUTING AND FORWARDING: Caso_03 CISCO
R1(config)#ip vrf invitados
R1(config-vrf)#rd 10:10
R1(config-vrf)#exit
R1(config)#ip vrf coorporativos
R1(config-vrf)#rd 10:20
R1(config-vrf)#exit
192.168.55.0/30 10.20.30.0/30R1
192.16.55.4/30
10.20.30.4/30
10.20.30.8/30192.168.55.8/30
costo
7
costo
1
costo
1
costo
4
f1/0
f1/1.10
f0/0
f2/0.10
.2 .2
.5 .9
.5 .9
f2/0.20
f1/1.20
Ra Rb
.1 .1
f0/0 f0/0
f1/1
f2/0
R1(config)#router ospf 20 vrf coorporativos
R1(config-router)#redistribute static metric 15 subnets
R1(config-router)#default-information originate
R1(config-router)#network 10.20.30.0 0.0.0.3 area 0
R1(config-router)#network 10.20.30.4 0.0.0.3 area 0
R1(config-router)#network 10.20.30.8 0.0.0.3 area 0
R1(config-router)#exit
R1(config)#
Propaga la
ruta estática
por defecto
en mensajes
OSPF
Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018
VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING -
VRFVRF
VIRTUAL ROUTING AND FORWARDING: Caso_03 CISCO
R2(config)#ip vrf invitados
R2(config-vrf)#rd 10:10
R2(config-vrf)#exit
R2(config)#ip vrf coorporativos
R2(config-vrf)#rd 10:20
R2(config-vrf)#exit
R2(config)#interface fastethernet1/1
R2(config-if)#no shutdown
R2(config-if)#exit
R2(config)#interface fastethernet1/0
R2(config-if)#no shutdown
R2(config-if)#exit
R2(config)#interface fastethernet1/1.10
R2(config-subif)#ip vrf forwarding invitados
R2(config-subif)#encapsulation dot1Q 10
R2(config-subif)#ip address 192.168.55.18 255.255.255.252
R2(config-subif)#no shutdown
R2(config-subif)#ip ospf cost 2
R2(config-subif)#exit
R2(config)#interface fastethernet1/0.10
R2(config-subif)#ip vrf forwarding invitados
R2(config-subif)#encapsulation dot1Q 10
R2(config-subif)#ip address 192.168.55.13 255.255.255.252
R2(config-subif)#no shutdown
R2(config-subif)#ip ospf cost 2
R2(config-subif)#exit
R2
Rc
192.16.55.4/30
10.20.30.4/30
192.168.55.12/30
10.20.30.12/30
192.168.55.16/30
10.20.30.16/30
.6
.18
.17 .18
.17
.6
.13 .14
.13 .14
f1/1.10
f0/0.10
f1/0.20
f1/1.10
f0/0.10
f1/1.20
f1/0.10
f0/0.20
f1/1.20
f0/0.20
f0/0
f1/0
f1/1
costo
7
costo 2
costo 2
costo
1
costo 2
costo 2
Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018
VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING -
VRFVRF
VIRTUAL ROUTING AND FORWARDING: Caso_03 CISCO
R2(config)#interface fastethernet0/0
R2(config-if)#no shutdown
R2(config-if)#exit
R2(config)#interface fastethernet0/0.10
R2(config-subif)#ip vrf forwarding invitados
R2(config-subif)#encapsulation dot1Q 10
R2(config-subif)#ip address 192.168.55.6 255.255.255.252
R2(config-subif)#no shutdown
R2(config-subif)#ip ospf cost 7
R2(config-subif)#exit
R2(config)#
R2(config)#interface fastethernet1/1.20
R2(config-subif)#ip vrf forwarding coorporativos
R2(config-subif)#encapsulation dot1Q 20
R2(config-subif)#ip address 10.20.30.18 255.255.255.252
R2(config-subif)#no shutdown
R2(config-subif)#ip ospf cost 2
R2(config-subif)#exit
R2(config)#ip vrf invitados
R2(config-vrf)#rd 10:10
R2(config-vrf)#exit
R2(config)#ip vrf coorporativos
R2(config-vrf)#rd 10:20
R2(config-vrf)#exit
R2
Rc
192.16.55.4/30
10.20.30.4/30
192.168.55.12/30
10.20.30.12/30
192.168.55.16/30
10.20.30.16/30
.6
.18
.17 .18
.17
.6
.13 .14
.13 .14
f1/1.10
f0/0.10
f1/0.20
f1/1.10
f0/0.10
f1/1.20
f1/0.10
f0/0.20
f1/1.20
f0/0.20
f0/0
f1/0
f1/1
costo
7
costo 2
costo 2
costo
1
costo 2
costo 2
Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018
VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING -
VRFVRF
VIRTUAL ROUTING AND FORWARDING: Caso_03 CISCO
R2(config)#interface fastethernet1/0.20
R2(config-subif)#ip vrf forwarding coorporativos
R2(config-subif)#encapsulation dot1Q 20
R2(config-subif)#ip address 10.20.30.13 255.255.255.252
R2(config-subif)#no shutdown
R2(config-subif)#ip ospf cost 2
R2(config-subif)#exit
R2(config)#interface fastethernet0/0.20
R2(config-subif)#ip vrf forwarding coorporativos
R2(config-subif)#encapsulation dot1Q 20
R2(config-subif)#ip address 10.20.30.6 255.255.255.252
R2(config-subif)#no shutdown
R2(config-subif)#ip ospf cost 1
R2(config-subif)#exit
R2(config)#ip vrf invitados
R2(config-vrf)#rd 10:10
R2(config-vrf)#exit
R2(config)#ip vrf coorporativos
R2(config-vrf)#rd 10:20
R2(config-vrf)#exit
R2
Rc
192.16.55.4/30
10.20.30.4/30
192.168.55.12/30
10.20.30.12/30
192.168.55.16/30
10.20.30.16/30
.6
.18
.17 .18
.17
.6
.13 .14
.13 .14
f1/1.10
f0/0.10
f1/0.20
f1/1.10
f0/0.10
f1/1.20
f1/0.10
f0/0.20
f1/1.20
f0/0.20
f0/0
f1/0
f1/1
costo
7
costo 2
costo 2
costo
1
costo 2
costo 2
Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018
VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING -
VRFVRF
VIRTUAL ROUTING AND FORWARDING: Caso_03 CISCO
R2(config)#ip vrf invitados
R2(config-vrf)#rd 10:10
R2(config-vrf)#exit
R2(config)#ip vrf coorporativos
R2(config-vrf)#rd 10:20
R2(config-vrf)#exit
R2
Rc
192.16.55.4/30
10.20.30.4/30
192.168.55.12/30
10.20.30.12/30
192.168.55.16/30
10.20.30.16/30
.6
.18
.17 .18
.17
.6
.13 .14
.13 .14
f1/1.10
f0/0.10
f1/0.20
f1/1.10
f0/0.10
f1/1.20
f1/0.10
f0/0.20
f1/1.20
f0/0.20
f0/0
f1/0
f1/1
costo
7
costo 2
costo 2
costo
1
costo 2
costo 2
R2(config)#ip route vrf invitados 200.10.1.0 255.255.255.0
192.168.55.17
R2(config)#ip route vrf coorporativos 200.20.1.0 255.255.255.0
10.20.30.17
R2(config)#router ospf 10 vrf invitados
R2(config-rt)#redistribute static metric 15 subnets
R2(config-rt)#network 192.168.55.4 0.0.0.3 area 0
R2(config-rt)#network 192.168.55.12 0.0.0.3 area 0
R2(config-rt)#network 192.168.55.16 0.0.0.3 area 0
R2(config-rt)#exit
R2(config)#
R2(config)#router ospf 20 vrf coorporativos
R2(config-rt)#redistribute static metric 15 subnets
R2(config-router)#network 10.20.30.4 0.0.0.3 area 0
R2(config-router)#network 10.20.30.12 0.0.0.3 area 0
R2(config-router)#network 10.20.30.16 0.0.0.3 area 0
R2(config-router)#exit
R2(config)#
Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018
VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING -
VRFVRF
VIRTUAL ROUTING AND FORWARDING: Caso_03 CISCO
R3
10.20.30.8/30192.168.55.8/30
192.168.55.12/30
10.20.30.12/30
192.168.55.20/30
10.20.30.20/30
.9
.10
.21
.21
.10
.14
.14
f2/0.20
f0/0.20
f1/0.10 f1/1.10
f2/0.10
f0/0.10
f1/0.20
f1/1.20
costo
1
costo 2
costo 2
costo 2
costo
4
costo 2
R3(config)#ip vrf invitados
R3(config-vrf)#rd 10:10
R3(config-vrf)#exit
R3(config)#ip vrf coorporativos
R3(config-vrf)#rd 10:20
R3(config-vrf)#exit
R3(config)#interface fastethernet1/0
R3(config-if)#no shutdown
R3(config-if)#exit
R3(config)#interface fastethernet0/0
R3(config-if)#no shutdown
R3(config-if)#exit
R3(config)#interface fastethernet1/0.10
R3(config-subif)#ip vrf forwarding invitados
R3(config-subif)#encapsulation dot1Q 10
R3(config-subif)#ip address 192.168.55.10 255.255.255.252
R3(config-subif)#no shutdown
R3(config-subif)#ip ospf cost 1
R3(config-subif)#exit
R3(config)#interface fastethernet0/0.10
R3(config-subif)#ip vrf forwarding invitados
R3(config-subif)#encapsulation dot1Q 10
R3(config-subif)#ip address 192.168.55.14 255.255.255.252
R3(config-subif)#no shutdown
R3(config-subif)#ip ospf cost 2
R3(config-subif)#exit
Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018
VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING -
VRFVRF
VIRTUAL ROUTING AND FORWARDING: Caso_03 CISCO
R3
10.20.30.8/30192.168.55.8/30
192.168.55.12/30
10.20.30.12/30
192.168.55.20/30
10.20.30.20/30
.9
.10
.21
.21
.10
.14
.14
f2/0.20
f0/0.20
f1/0.10 f1/1.10
f2/0.10
f0/0.10
f1/0.20
f1/1.20
costo
1
costo 2
costo 2
costo 2
costo
4
costo 2
R3(config)#ip vrf invitados
R3(config-vrf)#rd 10:10
R3(config-vrf)#exit
R3(config)#ip vrf coorporativos
R3(config-vrf)#rd 10:20
R3(config-vrf)#exit
R3(config)#interface fastethernet1/1
R3(config-if)#no shutdown
R3(config-if)#exit
R3(config)#interface fastethernet1/1.10
R3(config-subif)#ip vrf forwarding invitados
R3(config-subif)#encapsulation dot1Q 10
R3(config-subif)#ip address 192.168.55.21 255.255.255.252
R3(config-subif)#no shutdown
R3(config-subif)#ip ospf cost 2
R3(config-subif)#exit
R3(config)#
R3(config)#interface fastethernet1/0.20
R3(config-subif)#ip vrf forwarding coorporativos
R3(config-subif)#encapsulation dot1Q 20
R3(config-subif)#ip address 10.20.30.10 255.255.255.252
R3(config-subif)#no shutdown
R3(config-subif)#ip ospf cost 4
R3(config-subif)#exit
Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018
VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING -
VRFVRF
VIRTUAL ROUTING AND FORWARDING: Caso_03 CISCO
R3(config)#interface fastethernet0/0.20
R3(config-subif)#ip vrf forwarding coorporativos
R3(config-subif)#encapsulation dot1Q 20
R3(config-subif)#ip address 10.20.30.14 255.255.255.252
R3(config-subif)#no shutdown
R3(config-subif)#ip ospf cost 2
R3(config-subif)#exit
R3(config)#interface fastethernet1/1.20
R3(config-subif)#ip vrf forwarding coorporativos
R3(config-subif)#encapsulation dot1Q 20
R3(config-subif)#ip address 10.20.30.21 255.255.255.252
R3(config-subif)#no shutdown
R3(config-subif)#ip ospf cost 2
R3(config-subif)#exit
R3
10.20.30.8/30192.168.55.8/30
192.168.55.12/30
10.20.30.12/30
192.168.55.20/30
10.20.30.20/30
.9
.10
.21
.21
.10
.14
.14
f2/0.20
f0/0.20
f1/0.10 f1/1.10
f2/0.10
f0/0.10
f1/0.20
f1/1.20
costo
1
costo 2
costo 2
costo 2
costo
4
costo 2
R3(config)#ip vrf invitados
R3(config-vrf)#rd 10:10
R3(config-vrf)#exit
R3(config)#ip vrf coorporativos
R3(config-vrf)#rd 10:20
R3(config-vrf)#exit
Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018
VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING -
VRFVRF
VIRTUAL ROUTING AND FORWARDING: Caso_03 CISCO
R3(config)#ip route vrf invitados 200.10.2.0 255.255.255.0
192.168.55.22
R3(config)#ip route vrf coorporativos 200.20.2.0 255.255.255.0
10.20.30.22
R3
10.20.30.8/30192.168.55.8/30
192.168.55.12/30
10.20.30.12/30
192.168.55.20/30
10.20.30.20/30
.9
.10
.21
.21
.10
.14
.14
f2/0.20
f0/0.20
f1/0.10 f1/1.10
f2/0.10
f0/0.10
f1/0.20
f1/1.20
costo
1
costo 2
costo 2
costo 2
costo
4
costo 2
R3(config)#ip vrf invitados
R3(config-vrf)#rd 10:10
R3(config-vrf)#exit
R3(config)#ip vrf coorporativos
R3(config-vrf)#rd 10:20
R3(config-vrf)#exit
R3(config)#router ospf 10 vrf invitados
R3(config-router)#redistribute static metric 15 subnets
R3(config-router)#network 192.168.55.8 0.0.0.3 area 0
R3(config-router)#network 192.168.55.12 0.0.0.3 area 0
R3(config-router)#network 192.168.55.20 0.0.0.3 area 0
R3(config-router)#exit
R3(config)#
R3(config)#router ospf 20 vrf coorporativos
R3(config-router)#redistribute static metric 15 subnets
R3(config-router)#network 10.20.30.8 0.0.0.3 area 0
R3(config-router)#network 10.20.30.12 0.0.0.3 area 0
R3(config-router)#network 10.20.30.20 0.0.0.3 area 0
R3(config-router)#exit
R3(config)#
Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018
VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING -
VRFVRF
VIRTUAL ROUTING AND FORWARDING: Caso_03 CISCO
Rc(config)#interface fastethernet1/0
Rc(config-if)#ip vrf forwarding invitados
Rc(config-if)#ip address 200.10.1.1 255.255.255.0
Rc(config-if)#no shutdown
Rc(config-if)#exit
Rc(config)#
Rc(config)#interface fastethernet1/1
Rc(config-if)#ip vrf forwarding coorporativos
Rc(config-if)#ip address 200.20.1.1 255.255.255.0
Rc(config-if)#no shutdown
Rc(config-if)#exit
Rc(config)#
… …
200.10.1.0/24 200.20.1.0/24
Usuarios
invitados
Usuarios
coorporativos
Rc
192.168.55.16/30
10.20.30.16/30
.18
.17 .18
.17
f1/1.10
f0/0.10
f1/0 f1/1
f1/1.20
f0/0.20
Rc(config)#ip vrf invitados
Rc(config-vrf)#rd 10:10
Rc(config-vrf)#exit
Rc(config)#ip vrf coorporativos
Rc(config-vrf)#rd 10:20
Rc(config-vrf)#exit
Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018
VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING -
VRFVRF
VIRTUAL ROUTING AND FORWARDING: Caso_03 CISCO
Rc(config)#interface fastethernet0/0
Rc(config-if)#no shutdown
Rc(config-if)#exit
Rc(config)#interface fastethernet0/0.10
Rc(config-subif)#ip vrf forwarding invitados
Rc(config-subif)#encapsulation dot1Q 10
Rc(config-subif)#ip address 192.168.55.17 255.255.255.252
Rc(config-subif)#no shutdown
Rc(config-subif)#exit
Rc(config)#
Rc(config)#interface fastethernet0/0.20
Rc(config-subif)#ip vrf forwarding coorporativos
Rc(config-subif)#encapsulation dot1Q 20
Rc(config-subif)#ip address 10.20.30.17 255.255.255.252
Rc(config-subif)#no shutdown
Rc(config-subif)#exit
Rc(config)#
… …
200.10.1.0/24 200.20.1.0/24
Usuarios
invitados
Usuarios
coorporativos
Rc
192.168.55.16/30
10.20.30.16/30
.18
.17 .18
.17
f1/1.10
f0/0.10
f1/0 f1/1
f1/1.20
f0/0.20
Rc(config)#ip vrf invitados
Rc(config-vrf)#rd 10:10
Rc(config-vrf)#exit
Rc(config)#ip vrf coorporativos
Rc(config-vrf)#rd 10:20
Rc(config-vrf)#exit
Rc(config)#ip route vrf invitados 0.0.0.0 0.0.0.0 192.168.55.18
Rc(config)#ip route vrf coorporativos 0.0.0.0 0.0.0.0 10.20.30.18
Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018
VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING -
VRFVRF
VIRTUAL ROUTING AND FORWARDING: Caso_03 CISCO
Rd(config)#interface fastethernet1/1
Rd(config-if)#ip vrf forwarding invitados
Rd(config-if)#ip address 200.10.2.1 255.255.255.0
Rd(config-if)#no shutdown
Rd(config-if)#exit
Rd(config)#
Rd(config)#interface fastethernet1/0
Rd(config-if)#ip vrf forwarding coorporativos
Rd(config-if)#ip address 200.20.2.1 255.255.255.0
Rd(config-if)#no shutdown
Rd(config-if)#exit
Rd(config)#
Rd(config)#ip vrf invitados
Rd(config-vrf)#rd 10:10
Rd(config-vrf)#exit
Rd(config)#ip vrf coorporativos
Rd(config-vrf)#rd 10:20
Rd(config-vrf)#exit
… …
200.10.2.0/24200.20.2.0/24
Usuarios
invitados
Usuarios
coorporativos
R3
Rd
192.168.55.20/30
10.20.30.20/30
.21
.22.21
.22
f1/1.10
f0/0.10
f1/0 f1/1
f1/1.20
f0/0.20
Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018
VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING -
VRFVRF
VIRTUAL ROUTING AND FORWARDING: Caso_03 CISCO
Rd(config)#ip vrf invitados
Rd(config-vrf)#rd 10:10
Rd(config-vrf)#exit
Rd(config)#ip vrf coorporativos
Rd(config-vrf)#rd 10:20
Rd(config-vrf)#exit
… …
200.10.2.0/24200.20.2.0/24
Usuarios
invitados
Usuarios
coorporativos
R3
Rd
192.168.55.20/30
10.20.30.20/30
.21
.22.21
.22
f1/1.10
f0/0.10
f1/0 f1/1
f1/1.20
f0/0.20
Rd(config)#interface fastethernet0/0
Rd(config-if)#no shutdown
Rd(config-if)#exit
Rd(config)#interface fastethernet0/0.10
Rd(config-subif)#ip vrf forwarding invitados
Rd(config-subif)#encapsulation dot1Q 10
Rd(config-subif)#ip address 192.168.55.22 255.255.255.252
Rd(config-subif)#no shutdown
Rd(config-subif)#exit
Rd(config)#
Rd(config)#interface fastethernet0/0.20
Rd(config-subif)#ip vrf forwarding coorporativos
Rd(config-subif)#encapsulation dot1Q 20
Rd(config-subif)#ip address 10.20.30.22 255.255.255.252
Rd(config-subif)#no shutdown
Rd(config-isubf)#exit
Rd(config)#
Rd(config)#ip route vrf invitados 0.0.0.0 0.0.0.0 192.168.55.21
Rd(config)#ip route vrf coorporativos 0.0.0.0 0.0.0.0 10.20.30.21
Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018
VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING -
VRFVRF
VIRTUAL ROUTING AND FORWARDING: Caso_03 CISCO
… … … …
200.10.1.0/24 200.20.1.0/24 200.10.2.0/24200.20.2.0/24
192.168.55.0/30 10.20.30.0/30
Acceso de
Internet
invitados
Acceso de
Internet
coorporativa
Usuarios
invitados
Usuarios
invitados
Usuarios
coorporativos
Usuarios
coorporativos
Ra Rb
R1
R2 R3
Rc Rd
.1 .2 .2 .1
OSPFv2
192.16.55.4/30
10.20.30.4/30
10.20.30.8/30192.168.55.8/30
192.168.55.12/30
10.20.30.12/30
192.168.55.16/30
10.20.30.16/30
192.168.55.20/30
10.20.30.20/30
costo
7
costo
1
costo 2costo 2 costo 2costo
1
costo 2
costo
4
costo 2 costo 2
Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018
VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING -
VRFVRF
VIRTUAL ROUTING AND FORWARDING: Caso_03 CISCO
R3#show ip route vrf invitados
Routing Table: invitados
O E2 200.10.1.0/24 [110/15] via 192.168.55.13, 00:48:22, FastEthernet0/0.10
S 200.10.2.0/24 [1/0] via 192.168.55.22
192.168.55.0/30 is subnetted, 6 subnets
C 192.168.55.20 is directly connected, FastEthernet1/1.10
O 192.168.55.16 [110/4] via 192.168.55.13, 00:48:22, FastEthernet0/0.10
C 192.168.55.12 is directly connected, FastEthernet0/0.10
C 192.168.55.8 is directly connected, FastEthernet1/0.10
O 192.168.55.4 [110/8] via 192.168.55.9, 00:48:22, FastEthernet1/0.10
O 192.168.55.0 [110/2] via 192.168.55.9, 00:48:22, FastEthernet1/0.10
O*E2 0.0.0.0/0 [110/1] via 192.168.55.9, 00:48:22, FastEthernet1/0.10
R3#
Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018
VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING -
VRFVRF
VIRTUAL ROUTING AND FORWARDING: Caso_03 CISCO
R3#show ip route vrf coorporativos
Routing Table: coorporativos
O E2 200.20.1.0/24 [110/15] via 10.20.30.13, 00:12:45, FastEthernet0/0.20
S 200.20.2.0/24 [1/0] via 10.20.30.22
10.0.0.0/30 is subnetted, 6 subnets
O 10.20.30.0 [110/4] via 10.20.30.13, 00:12:45, FastEthernet0/0.20
O 10.20.30.4 [110/3] via 10.20.30.13, 00:12:45, FastEthernet0/0.20
C 10.20.30.8 is directly connected, FastEthernet1/0.20
C 10.20.30.12 is directly connected, FastEthernet0/0.20
O 10.20.30.16 [110/4] via 10.20.30.13, 00:12:45, FastEthernet0/0.20
C 10.20.30.20 is directly connected, FastEthernet1/1.20
O*E2 0.0.0.0/0 [110/1] via 10.20.30.13, 00:12:45, FastEthernet0/0.20
R3#
Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018
VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING -
VRFVRF
VIRTUAL ROUTING AND FORWARDING: Caso_03 CISCO
Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018
VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING -
VRFVRF
TAREA-01Enrutamiento
por defecto
… … … …
200.10.1.0/24 200.20.1.0/24 200.10.2.0/24200.20.2.0/24
Usuarios
invitados
Usuarios
invitados
Usuarios
coorporativos
Usuarios
coorporativos
R2
… …
200.10.1.0/24 200.20.1.0/24
Usuarios
invitados
Usuarios
coorporativos
R1
R6
R3
R4
R5
OSPFv2
Enrutamiento
por defectoEnrutamiento
por defecto
Rc
Rb
Ra
Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018
VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING -
VRFVRF
TAREA-02
Enrutamiento
por defecto
… …
200.20.1.0/24 200.10.2.0/24
Usuarios
invitados
Usuarios
coorporativos
R2
…
200.10.1.0/24
Usuarios
invitados
R1
R6
R3
R4
R5
OSPFv2
Enrutamiento
por defecto
Enrutamiento
por defecto
RcRb
Ra
…
200.20.2.0/24
Usuarios
coorporativos
Rd
…
200.10.3.0/24
Usuarios
invitados
ReEnrutamiento
por defecto
Enrutamiento
por defecto

More Related Content

More from Andy Juan Sarango Veliz

Redes de Computadores: Un enfoque descendente 7.° Edición - Capítulo 9
Redes de Computadores: Un enfoque descendente 7.° Edición - Capítulo 9Redes de Computadores: Un enfoque descendente 7.° Edición - Capítulo 9
Redes de Computadores: Un enfoque descendente 7.° Edición - Capítulo 9Andy Juan Sarango Veliz
 
Análisis e Implementación de una Red "SDN" usando controladores "Open Source"
Análisis e Implementación de una Red "SDN" usando controladores "Open Source"Análisis e Implementación de una Red "SDN" usando controladores "Open Source"
Análisis e Implementación de una Red "SDN" usando controladores "Open Source"Andy Juan Sarango Veliz
 
Software Defined Radio - Capítulo 5: Modulación Digital I
Software Defined Radio - Capítulo 5: Modulación Digital ISoftware Defined Radio - Capítulo 5: Modulación Digital I
Software Defined Radio - Capítulo 5: Modulación Digital IAndy Juan Sarango Veliz
 
Software Defined Radio - Capítulo 4: Modulación FM
Software Defined Radio - Capítulo 4: Modulación FMSoftware Defined Radio - Capítulo 4: Modulación FM
Software Defined Radio - Capítulo 4: Modulación FMAndy Juan Sarango Veliz
 
Software Defined Radio - Capítulo 3: Modulación AM
Software Defined Radio - Capítulo 3: Modulación AMSoftware Defined Radio - Capítulo 3: Modulación AM
Software Defined Radio - Capítulo 3: Modulación AMAndy Juan Sarango Veliz
 
Software Defined Radio - Capítulo 2: GNU Radio Companion
Software Defined Radio - Capítulo 2: GNU Radio CompanionSoftware Defined Radio - Capítulo 2: GNU Radio Companion
Software Defined Radio - Capítulo 2: GNU Radio CompanionAndy Juan Sarango Veliz
 
Software Defined Radio - Capítulo 1: Introducción
Software Defined Radio - Capítulo 1: IntroducciónSoftware Defined Radio - Capítulo 1: Introducción
Software Defined Radio - Capítulo 1: IntroducciónAndy Juan Sarango Veliz
 
MAE-RAV-ROS Introducción a Ruteo Avanzado con MikroTik RouterOS v6.42.5.01
MAE-RAV-ROS Introducción a Ruteo Avanzado con MikroTik RouterOS v6.42.5.01MAE-RAV-ROS Introducción a Ruteo Avanzado con MikroTik RouterOS v6.42.5.01
MAE-RAV-ROS Introducción a Ruteo Avanzado con MikroTik RouterOS v6.42.5.01Andy Juan Sarango Veliz
 
Los cuatro desafíos de ciberseguridad más críticos de nuestra generación
Los cuatro desafíos de ciberseguridad más críticos de nuestra generaciónLos cuatro desafíos de ciberseguridad más críticos de nuestra generación
Los cuatro desafíos de ciberseguridad más críticos de nuestra generaciónAndy Juan Sarango Veliz
 
Redes de Computadores: Un enfoque descendente 7.° Edición - Capítulo 3
Redes de Computadores: Un enfoque descendente 7.° Edición - Capítulo 3Redes de Computadores: Un enfoque descendente 7.° Edición - Capítulo 3
Redes de Computadores: Un enfoque descendente 7.° Edición - Capítulo 3Andy Juan Sarango Veliz
 
Una simulación de Scrum con piezas de LEGO para varios equipos, de ciclo comp...
Una simulación de Scrum con piezas de LEGO para varios equipos, de ciclo comp...Una simulación de Scrum con piezas de LEGO para varios equipos, de ciclo comp...
Una simulación de Scrum con piezas de LEGO para varios equipos, de ciclo comp...Andy Juan Sarango Veliz
 

More from Andy Juan Sarango Veliz (20)

2. wordpress.com
2. wordpress.com2. wordpress.com
2. wordpress.com
 
1. Introducción a Wordpress
1. Introducción a Wordpress1. Introducción a Wordpress
1. Introducción a Wordpress
 
Redes de Computadores: Un enfoque descendente 7.° Edición - Capítulo 9
Redes de Computadores: Un enfoque descendente 7.° Edición - Capítulo 9Redes de Computadores: Un enfoque descendente 7.° Edición - Capítulo 9
Redes de Computadores: Un enfoque descendente 7.° Edición - Capítulo 9
 
Análisis e Implementación de una Red "SDN" usando controladores "Open Source"
Análisis e Implementación de una Red "SDN" usando controladores "Open Source"Análisis e Implementación de una Red "SDN" usando controladores "Open Source"
Análisis e Implementación de una Red "SDN" usando controladores "Open Source"
 
Software Defined Radio - Capítulo 5: Modulación Digital I
Software Defined Radio - Capítulo 5: Modulación Digital ISoftware Defined Radio - Capítulo 5: Modulación Digital I
Software Defined Radio - Capítulo 5: Modulación Digital I
 
Software Defined Radio - Capítulo 4: Modulación FM
Software Defined Radio - Capítulo 4: Modulación FMSoftware Defined Radio - Capítulo 4: Modulación FM
Software Defined Radio - Capítulo 4: Modulación FM
 
Software Defined Radio - Capítulo 3: Modulación AM
Software Defined Radio - Capítulo 3: Modulación AMSoftware Defined Radio - Capítulo 3: Modulación AM
Software Defined Radio - Capítulo 3: Modulación AM
 
Software Defined Radio - Capítulo 2: GNU Radio Companion
Software Defined Radio - Capítulo 2: GNU Radio CompanionSoftware Defined Radio - Capítulo 2: GNU Radio Companion
Software Defined Radio - Capítulo 2: GNU Radio Companion
 
Software Defined Radio - Capítulo 1: Introducción
Software Defined Radio - Capítulo 1: IntroducciónSoftware Defined Radio - Capítulo 1: Introducción
Software Defined Radio - Capítulo 1: Introducción
 
MAE-RAV-ROS Introducción a Ruteo Avanzado con MikroTik RouterOS v6.42.5.01
MAE-RAV-ROS Introducción a Ruteo Avanzado con MikroTik RouterOS v6.42.5.01MAE-RAV-ROS Introducción a Ruteo Avanzado con MikroTik RouterOS v6.42.5.01
MAE-RAV-ROS Introducción a Ruteo Avanzado con MikroTik RouterOS v6.42.5.01
 
Los cuatro desafíos de ciberseguridad más críticos de nuestra generación
Los cuatro desafíos de ciberseguridad más críticos de nuestra generaciónLos cuatro desafíos de ciberseguridad más críticos de nuestra generación
Los cuatro desafíos de ciberseguridad más críticos de nuestra generación
 
ITIL Foundation ITIL 4 Edition
ITIL Foundation ITIL 4 EditionITIL Foundation ITIL 4 Edition
ITIL Foundation ITIL 4 Edition
 
La norma ISO 27001
La norma ISO 27001La norma ISO 27001
La norma ISO 27001
 
Ciberseguridad Industrial
Ciberseguridad IndustrialCiberseguridad Industrial
Ciberseguridad Industrial
 
Redes de Computadores: Un enfoque descendente 7.° Edición - Capítulo 3
Redes de Computadores: Un enfoque descendente 7.° Edición - Capítulo 3Redes de Computadores: Un enfoque descendente 7.° Edición - Capítulo 3
Redes de Computadores: Un enfoque descendente 7.° Edición - Capítulo 3
 
Agile Planning Poker
Agile Planning PokerAgile Planning Poker
Agile Planning Poker
 
Una simulación de Scrum con piezas de LEGO para varios equipos, de ciclo comp...
Una simulación de Scrum con piezas de LEGO para varios equipos, de ciclo comp...Una simulación de Scrum con piezas de LEGO para varios equipos, de ciclo comp...
Una simulación de Scrum con piezas de LEGO para varios equipos, de ciclo comp...
 
Actualización 2017 SCRUM GUIDE
Actualización  2017 SCRUM GUIDEActualización  2017 SCRUM GUIDE
Actualización 2017 SCRUM GUIDE
 
Scrum Master - Ejercicios 3 Udemy
Scrum Master - Ejercicios 3 UdemyScrum Master - Ejercicios 3 Udemy
Scrum Master - Ejercicios 3 Udemy
 
Scrum Master - Ejercicios 2 Udemy
Scrum Master - Ejercicios 2 UdemyScrum Master - Ejercicios 2 Udemy
Scrum Master - Ejercicios 2 Udemy
 

Protocolo de Comunicaciones MPLS

  • 1. Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018 VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING - VRFVRF Protocolo deProtocolo de Comunicaciones:Comunicaciones: MPLSMPLS Daniel Díaz Ataucuri Profesor Titular de Telecomunicaciones UNI/UNMSM Director de Investigación y Desarrollo Tecnológico del INICTEL-UNI ddiaz1610@gmail.com/ddiaz@inictel-uni.edu.pe
  • 2. Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018 VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING - VRFVRF VIRTUAL ROUTING AND FORWARDING-VRF
  • 3. Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018 VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING - VRFVRF VIRTUAL ROUTING AND FORWARDING VRF VRF VRF Interfaz física o lógica Interfaz física o lógica Virtual Routing and Forwarding-VRF es una técnica de virtualizar las tablas de enrutamiento de un router con el objetivo de que un Proveedor de Servicios de Internet-ISP separe sus clientes. Cisco hace suyo VRF Juniper lo denomina “routing instances” Linux denomina “network namespaces” Huawei denomina “VPN Routing”
  • 4. Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018 VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING - VRFVRF VIRTUAL ROUTING AND FORWARDING 192.10.20.1/30 60.60.60.1/30 Fa 0/0 Fa 2/0 Fa 1/0 10.10.10.1.1/30 C 192.10.20.0 is directly connected, fastethernet0/0 C 10.10.10.0 is directly connected, fastethernet0/1 C 60.60.60.0 is directly connected, fastethernet1/0 Tabla de enrutamiento global 192.10.20.1/30 60.60.60.1/30 10.10.10.1.1/30192.70.80.1/30 192.70.80.1/30 192.70.80.1/30VRF VRF VRF Tabla VRF Tabla VRF Tabla VRF Fa 0/0 Fa 2/0 Fa 1/0 C 192.70.80.0 is directly connected, fastethernet2/0 Tabla de enrutamiento vrf celeste C 192.70.80.0 is directly connected, fastethernet0/0 Tabla de enrutamiento vrf rojo C 192.70.80.0 is directly connected, fastethernet1/0 Tabla de enrutamiento vrf amarillo Los VRF emplean esencialmente el mismo concepto que VLAN y trunking, pero en la capa tres.
  • 5. Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018 VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING - VRFVRF VIRTUAL ROUTING AND FORWARDING 192.10.20.1/30 60.60.60.1/30 10.10.10.1.1/30192.70.80.1/30 192.70.80.1/30 192.70.80.1/30VRF VRF VRF Tabla VRF Tabla VRF Tabla VRF Fa 0/0 Fa 2/0 Fa 1/0 C 192.70.80.0 is directly connected, fastethernet2/0 Tabla de enrutamiento vrf celeste C 192.70.80.0 is directly connected, fastethernet0/0 Tabla de enrutamiento vrf rojo C 192.70.80.0 is directly connected, fastethernet1/0 Tabla de enrutamiento vrf amarillo Pasos a seguir: Definir cada vrf Asignar un valor Router Distinguisher-rd Asociar las interfaces a cada vrf http://www.redescisco.net/sitio/2017/02/15/configuracion-basica-de-vrf/
  • 6. Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018 VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING - VRFVRF VIRTUAL ROUTING AND FORWARDING: Caso_01 CISCO 192.10.20.1/30 60.60.60.1/30 10.10.10.1.1/30192.70.80.1/30 192.70.80.1/30 192.70.80.1/30VRF VRF VRF Tabla VRF Tabla VRF Tabla VRF Fa 0/0 Fa 2/0 Fa 1/0 C 192.70.80.0 is directly connected, fastethernet2/0 Tabla de enrutamiento vrf celeste C 192.70.80.0 is directly connected, fastethernet0/0 Tabla de enrutamiento vrf rojo C 192.70.80.0 is directly connected, fastethernet1/0 Tabla de enrutamiento vrf amarillo Pasos a seguir: Definir cada vrf Asignar un valor Router Distinguisher-rd Asociar las interfaces a cada vrf R1(config)#ip vrf celeste R1(config-vrf)#rd 10:1 R1(config-vrf)#exit R1(config)#ip vrf rojo R1(config-vrf)#rd 10:2 R1(config-vrf)#exit R1(config)#ip vrf amarillo R1(config-vrf)#rd 10:3 R1(config-vrf)#exit R1(config)# La numeración es referencial. Permite al dispositivo distinguir qué interfaz y que ruta pertenece a qué dominio de enrutamiento interno. In Cisco terminology, deployment of VRFs without MPLS is known as VRF lite,
  • 7. Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018 VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING - VRFVRF VIRTUAL ROUTING AND FORWARDING: Caso_01 CISCO 192.10.20.1/30 60.60.60.1/30 10.10.10.1.1/30192.70.80.1/30 192.70.80.1/30 192.70.80.1/30VRF VRF VRF Tabla VRF Tabla VRF Tabla VRF Fa 0/0 Fa 2/0 Fa 1/0 C 192.70.80.0 is directly connected, fastethernet2/0 Tabla de enrutamiento vrf celeste C 192.70.80.0 is directly connected, fastethernet0/0 Tabla de enrutamiento vrf rojo C 192.70.80.0 is directly connected, fastethernet1/0 Tabla de enrutamiento vrf amarillo Pasos a seguir: Definir cada vrf Asignar un valor Router Distinguisher-rd Asociar las interfaces a cada vrf R1(config)#interface fastethernet2/0 R1(config-if)#ip vrf forwarding celeste R1(config-if)#ip address 192.70.80.1 255.255.255.252 R1(config-if)#no shutdown R1(config)#interface fastethernet0/0 R1(config-if)#ip vrf forwarding rojo R1(config-if)#ip address 192.70.80.1 255.255.255.252 R1(config-if)#no shutdown
  • 8. Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018 VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING - VRFVRF VIRTUAL ROUTING AND FORWARDING: Caso_01 CISCO R1(config)#interface fastethernet1/0 R1(config-if)#ip vrf forwarding amarillo R1(config-if)#ip address 192.70.80.1 255.255.255.252 R1(config-if)#no shutdown 192.10.20.1/30 60.60.60.1/30 10.10.10.1.1/30192.70.80.1/30 192.70.80.1/30 192.70.80.1/30VRF VRF VRF Tabla VRF Tabla VRF Tabla VRF Fa 0/0 Fa 2/0 Fa 1/0 C 192.70.80.0 is directly connected, fastethernet2/0 Tabla de enrutamiento vrf celeste C 192.70.80.0 is directly connected, fastethernet0/0 Tabla de enrutamiento vrf rojo C 192.70.80.0 is directly connected, fastethernet1/0 Tabla de enrutamiento vrf amarillo Pasos a seguir: Definir cada vrf Asignar un valor Router Distinguisher-rd Asociar las interfaces a cada vrf
  • 9. Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018 VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING - VRFVRF VIRTUAL ROUTING AND FORWARDING: Caso_01 CISCO R1#show ip route R1# R1#show ip route vrf celeste Routing Table: celeste 192.70.80.0/30 is subnetted, 1 subnets C 192.70.80.0 is directly connected, FastEthernet2/0 R1# R1#show ip route vrf rojo Routing Table: rojo 192.70.80.0/30 is subnetted, 1 subnets C 192.70.80.0 is directly connected, FastEthernet0/0 R1# R1#show ip route vrf amarillo Routing Table: amarillo 192.70.80.0/30 is subnetted, 1 subnets C 192.70.80.0 is directly connected, FastEthernet1/0 R1#
  • 10. Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018 VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING - VRFVRF VIRTUAL ROUTING AND FORWARDING: Caso_02 CISCO EMPRESA A EMPRESA B 210.16.0.0/24 210.16.1.0/24 210.16.2.0/24 .2 .2 .2 .1 .1 .1 210.16.0.0/24 210.16.1.0/24 210.16.2.0/24 .2 .2 .2 .1 .1 .1 200.200.0.0/24 200.200.1.0/24 200.200.2.0/24 .20 .20 .20 .1 .1 .1 200.200.0.0/24 200.200.1.0/24 200.200.2.0/24 .21 .21 .21 .1 .1 .1 20.20.20.4/30 20.20.20.0/30 20.20.20.0/30 20.20.20.8/30 20.20.20.8/30 .2 .2 .1 .1 .5 .6 .9 .10 .10 .9 R1 R2 R5 R6 R3 R4 f0/0 f2/0 f1/1 f1/0 f1/0 f0/0 f2/0 f1/1 f0/0 f1/0 f1/1 f2/0 f1/1 f0/0 f0/0 f1/0 f1/0 f1/1 f2/0 f0/0 f1/1 f2/0
  • 11. Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018 VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING - VRFVRF VIRTUAL ROUTING AND FORWARDING: Caso_02 CISCO 210.16.0.0/24 210.16.1.0/24 210.16.2.0/24 .2 .2 .2 .1 .1 .1 20.20.20.0/30 .2 .1 R1 R3 f0/0 f2/0 f1/1 f1/0 f0/0 R1(config)#interface fastethernet2/0 R1(config-if)#ip address 210.16.0.1 255.255.255.0 R1(config-if)#no shutdown R1(config-if)#exit R1(config)#interface fastethernet1/0 R1(config-if)#ip address 210.16.1.1 255.255.255.0 R1(config-if)#no shutdown R1(config-if)#exit R1(config)#interface fastethernet1/1 R1(config-if)#ip address 210.16.2.1 255.255.255.0 R1(config-if)#no shutdown R1(config-if)#exit R1(config)#interface fastethernet0/0 R1(config-if)#ip address 20.20.20.2 255.255.255.252 R1(config-if)#no shutdown R1(config-if)#exit R1(config)#ip route 0.0.0.0 0.0.0.0 20.20.20.1
  • 12. Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018 VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING - VRFVRF VIRTUAL ROUTING AND FORWARDING: Caso_02 CISCO 210.16.0.0/24 210.16.1.0/24 210.16.2.0/24 .2 .2 .2 .1 .1 .1 20.20.20.0/30 .2 .1 R2 R3 f1/0 f0/0 f2/0 f1/1 f1/0 R2(config)#interface fastethernet0/0 R2(config-if)#ip address 210.16.0.1 255.255.255.0 R2(config-if)#no shutdown R2(config-if)#exit R2(config)#interface fastethernet1/1 R2(config-if)#ip address 210.16.1.1 255.255.255.0 R2(config-if)#no shutdown R2(config-if)#exit R2(config)#interface fastethernet2/0 R2(config-if)#ip address 210.16.2.1 255.255.255.0 R2(config-if)#no shutdown R2(config-if)#exit R2(config)#interface fastethernet1/0 R2(config-if)#ip address 20.20.20.2 255.255.255.252 R2(config-if)#no shutdown R2(config-if)#exit R2(config)#ip route 0.0.0.0 0.0.0.0 20.20.20.1
  • 13. Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018 VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING - VRFVRF VIRTUAL ROUTING AND FORWARDING: Caso_02 CISCO 200.200.0.0/24 200.200.1.0/24 200.200.2.0/24 .20 .20 .20 .1 .1 .1 20.20.20.8/30 .9 .10 R5 R4 f1/1 f0/0 f1/0 f1/1 f2/0 R5(config)#interface fastethernet1/0 R5(config-if)#ip address 200.200.0.1 255.255.255.0 R5(config-if)#no shutdown R5(config-if)#exit R5(config)#interface fastethernet1/1 R5(config-if)#ip address 200.200.1.1 255.255.255.0 R5(config-if)#no shutdown R5(config-if)#exit R5(config)#interface fastethernet2/0 R5(config-if)#ip address 200.200.2.1 255.255.255.0 R5(config-if)#no shutdown R5(config-if)#exit R5(config)#interface fastethernet0/0 R5(config-if)#ip address 20.20.20.10 255.255.255.252 R5(config-if)#no shutdown R5(config-if)#exit R5(config)#ip route 0.0.0.0 0.0.0.0 20.20.20.9
  • 14. Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018 VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING - VRFVRF VIRTUAL ROUTING AND FORWARDING: Caso_02 CISCO 200.200.0.0/24 200.200.1.0/24 200.200.2.0/24 .21 .21 .21 .1 .1 .1.10 .9 R6 R4 f0/0 f1/0 f0/0 f1/1 f2/0 R6(config)#interface fastethernet0/0 R6(config-if)#ip address 200.200.0.1 255.255.255.0 R6(config-if)#no shutdown R6(config-if)#exit R6(config)#interface fastethernet1/1 R6(config-if)#ip address 200.200.1.1 255.255.255.0 R6(config-if)#no shutdown R6(config-if)#exit R6(config)#interface fastethernet2/0 R6(config-if)#ip address 200.200.2.1 255.255.255.0 R6(config-if)#no shutdown R6(config-if)#exit R6(config)#interface fastethernet1/0 R6(config-if)#ip address 20.20.20.10 255.255.255.252 R6(config-if)#no shutdown R6(config-if)#exit R6(config)#ip route 0.0.0.0 0.0.0.0 20.20.20.9
  • 15. Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018 VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING - VRFVRF VIRTUAL ROUTING AND FORWARDING: Caso_02 CISCO R3(config)#ip vrf empresa_a R3(config-vrf)#rd 10:1 R3(config-vrf)#exit R3(config)#ip vrf empresa_b R3(config-vrf)#rd 10:2 R3(config-vrf)#exit R3(config)#interface fastethernet0/0 R3(config-if)#ip vrf forwarding empresa_a R3(config-if)#ip address 20.20.20.1 255.255.255.252 R3(config-if)#no shutdown R3(config-if)#exit R3(config)#interface fastethernet1/0 R3(config-if)#ip vrf forwarding empresa_b R3(config-if)#ip address 20.20.20.1 255.255.255.252 R3(config-if)#no shutdown R3(config-if)#exit EMPRESA A EMPRESA B 20.20.20.4/30 20.20.20.0/30 20.20.20.0/30 20.20.20.8/30 20.20.20.8/30 .2 .2 .1 .1 .5 .6 .9 .10 .10 .9 R1 R2 R5 R6 R3 R4 Tabla VRF EMPR_A Tabla VRF EMPR_B Tabla VRF EMPR_A Tabla VRF EMPR_B f0/0 f1/0 f1/1 f2/0 f1/1 f0/0
  • 16. Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018 VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING - VRFVRF VIRTUAL ROUTING AND FORWARDING: Caso_02 CISCO R3(config)#ip route vrf empresa_a 210.16.0.0 255.255.255.0 20.20.20.2 R3(config)#ip route vrf empresa_a 210.16.1.0 255.255.255.0 20.20.20.2 R3(config)#ip route vrf empresa_a 210.16.2.0 255.255.255.0 20.20.20.2 R3(config)#ip route vrf empresa_a 200.200.0.0 255.255.255.0 20.20.20.6 R3(config)#ip route vrf empresa_a 200.200.1.0 255.255.255.0 20.20.20.6 R3(config)#ip route vrf empresa_a 200.200.2.0 255.255.255.0 20.20.20.6 R3(config)# R3(config)#ip route vrf empresa_b 210.16.0.0 255.255.255.0 20.20.20.2 R3(config)#ip route vrf empresa_b 210.16.1.0 255.255.255.0 20.20.20.2 R3(config)#ip route vrf empresa_b 210.16.2.0 255.255.255.0 20.20.20.2 R3(config)#ip route vrf empresa_b 200.200.0.0 255.255.255.0 20.20.20.6 R3(config)#ip route vrf empresa_b 200.200.1.0 255.255.255.0 20.20.20.6 R3(config)#ip route vrf empresa_b 200.200.2.0 255.255.255.0 20.20.20.6 EMPRESA A EMPRESA B 20.20.20.4/30 20.20.20.0/30 20.20.20.0/30 20.20.20.8/30 20.20.20.8/30 .2 .2 .1 .1 .5 .6 .9 .10 .10 .9 R1 R2 R5 R6 R3 R4 Tabla VRF EMPR_A Tabla VRF EMPR_B Tabla VRF EMPR_A Tabla VRF EMPR_B f0/0 f1/0 f1/1 f2/0 f1/1 f0/0
  • 17. Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018 VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING - VRFVRF VIRTUAL ROUTING AND FORWARDING: Caso_02 CISCO R3(config)#interface fastethernet1/1 R3(config-if)#no shutdown R3(config-if)#exit R3(config)#interface fastethernet1/1.1 R3(config-if)#ip vrf forwarding empresa_a R3(config-if)#encapsulation dot1q 1 R3(config-if)#ip address 20.20.20.5 255.255.255.252 R3(config-if)#no shutdown R3(config-if)#exit R3(config)# R3(config)#interface fastethernet1/1.2 R3(config-if)#ip vrf forwarding empresa_b R3(config-if)#encapsulation dot1q 2 R3(config-if)#ip address 20.20.20.5 255.255.255.252 R3(config-if)#no shutdown R3(config-if)#exit EMPRESA A EMPRESA B 20.20.20.4/30 20.20.20.0/30 20.20.20.0/30 20.20.20.8/30 20.20.20.8/30 .2 .2 .1 .1 .5 .6 .9 .10 .10 .9 R1 R2 R5 R6 R3 R4 Tabla VRF EMPR_A Tabla VRF EMPR_B Tabla VRF EMPR_A Tabla VRF EMPR_B f0/0 f1/0 f1/1 f2/0 f1/1 f0/0 20.20.20.4/30 f1/1 f2/0 .5 .6 Subinterfaz fa1/1.1 Subinterfaz fa2/0.1 Subinterfaz fa1/1.2 Subinterfaz fa2/0.2 R3 R4
  • 18. Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018 VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING - VRFVRF VIRTUAL ROUTING AND FORWARDING: Caso_02 CISCO R4(config)#ip vrf empresa_a R4(config-vrf)#rd 10:1 R4(config-vrf)#exit R4(config)#ip vrf empresa_b R4(config-vrf)#rd 10:2 R4(config-vrf)#exit R4(config)#interface fastethernet1/1 R4(config-if)#ip vrf forwarding empresa_a R4(config-if)#ip address 20.20.20.9 255.255.255.252 R4(config-if)#no shutdown R4(config-if)#exit R4(config)#interface fastethernet0/0 R4(config-if)#ip vrf forwarding empresa_b R4(config-if)#ip address 20.20.20.9 255.255.255.252 R4(config-if)#no shutdown R4(config-if)#exit EMPRESA A EMPRESA B 20.20.20.4/30 20.20.20.0/30 20.20.20.0/30 20.20.20.8/30 20.20.20.8/30 .2 .2 .1 .1 .5 .6 .9 .10 .10 .9 R1 R2 R5 R6 R3 R4 Tabla VRF EMPR_A Tabla VRF EMPR_B Tabla VRF EMPR_A Tabla VRF EMPR_B f0/0 f1/0 f1/1 f2/0 f1/1 f0/0
  • 19. Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018 VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING - VRFVRF R4(config)#ip route vrf empresa_a 210.16.0.0 255.255.255.0 20.20.20.5 R4(config)#ip route vrf empresa_a 210.16.1.0 255.255.255.0 20.20.20.5 R4(config)#ip route vrf empresa_a 210.16.2.0 255.255.255.0 20.20.20.5 R4(config)#ip route vrf empresa_a 200.200.0.0 255.255.255.0 20.20.20.10 R4(config)#ip route vrf empresa_a 200.200.1.0 255.255.255.0 20.20.20.10 R4(config)#ip route vrf empresa_a 200.200.2.0 255.255.255.0 20.20.20.10 R4(config)# R4(config)#ip route vrf empresa_b 210.16.0.0 255.255.255.0 20.20.20.5 R4(config)#ip route vrf empresa_b 210.16.1.0 255.255.255.0 20.20.20.5 R4(config)#ip route vrf empresa_b 210.16.2.0 255.255.255.0 20.20.20.5 R4(config)#ip route vrf empresa_b 200.200.0.0 255.255.255.0 20.20.20.10 R4(config)#ip route vrf empresa_b 200.200.1.0 255.255.255.0 20.20.20.10 R4(config)#ip route vrf empresa_b 200.200.2.0 255.255.255.0 20.20.20.10 VIRTUAL ROUTING AND FORWARDING: Caso_02 CISCO EMPRESA A EMPRESA B 20.20.20.4/30 20.20.20.0/30 20.20.20.0/30 20.20.20.8/30 20.20.20.8/30 .2 .2 .1 .1 .5 .6 .9 .10 .10 .9 R1 R2 R5 R6 R3 R4 Tabla VRF EMPR_A Tabla VRF EMPR_B Tabla VRF EMPR_A Tabla VRF EMPR_B f0/0 f1/0 f1/1 f2/0 f1/1 f0/0
  • 20. Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018 VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING - VRFVRF VIRTUAL ROUTING AND FORWARDING: Caso_02 CISCO R4(config)#interface fastethernet2/0 R4(config-if)#no shutdown R4(config-if)#exit R4(config)#interface fastethernet2/0.1 R4(config-if)#ip vrf forwarding empresa_a R4(config-if)#encapsulation dot1Q 1 R4(config-if)#ip address 20.20.20.6 255.255.255.252 R4(config-if)#no shutdown R4(config-if)#exit R4(config)# R4(config)#interface fastethernet2/0.2 R4(config-if)#ip vrf forwarding empresa_b R4(config-if)#encapsulation dot1Q 2 R4(config-if)#ip address 20.20.20.6 255.255.255.252 R4(config-if)#no shutdown R4(config-if)#exit EMPRESA A EMPRESA B 20.20.20.4/30 20.20.20.0/30 20.20.20.0/30 20.20.20.8/30 20.20.20.8/30 .2 .2 .1 .1 .5 .6 .9 .10 .10 .9 R1 R2 R5 R6 R3 R4 Tabla VRF EMPR_A Tabla VRF EMPR_B Tabla VRF EMPR_A Tabla VRF EMPR_B f0/0 f1/0 f1/1 f2/0 f1/1 f0/0 20.20.20.4/30 f1/1 f2/0 .5 .6 Subinterfaz fa1/1.1 Subinterfaz fa2/0.1 Subinterfaz fa1/1.2 Subinterfaz fa2/0.2 R3 R4
  • 21. Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018 VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING - VRFVRF R2#show ip route 20.0.0.0/30 is subnetted, 1 subnets C 20.20.20.0 is directly connected, FastEthernet1/0 C 210.16.2.0/24 is directly connected, FastEthernet2/0 C 210.16.1.0/24 is directly connected, FastEthernet1/1 C 210.16.0.0/24 is directly connected, FastEthernet0/0 S* 0.0.0.0/0 [1/0] via 20.20.20.1 R2# VIRTUAL ROUTING AND FORWARDING: Caso_02 CISCO R1#show ip route 20.0.0.0/30 is subnetted, 1 subnets C 20.20.20.0 is directly connected, FastEthernet0/0 C 210.16.2.0/24 is directly connected, FastEthernet1/1 C 210.16.1.0/24 is directly connected, FastEthernet1/0 C 210.16.0.0/24 is directly connected, FastEthernet2/0 S* 0.0.0.0/0 [1/0] via 20.20.20.1 R1#
  • 22. Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018 VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING - VRFVRF R3#show ip route vrf empresa_b Routing Table: empresa_b S 200.200.0.0/24 [1/0] via 20.20.20.6 20.0.0.0/30 is subnetted, 2 subnets C 20.20.20.4 is directly connected, FastEthernet1/1.2 C 20.20.20.0 is directly connected, FastEthernet1/0 S 200.200.1.0/24 [1/0] via 20.20.20.6 S 200.200.2.0/24 [1/0] via 20.20.20.6 S 210.16.2.0/24 [1/0] via 20.20.20.2 S 210.16.1.0/24 [1/0] via 20.20.20.2 S 210.16.0.0/24 [1/0] via 20.20.20.2 R3# VIRTUAL ROUTING AND FORWARDING: Caso_02 CISCO R3#show ip route vrf empresa_a Routing Table: empresa_a S 200.200.0.0/24 [1/0] via 20.20.20.6 20.0.0.0/30 is subnetted, 2 subnets C 20.20.20.4 is directly connected, FastEthernet1/1.1 C 20.20.20.0 is directly connected, FastEthernet0/0 S 200.200.1.0/24 [1/0] via 20.20.20.6 S 200.200.2.0/24 [1/0] via 20.20.20.6 S 210.16.2.0/24 [1/0] via 20.20.20.2 S 210.16.1.0/24 [1/0] via 20.20.20.2 S 210.16.0.0/24 [1/0] via 20.20.20.2 R3# R3#show ip route R3#
  • 23. Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018 VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING - VRFVRF R4#show ip route vrf empresa_b Routing Table: empresa_b S 200.200.0.0/24 [1/0] via 20.20.20.10 20.0.0.0/30 is subnetted, 2 subnets C 20.20.20.4 is directly connected, FastEthernet2/0.2 C 20.20.20.8 is directly connected, FastEthernet0/0 S 200.200.1.0/24 [1/0] via 20.20.20.10 S 200.200.2.0/24 [1/0] via 20.20.20.10 S 210.16.2.0/24 [1/0] via 20.20.20.5 S 210.16.1.0/24 [1/0] via 20.20.20.5 S 210.16.0.0/24 [1/0] via 20.20.20.5 R4# VIRTUAL ROUTING AND FORWARDING: Caso_02 CISCO R4#show ip route vrf empresa_a Routing Table: empresa_a S 200.200.0.0/24 [1/0] via 20.20.20.10 20.0.0.0/30 is subnetted, 2 subnets C 20.20.20.4 is directly connected, FastEthernet2/0.1 C 20.20.20.8 is directly connected, FastEthernet1/1 S 200.200.1.0/24 [1/0] via 20.20.20.10 S 200.200.2.0/24 [1/0] via 20.20.20.10 S 210.16.2.0/24 [1/0] via 20.20.20.5 S 210.16.1.0/24 [1/0] via 20.20.20.5 S 210.16.0.0/24 [1/0] via 20.20.20.5 R4# R4#show ip route R4#
  • 24. Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018 VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING - VRFVRF R6show ip route C 200.200.0.0/24 is directly connected, FastEthernet0/0 20.0.0.0/30 is subnetted, 1 subnets C 20.20.20.8 is directly connected, FastEthernet1/0 C 200.200.1.0/24 is directly connected, FastEthernet1/1 C 200.200.2.0/24 is directly connected, FastEthernet2/0 S* 0.0.0.0/0 [1/0] via 20.20.20.9 R6# VIRTUAL ROUTING AND FORWARDING: Caso_02 CISCO R5#show ip route C 200.200.0.0/24 is directly connected, FastEthernet1/0 20.0.0.0/30 is subnetted, 1 subnets C 20.20.20.8 is directly connected, FastEthernet0/0 C 200.200.1.0/24 is directly connected, FastEthernet1/1 C 200.200.2.0/24 is directly connected, FastEthernet2/0 S* 0.0.0.0/0 [1/0] via 20.20.20.9 R5#
  • 25. Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018 VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING - VRFVRF VIRTUAL ROUTING AND FORWARDING: Caso_02 CISCO PC-1> ping 200.200.0.20 84 bytes from 200.200.0.20 icmp_seq=1 ttl=60 time=131.544 ms 84 bytes from 200.200.0.20 icmp_seq=2 ttl=60 time=137.132 ms 84 bytes from 200.200.0.20 icmp_seq=3 ttl=60 time=131.475 ms 84 bytes from 200.200.0.20 icmp_seq=4 ttl=60 time=137.491 ms 84 bytes from 200.200.0.20 icmp_seq=5 ttl=60 time=131.436 ms
  • 26. Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018 VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING - VRFVRF VIRTUAL ROUTING AND FORWARDING: Caso_02 CISCO PC-11> ping 210.16.2.2 84 bytes from 210.16.2.2 icmp_seq=1 ttl=60 time=131.378 ms 84 bytes from 210.16.2.2 icmp_seq=2 ttl=60 time=131.976 ms 84 bytes from 210.16.2.2 icmp_seq=3 ttl=60 time=131.537 ms 84 bytes from 210.16.2.2 icmp_seq=4 ttl=60 time=131.100 ms 84 bytes from 210.16.2.2 icmp_seq=5 ttl=60 time=137.849 ms PC-11> No hay captura
  • 27. Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018 VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING - VRFVRF VIRTUAL ROUTING AND FORWARDING: Caso_03 CISCO … … … … 200.10.1.0/24 200.20.1.0/24 200.10.2.0/24200.20.2.0/24 192.168.55.0/30 10.20.30.0/30 Acceso de Internet invitados Acceso de Internet coorporativa Usuarios invitados Usuarios invitados Usuarios coorporativos Usuarios coorporativos Ra Rb R1 R2 R3 Rc Rd .1 .2 .2 .1 OSPFv2 f0/0 f1/0 f1/1 f0/0 f1/0f1/1 f0/0 f0/0 f2/0 f0/0 f1/0 f1/1 f0/0 f0/0 f1/0 f1/1 f1/0 f1/1
  • 28. Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018 VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING - VRFVRF VIRTUAL ROUTING AND FORWARDING: Caso_03 CISCO … … … … 200.10.1.0/24 200.20.1.0/24 200.10.2.0/24200.20.2.0/24 192.168.55.0/30 10.20.30.0/30 Acceso de Internet invitados Acceso de Internet coorporativa Usuarios invitados Usuarios invitados Usuarios coorporativos Usuarios coorporativos Ra Rb R1 R2 R3 Rc Rd .1 .2 .2 .1 192.16.55.4/30 10.20.30.4/30 10.20.30.8/30192.168.55.8/30 192.168.55.12/30 10.20.30.12/30 192.168.55.16/30 10.20.30.16/30 192.168.55.20/30 10.20.30.20/30 .5 .9 .6 .10 .18 .21 .17 .22.18 .17 .21 .22 .5 .9 .6 .10 .13 .14 .13 .14 f0/0 f1/0 f1/1.10 f0/0.10 f1/0.20 f1/1.10 f0/0.10 f0/0 f2/0.20 f0/0.20 f1/0.10 f1/1.10 f0/0.10 f0/0 f1/0 f1/1 f1/0 f1/1 f1/1.20 f2/0.10 f1/0.10 f0/0.10 f1/0.20 f0/0.20 f1/1.20 f0/0.20 f1/1.20 f0/0.20
  • 29. Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018 VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING - VRFVRF VIRTUAL ROUTING AND FORWARDING: Caso_03 CISCO … … … … 200.10.1.0/24 200.20.1.0/24 200.10.2.0/24200.20.2.0/24 192.168.55.0/30 10.20.30.0/30 Acceso de Internet invitados Acceso de Internet coorporativa Usuarios invitados Usuarios invitados Usuarios coorporativos Usuarios coorporativos Ra Rb R1 R2 R3 Rc Rd .1 .2 .2 .1 OSPFv2 192.16.55.4/30 10.20.30.4/30 10.20.30.8/30192.168.55.8/30 192.168.55.12/30 10.20.30.12/30 192.168.55.16/30 10.20.30.16/30 192.168.55.20/30 10.20.30.20/30 costo 7 costo 1 costo 2costo 2 costo 2costo 1 costo 2 costo 4 costo 2 costo 2
  • 30. Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018 VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING - VRFVRF VIRTUAL ROUTING AND FORWARDING: Caso_03 CISCO R1(config)#interface fastethernet1/0 R1(config-if)#ip vrf forwarding invitados R1(config-if)# ip address 192.168.55.2 255.255.255.252 R1(config-if)#no shutdown R1(config-if)#exit R1(config)#interface fastethernet0/0 R1(config-if)#ip vrf forwarding coorporativos R1(config-if)# ip address 10.20.30.2 255.255.255.252 R1(config-if)#no shutdown R1(config-if)#exit R1(config)#interface fastethernet1/1 R1(config-if)#no shutdown R1(config-if)#exit R1(config)#interface fastethernet1/1.10 R1(config-subif)#ip vrf forwarding invitados R1(config-subif)#encapsulation dot1Q 10 R1(config-subif)#ip address 192.168.55.5 255.255.255.252 R1(config-subif)#no shutdown R1(config-subif)#ip ospf cost 7 R1(config-subif)#exit R1(config)# R1(config)#ip vrf invitados R1(config-vrf)#rd 10:10 R1(config-vrf)#exit R1(config)#ip vrf coorporativos R1(config-vrf)#rd 10:20 R1(config-vrf)#exit 192.168.55.0/30 10.20.30.0/30R1 192.16.55.4/30 10.20.30.4/30 10.20.30.8/30192.168.55.8/30 costo 7 costo 1 costo 1 costo 4 f1/0 f1/1.10 f0/0 f2/0.10 .2 .2 .5 .9 .5 .9 f2/0.20 f1/1.20 Ra Rb .1 .1 f0/0 f0/0 f1/1 f2/0
  • 31. Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018 VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING - VRFVRF VIRTUAL ROUTING AND FORWARDING: Caso_03 CISCO R1(config)#interface fastethernet1/1.20 R1(config-subif)#ip vrf forwarding coorporativos R1(config-subif)#encapsulation dot1Q 20 R1(config-subif)#ip address 10.20.30.5 255.255.255.252 R1(config-subif)#no shutdown R1(config-subif)#ip ospf cost 1 R1(config-subif)#exit R1(config)# R1(config)#interface fastethernet2/0 R1(config-if)#no shutdown R1(config-if)#exit R1(config)#interface fastethernet2/0.10 R1(config-subif)#ip vrf forwarding invitados R1(config-subif)#encapsulation dot1Q 10 R1(config-subif)#ip address 192.168.55.9 255.255.255.252 R1(config-subif)#no shutdown R1(config-subif)#ip ospf cost 1 R1(config-subif)#exit R1(config)# R1(config)#ip vrf invitados R1(config-vrf)#rd 10:10 R1(config-vrf)#exit R1(config)#ip vrf coorporativos R1(config-vrf)#rd 10:20 R1(config-vrf)#exit 192.168.55.0/30 10.20.30.0/30R1 192.16.55.4/30 10.20.30.4/30 10.20.30.8/30192.168.55.8/30 costo 7 costo 1 costo 1 costo 4 f1/0 f1/1.10 f0/0 f2/0.10 .2 .2 .5 .9 .5 .9 f2/0.20 f1/1.20 Ra Rb .1 .1 f0/0 f0/0 f1/1 f2/0
  • 32. Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018 VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING - VRFVRF VIRTUAL ROUTING AND FORWARDING: Caso_03 CISCO R1(config)#interface fastethernet2/0.20 R1(config-subif)#ip vrf forwarding coorporativos R1(config-subif)#encapsulation dot1Q 20 R1(config-subif)#ip address 10.20.30.9 255.255.255.252 R1(config-subif)#no shutdown R1(config-subif)#ip ospf cost 4 R1(config-subif)#exit R1(config)# R1(config)#ip vrf invitados R1(config-vrf)#rd 10:10 R1(config-vrf)#exit R1(config)#ip vrf coorporativos R1(config-vrf)#rd 10:20 R1(config-vrf)#exit 192.168.55.0/30 10.20.30.0/30R1 192.16.55.4/30 10.20.30.4/30 10.20.30.8/30192.168.55.8/30 costo 7 costo 1 costo 1 costo 4 f1/0 f1/1.10 f0/0 f2/0.10 .2 .2 .5 .9 .5 .9 f2/0.20 f1/1.20 Ra Rb .1 .1 f0/0 f0/0 f1/1 f2/0 R1(config)#ip route vrf invitados 0.0.0.0 0.0.0.0 192.168.55.1 R1(config)#ip route vrf coorporativos 0.0.0.0 0.0.0.0 10.20.30.1 R1(config)#router ospf 10 vrf invitados R1(config-router)#redistribute static metric 15 subnets R1(config-router)#default-information originate R1(config-router)#network 192.168.55.0 0.0.0.3 area 0 R1(config-router)#network 192.168.55.4 0.0.0.3 area 0 R1(config-router)#network 192.168.55.8 0.0.0.3 area 0 R1(config-router)#exit R1(config)# Propaga la ruta estática por defecto en mensajes OSPF
  • 33. Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018 VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING - VRFVRF VIRTUAL ROUTING AND FORWARDING: Caso_03 CISCO R1(config)#ip vrf invitados R1(config-vrf)#rd 10:10 R1(config-vrf)#exit R1(config)#ip vrf coorporativos R1(config-vrf)#rd 10:20 R1(config-vrf)#exit 192.168.55.0/30 10.20.30.0/30R1 192.16.55.4/30 10.20.30.4/30 10.20.30.8/30192.168.55.8/30 costo 7 costo 1 costo 1 costo 4 f1/0 f1/1.10 f0/0 f2/0.10 .2 .2 .5 .9 .5 .9 f2/0.20 f1/1.20 Ra Rb .1 .1 f0/0 f0/0 f1/1 f2/0 R1(config)#router ospf 20 vrf coorporativos R1(config-router)#redistribute static metric 15 subnets R1(config-router)#default-information originate R1(config-router)#network 10.20.30.0 0.0.0.3 area 0 R1(config-router)#network 10.20.30.4 0.0.0.3 area 0 R1(config-router)#network 10.20.30.8 0.0.0.3 area 0 R1(config-router)#exit R1(config)# Propaga la ruta estática por defecto en mensajes OSPF
  • 34. Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018 VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING - VRFVRF VIRTUAL ROUTING AND FORWARDING: Caso_03 CISCO R2(config)#ip vrf invitados R2(config-vrf)#rd 10:10 R2(config-vrf)#exit R2(config)#ip vrf coorporativos R2(config-vrf)#rd 10:20 R2(config-vrf)#exit R2(config)#interface fastethernet1/1 R2(config-if)#no shutdown R2(config-if)#exit R2(config)#interface fastethernet1/0 R2(config-if)#no shutdown R2(config-if)#exit R2(config)#interface fastethernet1/1.10 R2(config-subif)#ip vrf forwarding invitados R2(config-subif)#encapsulation dot1Q 10 R2(config-subif)#ip address 192.168.55.18 255.255.255.252 R2(config-subif)#no shutdown R2(config-subif)#ip ospf cost 2 R2(config-subif)#exit R2(config)#interface fastethernet1/0.10 R2(config-subif)#ip vrf forwarding invitados R2(config-subif)#encapsulation dot1Q 10 R2(config-subif)#ip address 192.168.55.13 255.255.255.252 R2(config-subif)#no shutdown R2(config-subif)#ip ospf cost 2 R2(config-subif)#exit R2 Rc 192.16.55.4/30 10.20.30.4/30 192.168.55.12/30 10.20.30.12/30 192.168.55.16/30 10.20.30.16/30 .6 .18 .17 .18 .17 .6 .13 .14 .13 .14 f1/1.10 f0/0.10 f1/0.20 f1/1.10 f0/0.10 f1/1.20 f1/0.10 f0/0.20 f1/1.20 f0/0.20 f0/0 f1/0 f1/1 costo 7 costo 2 costo 2 costo 1 costo 2 costo 2
  • 35. Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018 VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING - VRFVRF VIRTUAL ROUTING AND FORWARDING: Caso_03 CISCO R2(config)#interface fastethernet0/0 R2(config-if)#no shutdown R2(config-if)#exit R2(config)#interface fastethernet0/0.10 R2(config-subif)#ip vrf forwarding invitados R2(config-subif)#encapsulation dot1Q 10 R2(config-subif)#ip address 192.168.55.6 255.255.255.252 R2(config-subif)#no shutdown R2(config-subif)#ip ospf cost 7 R2(config-subif)#exit R2(config)# R2(config)#interface fastethernet1/1.20 R2(config-subif)#ip vrf forwarding coorporativos R2(config-subif)#encapsulation dot1Q 20 R2(config-subif)#ip address 10.20.30.18 255.255.255.252 R2(config-subif)#no shutdown R2(config-subif)#ip ospf cost 2 R2(config-subif)#exit R2(config)#ip vrf invitados R2(config-vrf)#rd 10:10 R2(config-vrf)#exit R2(config)#ip vrf coorporativos R2(config-vrf)#rd 10:20 R2(config-vrf)#exit R2 Rc 192.16.55.4/30 10.20.30.4/30 192.168.55.12/30 10.20.30.12/30 192.168.55.16/30 10.20.30.16/30 .6 .18 .17 .18 .17 .6 .13 .14 .13 .14 f1/1.10 f0/0.10 f1/0.20 f1/1.10 f0/0.10 f1/1.20 f1/0.10 f0/0.20 f1/1.20 f0/0.20 f0/0 f1/0 f1/1 costo 7 costo 2 costo 2 costo 1 costo 2 costo 2
  • 36. Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018 VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING - VRFVRF VIRTUAL ROUTING AND FORWARDING: Caso_03 CISCO R2(config)#interface fastethernet1/0.20 R2(config-subif)#ip vrf forwarding coorporativos R2(config-subif)#encapsulation dot1Q 20 R2(config-subif)#ip address 10.20.30.13 255.255.255.252 R2(config-subif)#no shutdown R2(config-subif)#ip ospf cost 2 R2(config-subif)#exit R2(config)#interface fastethernet0/0.20 R2(config-subif)#ip vrf forwarding coorporativos R2(config-subif)#encapsulation dot1Q 20 R2(config-subif)#ip address 10.20.30.6 255.255.255.252 R2(config-subif)#no shutdown R2(config-subif)#ip ospf cost 1 R2(config-subif)#exit R2(config)#ip vrf invitados R2(config-vrf)#rd 10:10 R2(config-vrf)#exit R2(config)#ip vrf coorporativos R2(config-vrf)#rd 10:20 R2(config-vrf)#exit R2 Rc 192.16.55.4/30 10.20.30.4/30 192.168.55.12/30 10.20.30.12/30 192.168.55.16/30 10.20.30.16/30 .6 .18 .17 .18 .17 .6 .13 .14 .13 .14 f1/1.10 f0/0.10 f1/0.20 f1/1.10 f0/0.10 f1/1.20 f1/0.10 f0/0.20 f1/1.20 f0/0.20 f0/0 f1/0 f1/1 costo 7 costo 2 costo 2 costo 1 costo 2 costo 2
  • 37. Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018 VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING - VRFVRF VIRTUAL ROUTING AND FORWARDING: Caso_03 CISCO R2(config)#ip vrf invitados R2(config-vrf)#rd 10:10 R2(config-vrf)#exit R2(config)#ip vrf coorporativos R2(config-vrf)#rd 10:20 R2(config-vrf)#exit R2 Rc 192.16.55.4/30 10.20.30.4/30 192.168.55.12/30 10.20.30.12/30 192.168.55.16/30 10.20.30.16/30 .6 .18 .17 .18 .17 .6 .13 .14 .13 .14 f1/1.10 f0/0.10 f1/0.20 f1/1.10 f0/0.10 f1/1.20 f1/0.10 f0/0.20 f1/1.20 f0/0.20 f0/0 f1/0 f1/1 costo 7 costo 2 costo 2 costo 1 costo 2 costo 2 R2(config)#ip route vrf invitados 200.10.1.0 255.255.255.0 192.168.55.17 R2(config)#ip route vrf coorporativos 200.20.1.0 255.255.255.0 10.20.30.17 R2(config)#router ospf 10 vrf invitados R2(config-rt)#redistribute static metric 15 subnets R2(config-rt)#network 192.168.55.4 0.0.0.3 area 0 R2(config-rt)#network 192.168.55.12 0.0.0.3 area 0 R2(config-rt)#network 192.168.55.16 0.0.0.3 area 0 R2(config-rt)#exit R2(config)# R2(config)#router ospf 20 vrf coorporativos R2(config-rt)#redistribute static metric 15 subnets R2(config-router)#network 10.20.30.4 0.0.0.3 area 0 R2(config-router)#network 10.20.30.12 0.0.0.3 area 0 R2(config-router)#network 10.20.30.16 0.0.0.3 area 0 R2(config-router)#exit R2(config)#
  • 38. Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018 VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING - VRFVRF VIRTUAL ROUTING AND FORWARDING: Caso_03 CISCO R3 10.20.30.8/30192.168.55.8/30 192.168.55.12/30 10.20.30.12/30 192.168.55.20/30 10.20.30.20/30 .9 .10 .21 .21 .10 .14 .14 f2/0.20 f0/0.20 f1/0.10 f1/1.10 f2/0.10 f0/0.10 f1/0.20 f1/1.20 costo 1 costo 2 costo 2 costo 2 costo 4 costo 2 R3(config)#ip vrf invitados R3(config-vrf)#rd 10:10 R3(config-vrf)#exit R3(config)#ip vrf coorporativos R3(config-vrf)#rd 10:20 R3(config-vrf)#exit R3(config)#interface fastethernet1/0 R3(config-if)#no shutdown R3(config-if)#exit R3(config)#interface fastethernet0/0 R3(config-if)#no shutdown R3(config-if)#exit R3(config)#interface fastethernet1/0.10 R3(config-subif)#ip vrf forwarding invitados R3(config-subif)#encapsulation dot1Q 10 R3(config-subif)#ip address 192.168.55.10 255.255.255.252 R3(config-subif)#no shutdown R3(config-subif)#ip ospf cost 1 R3(config-subif)#exit R3(config)#interface fastethernet0/0.10 R3(config-subif)#ip vrf forwarding invitados R3(config-subif)#encapsulation dot1Q 10 R3(config-subif)#ip address 192.168.55.14 255.255.255.252 R3(config-subif)#no shutdown R3(config-subif)#ip ospf cost 2 R3(config-subif)#exit
  • 39. Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018 VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING - VRFVRF VIRTUAL ROUTING AND FORWARDING: Caso_03 CISCO R3 10.20.30.8/30192.168.55.8/30 192.168.55.12/30 10.20.30.12/30 192.168.55.20/30 10.20.30.20/30 .9 .10 .21 .21 .10 .14 .14 f2/0.20 f0/0.20 f1/0.10 f1/1.10 f2/0.10 f0/0.10 f1/0.20 f1/1.20 costo 1 costo 2 costo 2 costo 2 costo 4 costo 2 R3(config)#ip vrf invitados R3(config-vrf)#rd 10:10 R3(config-vrf)#exit R3(config)#ip vrf coorporativos R3(config-vrf)#rd 10:20 R3(config-vrf)#exit R3(config)#interface fastethernet1/1 R3(config-if)#no shutdown R3(config-if)#exit R3(config)#interface fastethernet1/1.10 R3(config-subif)#ip vrf forwarding invitados R3(config-subif)#encapsulation dot1Q 10 R3(config-subif)#ip address 192.168.55.21 255.255.255.252 R3(config-subif)#no shutdown R3(config-subif)#ip ospf cost 2 R3(config-subif)#exit R3(config)# R3(config)#interface fastethernet1/0.20 R3(config-subif)#ip vrf forwarding coorporativos R3(config-subif)#encapsulation dot1Q 20 R3(config-subif)#ip address 10.20.30.10 255.255.255.252 R3(config-subif)#no shutdown R3(config-subif)#ip ospf cost 4 R3(config-subif)#exit
  • 40. Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018 VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING - VRFVRF VIRTUAL ROUTING AND FORWARDING: Caso_03 CISCO R3(config)#interface fastethernet0/0.20 R3(config-subif)#ip vrf forwarding coorporativos R3(config-subif)#encapsulation dot1Q 20 R3(config-subif)#ip address 10.20.30.14 255.255.255.252 R3(config-subif)#no shutdown R3(config-subif)#ip ospf cost 2 R3(config-subif)#exit R3(config)#interface fastethernet1/1.20 R3(config-subif)#ip vrf forwarding coorporativos R3(config-subif)#encapsulation dot1Q 20 R3(config-subif)#ip address 10.20.30.21 255.255.255.252 R3(config-subif)#no shutdown R3(config-subif)#ip ospf cost 2 R3(config-subif)#exit R3 10.20.30.8/30192.168.55.8/30 192.168.55.12/30 10.20.30.12/30 192.168.55.20/30 10.20.30.20/30 .9 .10 .21 .21 .10 .14 .14 f2/0.20 f0/0.20 f1/0.10 f1/1.10 f2/0.10 f0/0.10 f1/0.20 f1/1.20 costo 1 costo 2 costo 2 costo 2 costo 4 costo 2 R3(config)#ip vrf invitados R3(config-vrf)#rd 10:10 R3(config-vrf)#exit R3(config)#ip vrf coorporativos R3(config-vrf)#rd 10:20 R3(config-vrf)#exit
  • 41. Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018 VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING - VRFVRF VIRTUAL ROUTING AND FORWARDING: Caso_03 CISCO R3(config)#ip route vrf invitados 200.10.2.0 255.255.255.0 192.168.55.22 R3(config)#ip route vrf coorporativos 200.20.2.0 255.255.255.0 10.20.30.22 R3 10.20.30.8/30192.168.55.8/30 192.168.55.12/30 10.20.30.12/30 192.168.55.20/30 10.20.30.20/30 .9 .10 .21 .21 .10 .14 .14 f2/0.20 f0/0.20 f1/0.10 f1/1.10 f2/0.10 f0/0.10 f1/0.20 f1/1.20 costo 1 costo 2 costo 2 costo 2 costo 4 costo 2 R3(config)#ip vrf invitados R3(config-vrf)#rd 10:10 R3(config-vrf)#exit R3(config)#ip vrf coorporativos R3(config-vrf)#rd 10:20 R3(config-vrf)#exit R3(config)#router ospf 10 vrf invitados R3(config-router)#redistribute static metric 15 subnets R3(config-router)#network 192.168.55.8 0.0.0.3 area 0 R3(config-router)#network 192.168.55.12 0.0.0.3 area 0 R3(config-router)#network 192.168.55.20 0.0.0.3 area 0 R3(config-router)#exit R3(config)# R3(config)#router ospf 20 vrf coorporativos R3(config-router)#redistribute static metric 15 subnets R3(config-router)#network 10.20.30.8 0.0.0.3 area 0 R3(config-router)#network 10.20.30.12 0.0.0.3 area 0 R3(config-router)#network 10.20.30.20 0.0.0.3 area 0 R3(config-router)#exit R3(config)#
  • 42. Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018 VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING - VRFVRF VIRTUAL ROUTING AND FORWARDING: Caso_03 CISCO Rc(config)#interface fastethernet1/0 Rc(config-if)#ip vrf forwarding invitados Rc(config-if)#ip address 200.10.1.1 255.255.255.0 Rc(config-if)#no shutdown Rc(config-if)#exit Rc(config)# Rc(config)#interface fastethernet1/1 Rc(config-if)#ip vrf forwarding coorporativos Rc(config-if)#ip address 200.20.1.1 255.255.255.0 Rc(config-if)#no shutdown Rc(config-if)#exit Rc(config)# … … 200.10.1.0/24 200.20.1.0/24 Usuarios invitados Usuarios coorporativos Rc 192.168.55.16/30 10.20.30.16/30 .18 .17 .18 .17 f1/1.10 f0/0.10 f1/0 f1/1 f1/1.20 f0/0.20 Rc(config)#ip vrf invitados Rc(config-vrf)#rd 10:10 Rc(config-vrf)#exit Rc(config)#ip vrf coorporativos Rc(config-vrf)#rd 10:20 Rc(config-vrf)#exit
  • 43. Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018 VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING - VRFVRF VIRTUAL ROUTING AND FORWARDING: Caso_03 CISCO Rc(config)#interface fastethernet0/0 Rc(config-if)#no shutdown Rc(config-if)#exit Rc(config)#interface fastethernet0/0.10 Rc(config-subif)#ip vrf forwarding invitados Rc(config-subif)#encapsulation dot1Q 10 Rc(config-subif)#ip address 192.168.55.17 255.255.255.252 Rc(config-subif)#no shutdown Rc(config-subif)#exit Rc(config)# Rc(config)#interface fastethernet0/0.20 Rc(config-subif)#ip vrf forwarding coorporativos Rc(config-subif)#encapsulation dot1Q 20 Rc(config-subif)#ip address 10.20.30.17 255.255.255.252 Rc(config-subif)#no shutdown Rc(config-subif)#exit Rc(config)# … … 200.10.1.0/24 200.20.1.0/24 Usuarios invitados Usuarios coorporativos Rc 192.168.55.16/30 10.20.30.16/30 .18 .17 .18 .17 f1/1.10 f0/0.10 f1/0 f1/1 f1/1.20 f0/0.20 Rc(config)#ip vrf invitados Rc(config-vrf)#rd 10:10 Rc(config-vrf)#exit Rc(config)#ip vrf coorporativos Rc(config-vrf)#rd 10:20 Rc(config-vrf)#exit Rc(config)#ip route vrf invitados 0.0.0.0 0.0.0.0 192.168.55.18 Rc(config)#ip route vrf coorporativos 0.0.0.0 0.0.0.0 10.20.30.18
  • 44. Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018 VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING - VRFVRF VIRTUAL ROUTING AND FORWARDING: Caso_03 CISCO Rd(config)#interface fastethernet1/1 Rd(config-if)#ip vrf forwarding invitados Rd(config-if)#ip address 200.10.2.1 255.255.255.0 Rd(config-if)#no shutdown Rd(config-if)#exit Rd(config)# Rd(config)#interface fastethernet1/0 Rd(config-if)#ip vrf forwarding coorporativos Rd(config-if)#ip address 200.20.2.1 255.255.255.0 Rd(config-if)#no shutdown Rd(config-if)#exit Rd(config)# Rd(config)#ip vrf invitados Rd(config-vrf)#rd 10:10 Rd(config-vrf)#exit Rd(config)#ip vrf coorporativos Rd(config-vrf)#rd 10:20 Rd(config-vrf)#exit … … 200.10.2.0/24200.20.2.0/24 Usuarios invitados Usuarios coorporativos R3 Rd 192.168.55.20/30 10.20.30.20/30 .21 .22.21 .22 f1/1.10 f0/0.10 f1/0 f1/1 f1/1.20 f0/0.20
  • 45. Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018 VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING - VRFVRF VIRTUAL ROUTING AND FORWARDING: Caso_03 CISCO Rd(config)#ip vrf invitados Rd(config-vrf)#rd 10:10 Rd(config-vrf)#exit Rd(config)#ip vrf coorporativos Rd(config-vrf)#rd 10:20 Rd(config-vrf)#exit … … 200.10.2.0/24200.20.2.0/24 Usuarios invitados Usuarios coorporativos R3 Rd 192.168.55.20/30 10.20.30.20/30 .21 .22.21 .22 f1/1.10 f0/0.10 f1/0 f1/1 f1/1.20 f0/0.20 Rd(config)#interface fastethernet0/0 Rd(config-if)#no shutdown Rd(config-if)#exit Rd(config)#interface fastethernet0/0.10 Rd(config-subif)#ip vrf forwarding invitados Rd(config-subif)#encapsulation dot1Q 10 Rd(config-subif)#ip address 192.168.55.22 255.255.255.252 Rd(config-subif)#no shutdown Rd(config-subif)#exit Rd(config)# Rd(config)#interface fastethernet0/0.20 Rd(config-subif)#ip vrf forwarding coorporativos Rd(config-subif)#encapsulation dot1Q 20 Rd(config-subif)#ip address 10.20.30.22 255.255.255.252 Rd(config-subif)#no shutdown Rd(config-isubf)#exit Rd(config)# Rd(config)#ip route vrf invitados 0.0.0.0 0.0.0.0 192.168.55.21 Rd(config)#ip route vrf coorporativos 0.0.0.0 0.0.0.0 10.20.30.21
  • 46. Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018 VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING - VRFVRF VIRTUAL ROUTING AND FORWARDING: Caso_03 CISCO … … … … 200.10.1.0/24 200.20.1.0/24 200.10.2.0/24200.20.2.0/24 192.168.55.0/30 10.20.30.0/30 Acceso de Internet invitados Acceso de Internet coorporativa Usuarios invitados Usuarios invitados Usuarios coorporativos Usuarios coorporativos Ra Rb R1 R2 R3 Rc Rd .1 .2 .2 .1 OSPFv2 192.16.55.4/30 10.20.30.4/30 10.20.30.8/30192.168.55.8/30 192.168.55.12/30 10.20.30.12/30 192.168.55.16/30 10.20.30.16/30 192.168.55.20/30 10.20.30.20/30 costo 7 costo 1 costo 2costo 2 costo 2costo 1 costo 2 costo 4 costo 2 costo 2
  • 47. Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018 VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING - VRFVRF VIRTUAL ROUTING AND FORWARDING: Caso_03 CISCO R3#show ip route vrf invitados Routing Table: invitados O E2 200.10.1.0/24 [110/15] via 192.168.55.13, 00:48:22, FastEthernet0/0.10 S 200.10.2.0/24 [1/0] via 192.168.55.22 192.168.55.0/30 is subnetted, 6 subnets C 192.168.55.20 is directly connected, FastEthernet1/1.10 O 192.168.55.16 [110/4] via 192.168.55.13, 00:48:22, FastEthernet0/0.10 C 192.168.55.12 is directly connected, FastEthernet0/0.10 C 192.168.55.8 is directly connected, FastEthernet1/0.10 O 192.168.55.4 [110/8] via 192.168.55.9, 00:48:22, FastEthernet1/0.10 O 192.168.55.0 [110/2] via 192.168.55.9, 00:48:22, FastEthernet1/0.10 O*E2 0.0.0.0/0 [110/1] via 192.168.55.9, 00:48:22, FastEthernet1/0.10 R3#
  • 48. Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018 VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING - VRFVRF VIRTUAL ROUTING AND FORWARDING: Caso_03 CISCO R3#show ip route vrf coorporativos Routing Table: coorporativos O E2 200.20.1.0/24 [110/15] via 10.20.30.13, 00:12:45, FastEthernet0/0.20 S 200.20.2.0/24 [1/0] via 10.20.30.22 10.0.0.0/30 is subnetted, 6 subnets O 10.20.30.0 [110/4] via 10.20.30.13, 00:12:45, FastEthernet0/0.20 O 10.20.30.4 [110/3] via 10.20.30.13, 00:12:45, FastEthernet0/0.20 C 10.20.30.8 is directly connected, FastEthernet1/0.20 C 10.20.30.12 is directly connected, FastEthernet0/0.20 O 10.20.30.16 [110/4] via 10.20.30.13, 00:12:45, FastEthernet0/0.20 C 10.20.30.20 is directly connected, FastEthernet1/1.20 O*E2 0.0.0.0/0 [110/1] via 10.20.30.13, 00:12:45, FastEthernet0/0.20 R3#
  • 49. Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018 VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING - VRFVRF VIRTUAL ROUTING AND FORWARDING: Caso_03 CISCO
  • 50. Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018 VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING - VRFVRF TAREA-01Enrutamiento por defecto … … … … 200.10.1.0/24 200.20.1.0/24 200.10.2.0/24200.20.2.0/24 Usuarios invitados Usuarios invitados Usuarios coorporativos Usuarios coorporativos R2 … … 200.10.1.0/24 200.20.1.0/24 Usuarios invitados Usuarios coorporativos R1 R6 R3 R4 R5 OSPFv2 Enrutamiento por defectoEnrutamiento por defecto Rc Rb Ra
  • 51. Profesor Daniel Díaz Ataucuri ddiaz1610@gmail.com2018 VIRTUAL ROUTING AND FORWARDING -VIRTUAL ROUTING AND FORWARDING - VRFVRF TAREA-02 Enrutamiento por defecto … … 200.20.1.0/24 200.10.2.0/24 Usuarios invitados Usuarios coorporativos R2 … 200.10.1.0/24 Usuarios invitados R1 R6 R3 R4 R5 OSPFv2 Enrutamiento por defecto Enrutamiento por defecto RcRb Ra … 200.20.2.0/24 Usuarios coorporativos Rd … 200.10.3.0/24 Usuarios invitados ReEnrutamiento por defecto Enrutamiento por defecto