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 :) .
Ahora que ya tenemos el routing funcionando, y todos los
equipos son capaces de llegar a todas las interfaces de core de los otros
routers incluidas las loopback, el siguiente paso será configurar LDP.
Configuración:
LDP es un protocolo realmente fácil de configurar, una vez
que el routing está funcionando simplemente hay que habilitarlo a nivel global,
y dentro de las interfaces que forman parte del core. La conexión con el route reflector no está en el camino entre los PE, por tanto al no formar parte de esa capa de tránsito no es necesario habilitar LDP.
R4:
R4#conf tR5:
Enter configuration commands, one per line. End with CNTL/Z.
R4(config)#mpls ip
R4(config)#int Ethernet0/0.14
R4(config-subif)#mpls ip
R4(config-subif)#int Ethernet0/0.34
R4(config-subif)#mpls ip
R5#conf tR1:
Enter configuration commands, one per line. End with CNTL/Z.
R5(config)#mpls ip
R5(config)#int e0/0.15
R5(config-subif)#mpls ip
R5#show mpls ldp neighbor
Peer LDP Ident: 100.0.0.1:0; Local LDP Ident 100.0.0.5:0
TCP connection: 100.0.0.1.646 - 100.0.0.5.22250
State: Oper; Msgs sent/rcvd: 22/22; Downstream
Up time: 00:08:16
LDP discovery sources:
Ethernet0/0.15, Src IP addr: 20.0.15.1
Addresses bound to peer LDP Ident:
20.0.13.1 20.0.14.1 20.0.15.1 100.0.0.1
mpls ldp
interface GigabitEthernet0/0/0/2.13
!
interface GigabitEthernet0/0/0/2.14
!
interface GigabitEthernet0/0/0/2.15
commit
R3:
R3#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R3(config)#mpls ip
R3(config)#int e0/0.34
R3(config-subif)#mpls ip
R3(config-subif)#int e0/0.13
R3(config-subif)#mpls ip
Verificación:
Al igual que en la gran mayoría de protocolos de routing LDP
formará adyacencias con vecinos, pero en lugar de compartir con sus vecinos la
tabla de routing, LDP compartirá que etiquetas genera para cada uno de los
prefijos de la tabla de routing.
R4:
R4#show mpls ldp neighbor Peer LDP Ident: 100.0.0.1:0; Local LDP Ident 100.0.0.4:0
TCP connection: 100.0.0.1.646 - 100.0.0.4.22871
State: Oper; Msgs sent/rcvd: 17/17; Downstream
Up time: 00:04:01
LDP discovery sources:
Ethernet0/0.14, Src IP addr: 20.0.14.1
Addresses bound to peer LDP Ident:
20.0.13.1 20.0.14.1 20.0.15.1 100.0.0.1
Peer LDP Ident: 100.0.0.3:0; Local LDP Ident 100.0.0.4:0
TCP connection: 100.0.0.3.646 - 100.0.0.4.62309
State: Oper; Msgs sent/rcvd: 16/16; Downstream
Up time: 00:02:41
LDP discovery sources:
Ethernet0/0.34, Src IP addr: 20.0.34.3
Addresses bound to peer LDP Ident:
20.0.13.3 20.0.34.3 20.0.36.3 100.0.0.3
R4#show mpls forwarding-table
Local Outgoing Prefix Bytes Label Outgoing Next Hop
Label Label or Tunnel Id Switched interface
16 Pop Label 20.0.13.0/24 0 Et0/0.14 20.0.14.1
17 Pop Label 20.0.15.0/24 0 Et0/0.14 20.0.14.1
18 Pop Label 20.0.36.0/24 0 Et0/0.34 20.0.34.3
19 Pop Label 100.0.0.1/32 0 Et0/0.14 20.0.14.1
20 Pop Label 100.0.0.3/32 0 Et0/0.34 20.0.34.3
21 16001 100.0.0.5/32 0 Et0/0.14 20.0.14.1
22 21 100.0.0.6/32 0 Et0/0.34 20.0.34.3
R5:
R5#show mpls forwarding-table
Local Outgoing Prefix Bytes Label Outgoing Next Hop
Label Label or Tunnel Id Switched interface
16 Pop Label 20.0.13.0/24 0 Et0/0.15 20.0.15.1
17 Pop Label 20.0.14.0/24 0 Et0/0.15 20.0.15.1
18 16004 20.0.34.0/24 0 Et0/0.15 20.0.15.1
19 16005 20.0.36.0/24 0 Et0/0.15 20.0.15.1
20 Pop Label 100.0.0.1/32 0 Et0/0.15 20.0.15.1
21 16002 100.0.0.3/32 0 Et0/0.15 20.0.15.1
22 16000 100.0.0.4/32 0 Et0/0.15 20.0.15.1
23 16003 100.0.0.6/32 0 Et0/0.15 20.0.15.1
R1:
RP/0/0/CPU0:XR1#show mpls ldp neighbor
Tue Feb 10 18:57:55.956 SGT
Peer LDP Identifier: 100.0.0.4:0
TCP connection: 100.0.0.4:22871 - 100.0.0.1:646
Graceful Restart: No
Session Holdtime: 180 sec
State: Oper; Msgs sent/rcvd: 25/26; Downstream-Unsolicited
Up time: 00:11:36
LDP Discovery Sources:
GigabitEthernet0/0/0/2.14
Addresses bound to this peer:
20.0.14.4 20.0.34.4 100.0.0.4
Peer LDP Identifier: 100.0.0.5:0
TCP connection: 100.0.0.5:22250 - 100.0.0.1:646
Graceful Restart: No
Session Holdtime: 180 sec
State: Oper; Msgs sent/rcvd: 25/25; Downstream-Unsolicited
Up time: 00:10:41
LDP Discovery Sources:
GigabitEthernet0/0/0/2.15
Addresses bound to this peer:
20.0.15.5 100.0.0.5
Peer LDP Identifier: 100.0.0.3:0
TCP connection: 100.0.0.3:63413 - 100.0.0.1:646
Graceful Restart: No
Session Holdtime: 180 sec
State: Oper; Msgs sent/rcvd: 23/24; Downstream-Unsolicited
Up time: 00:10:06
LDP Discovery Sources:
GigabitEthernet0/0/0/2.13
Addresses bound to this peer:
20.0.13.3 20.0.34.3 20.0.36.3 100.0.0.3
RP/0/0/CPU0:XR1#show mpls forwarding
Tue Feb 10 18:58:18.988 SGT
Local Outgoing Prefix Outgoing Next Hop Bytes
Label Label or ID Interface Switched
------ ----------- ------------------ ------------ --------------- ------------
16000 Pop 100.0.0.4/32 Gi0/0/0/2.14 20.0.14.4 1751
16001 Pop 100.0.0.5/32 Gi0/0/0/2.15 20.0.15.5 2440
16002 Pop 100.0.0.3/32 Gi0/0/0/2.13 20.0.13.3 1118
16003 21 100.0.0.6/32 Gi0/0/0/2.13 20.0.13.3 1262
16004 Pop 20.0.34.0/24 Gi0/0/0/2.13 20.0.13.3 0
Pop 20.0.34.0/24 Gi0/0/0/2.14 20.0.14.4 0
16005 Pop 20.0.36.0/24 Gi0/0/0/2.13 20.0.13.3 0
R3:
R3#show mpls ldp neighbor
Peer LDP Ident: 100.0.0.4:0; Local LDP Ident 100.0.0.3:0
TCP connection: 100.0.0.4.62309 - 100.0.0.3.646
State: Oper; Msgs sent/rcvd: 27/27; Downstream
Up time: 00:12:57
LDP discovery sources:
Ethernet0/0.34, Src IP addr: 20.0.34.4
Addresses bound to peer LDP Ident:
20.0.14.4 20.0.34.4 100.0.0.4
Peer LDP Ident: 100.0.0.1:0; Local LDP Ident 100.0.0.3:0
TCP connection: 100.0.0.1.646 - 100.0.0.3.63413
State: Oper; Msgs sent/rcvd: 27/26; Downstream
Up time: 00:12:47
LDP discovery sources:
Ethernet0/0.13, Src IP addr: 20.0.13.1
Addresses bound to peer LDP Ident:
20.0.13.1 20.0.14.1 20.0.15.1 100.0.0.1
R3#show mpls forwarding-table
Local Outgoing Prefix Bytes Label Outgoing Next Hop
Label Label or Tunnel Id Switched interface
16 Pop Label 20.0.14.0/24 0 Et0/0.13 20.0.13.1
17 Pop Label 20.0.15.0/24 0 Et0/0.13 20.0.13.1
18 Pop Label 100.0.0.1/32 0 Et0/0.13 20.0.13.1
19 Pop Label 100.0.0.4/32 0 Et0/0.34 20.0.34.4
20 16001 100.0.0.5/32 0 Et0/0.13 20.0.13.1
21 No Label 100.0.0.6/32 3934 Et0/0.36 20.0.36.6
No hay comentarios:
Publicar un comentario