miércoles, 21 de julio de 2010

LDP Autoconfig/Sync IS-IS

LDP Autoconfig (en IS-IS a partir del IOS 15.0) es una forma rápida de habilitar LDP en el proceso IGP (OSPF o IS-IS) evitando utilizar el comando mpls ip en cada interface. No existen problemas de compatibilidad entre un LSR con LDP Autoconfig y otro utilizando mpls ip en la interface.
El comando mpls ldp autoconfig se configura en el proceso. Para IS-IS debemos definir el tipo de adyacencia (Level-1 o Level-2)

R7(config)#router isis
R7(config-router)# mpls ldp autoconfig ?
level-1 Configure ISIS level-1 to run MPLS LDP
level-2 Configure ISIS level-2 to run MPLS LDP

R7(config-router)# mpls ldp autoconfig level-2

--------------------------------------------------------------------------
R7
router isis
mpls ldp autoconfig level-2

R8
router isis
mpls ldp autoconfig level-2

R10
router isis
mpls ldp autoconfig level-2

R11
router isis
mpls ldp autoconfig level-2
--------------------------------------------------------------------------

Localmente podemos verificar errores con debug mpls ldp igp autoconfig.

--------------------------------------------------------------------------
R7#debug mpls ldp igp autoconfig interface fastEthernet 0/0
LDP automatic configuration debugging is on for interface FastEthernet0/0

R7#show debugging
MPLS ldp:
LDP automatic configuration debugging is on

R7(config)#router isis
R7(config-router)#no mpls ldp autoconfig level-2
R7(config-router)#
LDP-AC: Obtained ldp_ctxid (0x0) from IGP instance
LDP-AC: Disabling LDP autoconfig from interface Fa0/0
LDP-AC: ISIS level 2 [flags 0x9, handle 0x6705CE54]:: Received disable request for Fa0/0; area/level=2
LDP-AC: ISIS level 2 [flags 0xD, handle 0x6705CE54]:: Dequeued record from Fa0/0
LDP-AC: ISIS level 2 [flags 0xD, handle 0x6705CE54]:: Removed record from Fa0/0
LDP-AC: Disabling LDP autoconfig from interface Fa0/0
--------------------------------------------------------------------------

El comando show mpls interfaces detail nos muestra que método LDP utilizamos. Puesto que en este caso se trata de LDP Autoconfig veremos el campo IP labeling enabled (ldp): IGP config.

--------------------------------------------------------------------------
R7#show mpls interfaces fastEthernet 0/0 detail
Interface FastEthernet0/0:
IP labeling enabled (ldp):
IGP config
LSP Tunnel labeling not enabled
BGP labeling not enabled
MPLS operational
MTU = 1500

R7#show mpls forwarding-table
Local Outgoing Prefix Bytes Label Outgoing Next Hop
Label Label or Tunnel Id Switched interface
700 Pop Label 10.0.0.10/32 0 Fa0/0 10.1.107.10
701 1003 10.0.0.8/32 0 Fa0/0 10.1.107.10
1101 10.0.0.8/32 0 Fa1/0 10.1.117.11
702 Pop Label 10.1.108.0/24 0 Fa0/0 10.1.107.10
703 Pop Label 10.1.111.0/24 0 Fa0/0 10.1.107.10
Pop Label 10.1.111.0/24 0 Fa1/0 10.1.117.11
704 Pop Label 10.1.118.0/24 0 Fa1/0 10.1.117.11
705 Pop Label 10.0.0.11/32 0 Fa1/0 10.1.117.11
--------------------------------------------------------------------------

LDP Synchronization
El sincronismo es necesario en redes MPLS VPN, VPLS, IPv6 sobre MPLS y AToM donde el paquete contiene mas de una etiqueta MPLS.
Una red LDP-IGP sincronizada impide que se utilice un enlace que no tenga habilitado MPLS, con esto evitamos que un LSR en el camino (LSP) descarte paquetes, pero aún sea capaz de enviar los paquetes por un camino alternativo (en caso que exista).
Para activar la sincronización usamos el comando mpls ldp sync en el proceso (IS-IS y OSPF).

--------------------------------------------------------------------------
R7
router isis
mpls ldp sync

R8
router isis
mpls ldp sync

R10
router isis
mpls ldp sync

R11
router isis
mpls ldp sync
--------------------------------------------------------------------------

Comprobamos que ldp synchcronization esté activo con el comando:

--------------------------------------------------------------------------
R7#show isis mpls ldp interface fastEthernet 0/0
Interface: FastEthernet0/0; ISIS tag null enabled
ISIS is UP on interface
AUTOCONFIG Information :
LDP enabled: YES
SYNC Information :
Required: YES
Achieved: YES
IGP Delay: NO
Holddown time: Infinite
State: SYNC achieved
--------------------------------------------------------------------------


No hay comentarios:

Publicar un comentario