You are on page 1of 10

Guía Routing

MPLS...................................................................................................................3
VRF Lite......................................................................................................................................3

1
INACAP Talcahuano ©2022
Guía Routing

VRF Lite
 Cree el direccionamiento mostrado.
 Configure OSPF de manera que R1 tenga adyacencia con todos los routers.

R1#ping 255.255.255.255 repeat 1


Type escape sequence to abort.
Sending 1, 100-byte ICMP Echos to 255.255.255.255, timeout is 2 seconds:

Reply to request 0 from 10.1.14.4, 1 ms


Reply to request 0 from 10.1.12.2, 1 ms
Reply to request 0 from 10.1.13.3, 1 ms

R1
router ospf 1
router-id 0.0.0.1

interface Loopback0
ip ospf 1 area 0

interface FastEthernet0/0
ip ospf 1 area 0

interface FastEthernet 0/1


2
INACAP Talcahuano ©2022
Guía Routing

ip ospf 1 area 0

interface FastEthernet 1/0


ip ospf 1 area 0

R2
router ospf 1
router-id 0.0.0.2

interface Loopback0
ip ospf 1 area 0

interface FastEthernet0/0
ip ospf 1 area 0

R3
router ospf 1
router-id 0.0.0.3

interface Loopback0
ip ospf 1 area 0

interface FastEthernet0/0
ip ospf 1 area 0

R4
router ospf 1
router-id 0.0.0.4

interface Loopback0
ip ospf 1 area 0

interface FastEthernet0/0
ip ospf 1 area 0

R1#show ip ospf neighbor


Neighbor ID Pri State Dead Time Address Interface
0.0.0.4 1 FULL/BDR 00:00:39 10.1.14.4 FastEthernet1/0
0.0.0.3 1 FULL/DR 00:00:39 10.1.13.3 FastEthernet0/1
0.0.0.2 1 FULL/DR 00:00:39 10.1.12.2 FastEthernet0/0

R3#sh ip route ospf


Gateway of last resort is not set
1.0.0.0/32 is subnetted, 1 subnets
O 1.1.1.1 [110/2] via 10.1.13.1, 00:00:14, FastEthernet0/0
2.0.0.0/32 is subnetted, 1 subnets
O 2.2.2.2 [110/3] via 10.1.13.1, 00:00:14, FastEthernet0/0
4.0.0.0/32 is subnetted, 1 subnets
O 4.4.4.4 [110/3] via 10.1.13.1, 00:00:14, FastEthernet0/0
10.0.0.0/8 is variably subnetted, 4 subnets, 2 masks
O 10.1.12.0/24 [110/2] via 10.1.13.1, 00:00:14, FastEthernet0/0
O 10.1.14.0/24 [110/2] via 10.1.13.1, 00:00:14, FastEthernet0/0

3
INACAP Talcahuano ©2022
Guía Routing

4
INACAP Talcahuano ©2022
Guía Routing

R4#sh ip route ospf


Gateway of last resort is not set
1.0.0.0/32 is subnetted, 1 subnets
O 1.1.1.1 [110/2] via 10.1.14.1, 00:01:12, FastEthernet0/0
2.0.0.0/32 is subnetted, 1 subnets
O 2.2.2.2 [110/3] via 10.1.14.1, 00:01:02, FastEthernet0/0
3.0.0.0/32 is subnetted, 1 subnets
O 3.3.3.3 [110/3] via 10.1.14.1, 00:00:40, FastEthernet0/0
10.0.0.0/8 is variably subnetted, 4 subnets, 2 masks
O 10.1.12.0/24 [110/2] via 10.1.14.1, 00:01:02, FastEthernet0/0
O 10.1.13.0/24 [110/2] via 10.1.14.1, 00:00:50, FastEthernet0/0

 Se ha definido una politica que pide que R2 no sea accesible desde R3 ni R4. Configure el direccionamiento
en base a la VRF indicada.

R1
no router ospf 1

vrf definition R2

address-family ipv4
exit-address-family

interface FastEthernet0/0
vrf forwarding R2
ip address 10.1.12.1 255.255.255.0

R1#ping vrf R2 10.1.12.2


Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.12.2, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 1/1/1 ms

R1
vrf definition R3-R4

address-family ipv4
exit-address-family

interface FastEthernet0/1
vrf forwarding R3-R4
ip address 10.1.13.1 255.255.255.0

interface FastEthernet1/0
vrf forwarding R3-R4
ip address 10.1.14.1 255.255.255.0

R1#ping vrf R3-R4 255.255.255.255 repeat 1


