Este artículo forma parte de un grupo de artículos llamado
MPLS para Dummies en el que se pretende dar una iniciación práctica de
como configurar una red MPLS básica. Si sigues los pasos uno a uno, con
las configuraciones que aquí se presentan es imposible que no puedas montar tu
propia red MPLS :) .
Una vez que ya tenemos todas las interfaces configuradas lo
siguiente que debemos hacer es configurar el protocolo de routing del operador.
Normalmente suele ser ISIS, aunque tampoco deberías sorprenderte si te
encuentras OSPF. En esta ocasión he configurado ospf para el core.
Tenemos que configurar ospf en todas las interfaces del
core, pero en ninguna que sea contra el CE, además debemos meter dentro de OSPF
las loopback de todos los equipos de core, ya que con ellas funcionará el LDP,
y el BGP.
Configuración:
Todos los routers de este laboratorio son IOS, salvo R1 que es un IOS-XR, la configuración como podrás ver es levemente diferente.
router ospf 1
router-id 100.0.0.1
address-family ipv4 unicast
area 0
interface Loopback0
!
interface GigabitEthernet0/0/0/2.13
!
interface GigabitEthernet0/0/0/2.14
!
interface GigabitEthernet0/0/0/2.15
R3:
router ospf 1
router-id 100.0.0.3
network 20.0.13.3 0.0.0.0 area 0
network 20.0.34.3 0.0.0.0 area 0
network 20.0.36.3 0.0.0.0 area 0
network 100.0.0.3 0.0.0.0 area 0
R4:
router ospf 1
router-id 100.0.0.4
network 20.0.14.4 0.0.0.0 area 0
network 20.0.34.4 0.0.0.0 area 0
network 100.0.0.4 0.0.0.0 area 0
router ospf 1
router-id 100.0.0.5
network 20.0.15.5 0.0.0.0 area 0
network 100.0.0.5 0.0.0.0 area 0
R6:
router ospf 1
router-id 100.0.0.6
network 20.0.36.6 0.0.0.0 area 0
network 100.0.0.6 0.0.0.0 area 0
Verificación:
Si lo has hecho bien deberías ver en la tabla de rutas de
los equipos de core las loopback de todos los equipos de core.
R1:
RP/0/0/CPU0:XR1#show ospf neighborR3:
Tue Feb 10 10:37:21.622 SGT
* Indicates MADJ interface
Neighbors for OSPF 1
Neighbor ID Pri State Dead Time Address Interface
100.0.0.3 1 FULL/BDR 00:00:37 20.0.13.3 GigabitEthernet0/0/0/2.13
Neighbor is up for 00:11:46
100.0.0.4 1 FULL/BDR 00:00:30 20.0.14.4 GigabitEthernet0/0/0/2.14
Neighbor is up for 00:08:51
100.0.0.5 1 FULL/BDR 00:00:39 20.0.15.5 GigabitEthernet0/0/0/2.15
Neighbor is up for 00:01:18
Total neighbor count: 3
RP/0/0/CPU0:XR1#show route ipv4
Tue Feb 10 10:40:46.997 SGT
Codes: C - connected, S - static, R - RIP, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - ISIS, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, su - IS-IS summary null, * - candidate default
U - per-user static route, o - ODR, L - local, G - DAGR
A - access/subscriber, (!) - FRR Backup path
Gateway of last resort is not set
C 20.0.13.0/24 is directly connected, 01:40:30, GigabitEthernet0/0/0/2.13
L 20.0.13.1/32 is directly connected, 01:40:30, GigabitEthernet0/0/0/2.13
C 20.0.14.0/24 is directly connected, 01:40:30, GigabitEthernet0/0/0/2.14
L 20.0.14.1/32 is directly connected, 01:40:30, GigabitEthernet0/0/0/2.14
C 20.0.15.0/24 is directly connected, 01:40:30, GigabitEthernet0/0/0/2.15
L 20.0.15.1/32 is directly connected, 01:40:30, GigabitEthernet0/0/0/2.15
O 20.0.34.0/24 [110/11] via 20.0.13.3, 00:04:50, GigabitEthernet0/0/0/2.13
[110/11] via 20.0.14.4, 00:04:50, GigabitEthernet0/0/0/2.14
O 20.0.36.0/24 [110/11] via 20.0.13.3, 00:15:11, GigabitEthernet0/0/0/2.13
L 100.0.0.1/32 is directly connected, 01:40:31, Loopback0
O 100.0.0.3/32 [110/2] via 20.0.13.3, 00:15:11, GigabitEthernet0/0/0/2.13
O 100.0.0.4/32 [110/2] via 20.0.14.4, 00:04:50, GigabitEthernet0/0/0/2.14
O 100.0.0.5/32 [110/2] via 20.0.15.5, 00:04:42, GigabitEthernet0/0/0/2.15
O 100.0.0.6/32 [110/12] via 20.0.13.3, 00:03:56, GigabitEthernet0/0/0/2.13
R3#show ip ospf neighbor
Neighbor ID Pri State Dead Time Address Interface
100.0.0.6 1 FULL/BDR 00:00:31 20.0.36.6 Ethernet0/0.36
100.0.0.4 1 FULL/BDR 00:00:37 20.0.34.4 Ethernet0/0.34
100.0.0.1 1 FULL/DR 00:00:36 20.0.13.1 Ethernet0/0.13
R3#show ip route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
+ - replicated route, % - next hop override
Gateway of last resort is not set
20.0.0.0/8 is variably subnetted, 8 subnets, 2 masks
C 20.0.13.0/24 is directly connected, Ethernet0/0.13
L 20.0.13.3/32 is directly connected, Ethernet0/0.13
O 20.0.14.0/24 [110/11] via 20.0.13.1, 00:16:52, Ethernet0/0.13
O 20.0.15.0/24 [110/11] via 20.0.13.1, 00:16:52, Ethernet0/0.13
C 20.0.34.0/24 is directly connected, Ethernet0/0.34
L 20.0.34.3/32 is directly connected, Ethernet0/0.34
C 20.0.36.0/24 is directly connected, Ethernet0/0.36
L 20.0.36.3/32 is directly connected, Ethernet0/0.36
100.0.0.0/32 is subnetted, 5 subnets
O 100.0.0.1 [110/11] via 20.0.13.1, 00:16:52, Ethernet0/0.13
C 100.0.0.3 is directly connected, Loopback0
O 100.0.0.4 [110/11] via 20.0.34.4, 00:14:06, Ethernet0/0.34
O 100.0.0.5 [110/12] via 20.0.13.1, 00:06:20, Ethernet0/0.13
O 100.0.0.6 [110/11] via 20.0.36.6, 00:05:38, Ethernet0/0.36
R4:
R4#show ip ospf neighbor
Neighbor ID Pri State Dead Time Address Interface
100.0.0.3 1 FULL/DR 00:00:37 20.0.34.3 Ethernet0/0.34
100.0.0.1 1 FULL/DR 00:00:31 20.0.14.1 Ethernet0/0.14
R4#show ip route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
+ - replicated route, % - next hop override
Gateway of last resort is not set
20.0.0.0/8 is variably subnetted, 7 subnets, 2 masks
O 20.0.13.0/24 [110/11] via 20.0.14.1, 00:15:52, Ethernet0/0.14
C 20.0.14.0/24 is directly connected, Ethernet0/0.14
L 20.0.14.4/32 is directly connected, Ethernet0/0.14
O 20.0.15.0/24 [110/11] via 20.0.14.1, 00:15:52, Ethernet0/0.14
C 20.0.34.0/24 is directly connected, Ethernet0/0.34
L 20.0.34.4/32 is directly connected, Ethernet0/0.34
O 20.0.36.0/24 [110/20] via 20.0.34.3, 00:16:02, Ethernet0/0.34
100.0.0.0/32 is subnetted, 5 subnets
O 100.0.0.1 [110/11] via 20.0.14.1, 00:15:52, Ethernet0/0.14
O 100.0.0.3 [110/11] via 20.0.34.3, 00:16:02, Ethernet0/0.34
C 100.0.0.4 is directly connected, Loopback0
O 100.0.0.5 [110/12] via 20.0.14.1, 00:08:16, Ethernet0/0.14
O 100.0.0.6 [110/21] via 20.0.34.3, 00:07:22, Ethernet0/0.34
192.168.47.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.47.0/24 is directly connected, Ethernet0/0.47
L 192.168.47.4/32 is directly connected, Ethernet0/0.47
192.168.49.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.49.0/24 is directly connected, Ethernet0/0.49
L 192.168.49.4/32 is directly connected, Ethernet0/0.49
R5:
R5#show ip ospf neighborR6:
Neighbor ID Pri State Dead Time Address Interface
100.0.0.1 1 FULL/DR 00:00:33 20.0.15.1 Ethernet0/0.15
R5#sh ip route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
+ - replicated route, % - next hop override
Gateway of last resort is not set
20.0.0.0/8 is variably subnetted, 6 subnets, 2 masks
O 20.0.13.0/24 [110/11] via 20.0.15.1, 00:09:43, Ethernet0/0.15
O 20.0.14.0/24 [110/11] via 20.0.15.1, 00:09:43, Ethernet0/0.15
C 20.0.15.0/24 is directly connected, Ethernet0/0.15
L 20.0.15.5/32 is directly connected, Ethernet0/0.15
O 20.0.34.0/24 [110/21] via 20.0.15.1, 00:09:43, Ethernet0/0.15
O 20.0.36.0/24 [110/21] via 20.0.15.1, 00:09:43, Ethernet0/0.15
100.0.0.0/32 is subnetted, 5 subnets
O 100.0.0.1 [110/11] via 20.0.15.1, 00:09:43, Ethernet0/0.15
O 100.0.0.3 [110/12] via 20.0.15.1, 00:09:43, Ethernet0/0.15
O 100.0.0.4 [110/12] via 20.0.15.1, 00:09:43, Ethernet0/0.15
C 100.0.0.5 is directly connected, Loopback0
O 100.0.0.6 [110/22] via 20.0.15.1, 00:08:49, Ethernet0/0.15
192.168.58.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.58.0/24 is directly connected, Ethernet0/0.58
L 192.168.58.5/32 is directly connected, Ethernet0/0.58
192.168.105.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.105.0/24 is directly connected, Ethernet0/0.105
L 192.168.105.5/32 is directly connected, Ethernet0/0.105
R6#show ip ospf neighbor
Neighbor ID Pri State Dead Time Address Interface
100.0.0.3 1 FULL/DR 00:00:35 20.0.36.3 Ethernet0/0.36
R6#show ip route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
+ - replicated route, % - next hop override
Gateway of last resort is not set
20.0.0.0/8 is variably subnetted, 6 subnets, 2 masks
O 20.0.13.0/24 [110/20] via 20.0.36.3, 00:10:10, Ethernet0/0.36
O 20.0.14.0/24 [110/21] via 20.0.36.3, 00:10:10, Ethernet0/0.36
O 20.0.15.0/24 [110/21] via 20.0.36.3, 00:10:10, Ethernet0/0.36
O 20.0.34.0/24 [110/20] via 20.0.36.3, 00:10:10, Ethernet0/0.36
C 20.0.36.0/24 is directly connected, Ethernet0/0.36
L 20.0.36.6/32 is directly connected, Ethernet0/0.36
100.0.0.0/32 is subnetted, 5 subnets
O 100.0.0.1 [110/21] via 20.0.36.3, 00:10:10, Ethernet0/0.36
O 100.0.0.3 [110/11] via 20.0.36.3, 00:10:10, Ethernet0/0.36
O 100.0.0.4 [110/21] via 20.0.36.3, 00:10:10, Ethernet0/0.36
O 100.0.0.5 [110/22] via 20.0.36.3, 00:10:10, Ethernet0/0.36
C 100.0.0.6 is directly connected, Loopback0
No hay comentarios:
Publicar un comentario