Configuracin de MPLS
V1.1
Objectivo
Conocer el proceso de configuracin del protocolo
MPLS
Objetivos del Curso
Configuracin de MPLS
Ejemplo de configuracin de MPLS
Configuracin Bsica de MPLS
Habilitar el protocolo MPLS en el dispositivo
ZXR10(config)# mpls ip
Habilitar el protocolo LDP en la interfaz
ZXR10(config)# interface gei_3/1
ZXR10(config-if)# mpls ip
ZXR10(config)#
ZXR10(config)#mpls ldp router-id loopback1 force
ZXR10(config)#mpls ldp target-session [Link]
ZXR10(config)#mpls ldp target-session [Link]
Objetivos del Curso
Configuration de MPLS
Ejemplo de configuracin de MPLS
Ejemplo de Configuracin de MPLS (1)
Las tareas bsicas de configuracin de tres routers incluyen: MPLS est
habilitado entre los R1, R2 y R3 para el reenvo de hop-by-hop, usar el
LDP para la distribucin de la etiqueta, y habilitar OSPF en toda la red.
fei_2/1
[Link]/24
fei_1/1
[Link]/24
R1 [Link]/24
fei_1/5
[Link]/24
R2
fei_1/6 fei_3/1
[Link]/24
[Link]/24
fei_2/1
R3 [Link]/24 [Link]/24
Ejemplo de Configuracin de MPLS (2)
Pasos de configuracin:
Configurar IP de la interfaz;
Configurar OSPF para hacer rutas transmisibles por toda
la red ;
Configuracin de MPLS y LDP;
Configuracin de R1:
R1(config)# mpls ip
R1(config)# interface fei_1/1
R1(config-if)# ip address [Link] [Link]
R1(config-if)# mpls ip
R1(config)# interface fei_2/1
R1(config-if)# ip address [Link] [Link]
R1(config)# router ospf 1
R1(config-router)# network [Link] [Link] area 0
R1(config-router)# network [Link] [Link] area 0
Ejemplo de Configuracin de MPLS (3)
La configuracin de R2:
R2(config)# mpls ip
R2(config)# interface fei_1/5
R2(config-if)# ip address [Link] [Link]
R2(config-if)# mpls ip
R2(config)# interface fei_1/6
R2(config-if)# ip address [Link] [Link]
R2(config-if)# mpls ip
R2(config)# router ospf 1
R2(config-router)# network [Link] [Link] area 0
R2(config-router)# network [Link] [Link] area 0
La configuracin de R3 (Refirase a la R1)
Vigilancia y Mantenimiento de MPLS(1)
Ver MPLS Label vinculante
R2# show mpls ldp bindings
[Link]/[Link] //Prefijo y la mscara de la IP
local binding: label: imp-null //Asignar etiqueta local y se anuncia al corriente arriba LSR
remote binding: lsr: [Link]:0, label: 16 // Etiqueta de publicidad de abajo LSR
remote binding: lsr: [Link]:0, label: imp-null // Para un segmento de red local, label distribution
is set to IMP-Null and the receiver performs penultimate label popping.
[Link]/[Link]
local binding: label: imp-null
remote binding: lsr: [Link]:0, label: imp-null
remote binding: lsr: [Link]:0, label: 16
[Link]/[Link]
local binding: label: 16
remote binding: lsr: [Link]:0, label: 17
remote binding: lsr: [Link]:0, label: imp-null(inuse) //Inuse indica la etiqueta que est en uso
[Link]/[Link]
local binding: label: 17
remote binding: lsr: [Link]:0, label: imp-null(inuse)
remote binding: lsr: [Link]:0, label: 17
Vigilancia y Mantenimiento de MPLS (2)
Ver la tabla de reenvo de MPLS
R1# show mpls forwarding-table
Mpls Ldp Forwarding-table:
InLabel OutLabel Dest Pfxlen Interface NextHop
16 Pop tag [Link] 24 fei_1/1 [Link]
17 17 [Link] 24 fei_1/1 [Link]
R2# show mpls forwarding-table
Mpls Ldp Forwarding-table:
InLabel OutLabel Dest Pfxlen Interface NextHop
16 Pop tag [Link] 24 fei_3/1 [Link]
17 Pop tag [Link] 24 mng0/1 [Link]
Vigilancia y Mantenimiento de MPLS (3)
Ver informacin de la sesin vecina de LDP
R1# show mpls ldp neighbor
Peer LDP Ident: [Link]:0; Local LDP Ident [Link]:0
//LDP identifiers of this session for neighbor and local router
TCP connection: [Link].646 - [Link].1024 //TCP connection for this session
state: Oper; Msgs sent/rcvd: 7/7; Downstream
//State is the session state, which shall be Operation in normal state and None in abnormal state;
msgs sent/rcve: Number of received/sent LDP packets
Downstream indicates DU (downstream unsolicited) label distribution control mode is adopted for session
Downstream on Demand indicates DOD label distribution control mode is adopted for session
Up Time: [Link] //Uptime of session
LDP discovery sources: //Maintain adjacency list of session
fei_1/1; Src IP addr: [Link] //The interface on which neighbor relationship is established and
source IP address of hello packet sent from peer neighbor
Addresses bound to peer LDP Ident:
[Link] [Link] //IP addresses of all interfaces advertised by neighbors in this session; these
IP addresses may be the next hops of local route entries
Vigilancia y Mantenimiento de MPLS (4)
Ver Interfaces con MPLS habilitado
R2# show mpls ldp interface
interface of LDP:
Interface IP Tunnel Operational
fei_1/5 Yes(ldp) No Yes //IP Yes indicates supporting MPLS hop-by-hop label switching
Tunnel: This parameter has not been defined and it is reserved for future definition when version upgrade.
Operational is the interface state
fei_1/6 Yes(ldp) No Yes
Vigilancia y Mantenimiento de MPLS (5)
Ver LDP parmetros de MPLS
R1# show mpls ldp parameters
Protocol version: 1
Downstream label pool: min label: 16; max label: 1048575 // Tamao del rango piscina label:16~1048575
Session hold time: 180 sec; keep alive interval: 60 sec //Sesin Holdtime y el intervalo keepalive
Discovery hello: holdtime: 15 sec; interval: 5 sec //Intervalo de envo de mensaje de saludo y su Holdtime
Downstream on Demand max hop count: 255 //Saltos mximos del Departamento de Defensa de distribucin
LDP initial/maximum backoff: 15/120 sec //Ajuste de parmetros de la sesin LDP de back-off y el
restablecimiento de mecanismo
LDP loop detection: off