Type escape sequence to abort.
Sending 1, 100-byte ICMP Echos to 255.255.255.255, timeout is 2 seconds:
Reply to request 0 from 10.1.14.4, 1 ms
Reply to request 0 from 10.1.13.3, 1 ms
5
INACAP Talcahuano ©2022
Guía Routing

 Reconfigure OSPF en R1 para la VRF R2. Compruebe adyacencia OSPF.

R1
router ospf 2 vrf R2
router-id 0.0.0.1

interface FastEthernet0/0
vrf forwarding R2
ip ospf 2 area 0

R1#show ip ospf neighbor


Neighbor ID Pri State Dead Time Address Interface
0.0.0.2 1 FULL/DR 00:00:36 10.1.12.2 FastEthernet0/0

R1#sh ip route vrf R2 ospf


Routing Table: R2
Gateway of last resort is not set

2.0.0.0/32 is subnetted, 1 subnets


O 2.2.2.2 [110/2] via 10.1.12.2, 00:00:18, FastEthernet0/0

R1
router ospf 34 vrf R3-R4
router-id 0.0.0.11

interface FastEthernet0/1
ip ospf 34 area 0

interface FastEthernet1/0
ip ospf 34 area 0

R1#show ip ospf neighbor


Neighbor ID Pri State Dead Time Address Interface
0.0.0.4 1 FULL/DR 00:00:35 10.1.14.4 FastEthernet1/0
0.0.0.3 1 FULL/DR 00:00:38 10.1.13.3 FastEthernet0/1
0.0.0.2 1 FULL/DR 00:00:33 10.1.12.2 FastEthernet0/0

 Para R3 y R4 el proceso OSPF es global, es transparente. No se involucran en las VRFs.

R3#sh ip route ospf


Gateway of last resort is not set
4.0.0.0/32 is subnetted, 1 subnets
O 4.4.4.4 [110/3] via 10.1.13.1, 00:01:42, FastEthernet0/0
10.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
O 10.1.14.0/24 [110/2] via 10.1.13.1, 00:01:47, FastEthernet0/0

6
INACAP Talcahuano ©2022
Guía Routing

R4#sh ip route ospf


Gateway of last resort is not set
3.0.0.0/32 is subnetted, 1 subnets
O 3.3.3.3 [110/3] via 10.1.14.1, 00:01:57, FastEthernet0/0
10.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
O 10.1.13.0/24 [110/2] via 10.1.14.1, 00:01:57, FastEthernet0/0

R1#sh ip route vrf R3-R4 ospf


Routing Table: R3-R4
Gateway of last resort is not set
3.0.0.0/32 is subnetted, 1 subnets
O 3.3.3.3 [110/2] via 10.1.13.3, 00:02:15, FastEthernet0/1
4.0.0.0/32 is subnetted, 1 subnets
O 4.4.4.4 [110/2] via 10.1.14.4, 00:02:25, FastEthernet1/0

R4#ping 3.3.3.3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 3.3.3.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms

 Para ver la table de todas las instancias VRF usamos:

R1#sh ip route vrf *


Gateway of last resort is not set
1.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 1.1.1.0/24 is directly connected, Loopback0
L 1.1.1.1/32 is directly connected, Loopback0

Routing Table: R2
Gateway of last resort is not set

2.0.0.0/32 is subnetted, 1 subnets


O 2.2.2.2 [110/11] via 10.1.12.2, 00:35:10, Ethernet0/0
10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 10.1.12.0/24 is directly connected, Ethernet0/0
L 10.1.12.1/32 is directly connected, Ethernet0/0

Routing Table: R3-R4

Gateway of last resort is not set

3.0.0.0/32 is subnetted, 1 subnets


O 3.3.3.3 [110/11] via 10.1.13.3, 00:32:16, Ethernet0/1
4.0.0.0/32 is subnetted, 1 subnets
O 4.4.4.4 [110/11] via 10.1.14.4, 00:32:16, Ethernet0/2
10.0.0.0/8 is variably subnetted, 4 subnets, 2 masks
C 10.1.13.0/24 is directly connected, Ethernet0/1
L 10.1.13.1/32 is directly connected, Ethernet0/1
C 10.1.14.0/24 is directly connected, Ethernet0/2
L 10.1.14.1/32 is directly connected, Ethernet0/2

7
INACAP Talcahuano ©2022
Guía Routing

 En R3 cree y redistribuya los siguientes prefijos:


100.1.0.3/24
100.1.1.3/24
100.1.2.3/24
100.1.3.3/24

R3
interface Loopback100
ip address 100.1.1.3 255.255.255.0 secondary
ip address 100.1.2.3 255.255.255.0 secondary
ip address 100.1.3.3 255.255.255.0 secondary
ip address 100.1.0.3 255.255.255.0

