viernes, 12 de junio de 2015

[MPLS desde cero] OSPF entre PE y CE




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 :) .



Configuración:

Si leíste el anterior artículo de este grupo de artículos verás que es hacer exactamente lo mismo que hacíamos con RIP, pero ahora con OSPF. Si no lo has leído, te recomiendo que leas la serie completa de MPLS para Dummies.


R9:

router ospf 1
 router-id 100.0.0.9
 network 100.0.0.9 0.0.0.0 area 0
 network 192.168.49.9 0.0.0.0 area 0
 R10:

 router ospf 1
 router-id 100.0.0.10
 network 100.0.0.10 0.0.0.0 area 0
 network 192.168.105.10 0.0.0.0 area 0

 R4:

 router ospf 109 vrf VPN910
  net 192.168.49.4 0.0.0.0 area 0
  redistribute bgp 40905 subnets
 
 router bgp 40905
  address-family ipv4 vrf VPN910
  redistribute ospf 109
 
R5:

router ospf 109 vrf VPN910
  net 192.168.105.5 0.0.0.0 area 0
  redistribute bgp 40905 subnets
 
 router bgp 40905
  address-family ipv4 vrf VPN910
  redistribute ospf 109





Verificación:

Fácil y para toda la familia  :-) .



R9:

R9#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
      100.0.0.0/32 is subnetted, 2 subnets
C        100.0.0.9 is directly connected, Loopback0
O IA     100.0.0.10 [110/21] via 192.168.49.4, 00:00:25, Ethernet0/0.49
      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.9/32 is directly connected, Ethernet0/0.49
O IA  192.168.105.0/24 [110/11] via 192.168.49.4, 00:00:25, Ethernet0/0.49

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

R9#trace 100.0.0.10
Type escape sequence to abort.
Tracing the route to 100.0.0.10
VRF info: (vrf in name/id, vrf out name/id)
  1 192.168.49.4 1 msec 1 msec 0 msec
  2 20.0.14.1 4 msec 3 msec 2 msec
  3 192.168.105.5 [MPLS: Label 26 Exp 0] 2 msec 3 msec 3 msec
  4 192.168.105.10 5 msec 3 msec *

 R10:

 R10#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
      100.0.0.0/32 is subnetted, 2 subnets
O IA     100.0.0.9 [110/21] via 192.168.105.5, 00:03:57, Ethernet0/0.105
C        100.0.0.10 is directly connected, Loopback0
O IA  192.168.49.0/24 [110/11] via 192.168.105.5, 00:03:57, Ethernet0/0.105
      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.10/32 is directly connected, Ethernet0/0.105

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

R10#trace 100.0.0.9
Type escape sequence to abort.
Tracing the route to 100.0.0.9
VRF info: (vrf in name/id, vrf out name/id)
  1 192.168.105.5 1 msec 0 msec 0 msec
  2 20.0.15.1 4 msec 4 msec 3 msec
  3 192.168.49.4 [MPLS: Label 25 Exp 0] 3 msec 2 msec 3 msec
  4 192.168.49.9 3 msec 3 msec *
 
 
R4:

R4#show ip route vrf VPN910
Routing Table: VPN910
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
      100.0.0.0/32 is subnetted, 2 subnets
O        100.0.0.9 [110/11] via 192.168.49.9, 00:07:46, Ethernet0/0.49
B        100.0.0.10 [200/11] via 100.0.0.5, 00:07:40
      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
B     192.168.105.0/24 [200/0] via 100.0.0.5, 00:07:40

R5:


R5#show ip route vrf VPN910
Routing Table: VPN910
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
      100.0.0.0/32 is subnetted, 2 subnets
B        100.0.0.9 [200/11] via 100.0.0.4, 00:08:06
O        100.0.0.10 [110/11] via 192.168.105.10, 00:08:06, Ethernet0/0.105
B     192.168.49.0/24 [200/0] via 100.0.0.4, 00:08:06
      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



No hay comentarios:

Publicar un comentario