route-map RED permit 10


match interface Loopback100
set metric-type type-1

router ospf 1
router-id 0.0.0.3
redistribute connected subnets route-map RED

R1#sh ip route vrf R3-R4 ospf


Routing Table: R3-R4
Gateway of last resort is not set
3.0.0.0/32 is subnetted, 1 subnets
O 3.3.3.3 [110/2] via 10.1.13.3, 00:07:13, FastEthernet0/1
4.0.0.0/32 is subnetted, 1 subnets
O 4.4.4.4 [110/2] via 10.1.14.4, 00:07:23, FastEthernet1/0
100.0.0.0/24 is subnetted, 4 subnets
O E1 100.1.0.0 [110/21] via 10.1.13.3, 00:00:34, FastEthernet0/1
O E1 100.1.1.0 [110/21] via 10.1.13.3, 00:00:34, FastEthernet0/1
O E1 100.1.2.0 [110/21] via 10.1.13.3, 00:00:34, FastEthernet0/1
O E1 100.1.3.0 [110/21] via 10.1.13.3, 00:00:34, FastEthernet0/1

 En el router ASBR realice resumen de ruta para los prefijos 100.1.X.0/24.

R3
router ospf 1
router-id 0.0.0.3
summary-address 100.1.0.0 255.255.252.0

R1#sh ip route vrf R3-R4 ospf


Routing Table: R3-R4
Gateway of last resort is not set
3.0.0.0/32 is subnetted, 1 subnets
O 3.3.3.3 [110/2] via 10.1.13.3, 00:13:21, FastEthernet0/1
4.0.0.0/32 is subnetted, 1 subnets
O 4.4.4.4 [110/2] via 10.1.14.4, 00:13:31, FastEthernet1/0
100.0.0.0/22 is subnetted, 1 subnets
O E1 100.1.0.0 [110/21] via 10.1.13.3, 00:00:39, FastEthernet0/1

8
INACAP Talcahuano ©2022
Guía Routing

 Cree y publique en R4 los prefijos:


200.1.0.4/24
200.1.1.4/24
200.1.2.4/24
200.1.3.4/24
 Esots prefijos deben ser publicados en el área 34.

R4
interface Loopback200
ip address 200.1.1.4 255.255.255.0 secondary
ip address 200.1.2.4 255.255.255.0 secondary
ip address 200.1.3.4 255.255.255.0 secondary
ip address 200.1.0.4 255.255.255.0
ip ospf 1 area 34
ip ospf network point-to-point

R1#sh ip route vrf R3-R4 ospf


Routing Table: R3-R4
Gateway of last resort is not set
3.0.0.0/32 is subnetted, 1 subnets
O 3.3.3.3 [110/2] via 10.1.13.3, 00:18:20, FastEthernet0/1
4.0.0.0/32 is subnetted, 1 subnets
O 4.4.4.4 [110/2] via 10.1.14.4, 00:18:30, FastEthernet1/0
100.0.0.0/22 is subnetted, 1 subnets
O E1 100.1.0.0 [110/21] via 10.1.13.3, 00:05:38, FastEthernet0/1
O IA 200.1.0.0/24 [110/2] via 10.1.14.4, 00:01:21, FastEthernet1/0
O IA 200.1.1.0/24 [110/2] via 10.1.14.4, 00:01:41, FastEthernet1/0
O IA 200.1.2.0/24 [110/2] via 10.1.14.4, 00:01:41, FastEthernet1/0
O IA 200.1.3.0/24 [110/2] via 10.1.14.4, 00:01:41, FastEthernet1/0

 Configure el ABR para sumarizar los prefijos 200.1.X.0/24

R1#sh ip route vrf R3-R4 ospf


Routing Table: R3-R4
Gateway of last resort is not set
3.0.0.0/32 is subnetted, 1 subnets
O 3.3.3.3 [110/2] via 10.1.13.3, 00:00:40, FastEthernet0/1
4.0.0.0/32 is subnetted, 1 subnets
O 4.4.4.4 [110/2] via 10.1.14.4, 00:00:40, FastEthernet1/0
100.0.0.0/22 is subnetted, 1 subnets
O E1 100.1.0.0 [110/21] via 10.1.13.3, 00:00:40, FastEthernet0/1
O IA 200.1.0.0/22 [110/2] via 10.1.14.4, 00:00:06, FastEthernet1/0

9
INACAP Talcahuano ©2022
Guía Routing

 Realice la misma configuración para IPv6 como muestra la siguiente topología. OSPFv3

10
INACAP Talcahuano ©2022

You might also like