Wednesday, 13 March 2013

MPLS: Can we configure LDP and TDP in the same router?


MPLS: Can we configure LDP and TDP in the same router?

 

·         In MPLS, can we configure LDP and TDP in the same router, the answer is YES!

 

·         For the latest IOS releases, LDP is the default label distribution protocol.

·         If we want to change the protocol, we can change it by using the following command: mpls label protocol ldp or mpls label protocol tdp

·         This label distribution protocol always local to the interface; we can use LDP for one interface and TDP for another interface.

 

Let me take a small topology to configure this one:

 

R2---Ser1/1-----------------Ser1/1---R1---Ser1/0---------------Ser1/0---R3

 

 

R1#show run int ser1/1

Building configuration...

 

Current configuration : 121 bytes

!

interface Serial1/1

 ip address 10.1.12.1 255.255.255.0

 mpls label protocol ldp

 mpls ip

 serial restart-delay 0

end

 

R1#show run int ser1/0

Building configuration...

 

Current configuration : 121 bytes

!

interface Serial1/0

 ip address 10.1.13.1 255.255.255.0

 mpls label protocol tdp

 mpls ip

 serial restart-delay 0

end

 

R1#show run int loop0

Building configuration...

 

Current configuration : 63 bytes

!

interface Loopback0

 ip address 1.1.1.1 255.255.255.255

end

 

R1#show run | sec router ospf

router ospf 1

 router-id 1.1.1.1

 log-adjacency-changes

 network 1.1.1.1 0.0.0.0 area 0

 network 10.1.12.1 0.0.0.0 area 0

 network 10.1.13.1 0.0.0.0 area 0

R1#

 

 

R2#show run int ser1/1

Building configuration...

 

Current configuration : 121 bytes

!

interface Serial1/1

 ip address 10.1.12.2 255.255.255.0

 mpls label protocol ldp

 mpls ip

 serial restart-delay 0

end

 

R2#show run int loop0

Building configuration...

 

Current configuration : 63 bytes

!

interface Loopback0

 ip address 2.2.2.2 255.255.255.255

end

 

R2#show run | s r o

router ospf 1

 router-id 2.2.2.2

 log-adjacency-changes

 network 2.2.2.2 0.0.0.0 area 0

 network 10.1.12.2 0.0.0.0 area 0

R2#

 

R3#show run int ser1/0

Building configuration...

 

Current configuration : 121 bytes

!

interface Serial1/0

 ip address 10.1.13.3 255.255.255.0

 mpls label protocol tdp

 mpls ip

 serial restart-delay 0

end

 

R3#show run int loop0

Building configuration...

 

Current configuration : 63 bytes

!

interface Loopback0

 ip address 3.3.3.3 255.255.255.255

end

 

R3#show run | s r o

router ospf 1

 router-id 3.3.3.3

 log-adjacency-changes

 network 3.3.3.3 0.0.0.0 area 0

 network 10.1.13.3 0.0.0.0 area 0

R3#

 

R1(config-router)#int ser1/0

R1(config-if)#mpls label protocol tdp

R1(config-if)#mpls ip

R1(config-if)#

*Mar 13 11:08:05.339: %LDP-5-NBRCHG: TDP Neighbor 3.3.3.3:0 (1) is UP

 

R3(config-router)#int ser1/0

R3(config-if)#mpls label protocol tdp

R3(config-if)#mpls ip

R3(config-if)#

*Mar 13 11:08:06.143: %LDP-5-NBRCHG: TDP Neighbor 1.1.1.1:0 (1) is UP

R3(config-if)#

 

 

R1(config-if)#int ser1/1

R1(config-if)#mpls label protocol ldp

R1(config-if)#mpls ip

R1(config-if)#

*Mar 13 11:08:34.655: %LDP-5-NBRCHG: LDP Neighbor 2.2.2.2:0 (2) is UP

R1(config-if)#

 

 

R2(config-router)#int ser1/1

R2(config-if)#mpls label protocol ldp

R2(config-if)#mpls ip

R2(config-if)#

*Mar 13 11:08:34.815: %LDP-5-NBRCHG: LDP Neighbor 1.1.1.1:0 (1) is UP

R2(config-if)#

 

 

R2#show mpls ldp neighbor

    Peer LDP Ident: 1.1.1.1:0; Local LDP Ident 2.2.2.2:0

        TCP connection: 1.1.1.1.646 - 2.2.2.2.27550

        State: Oper; Msgs sent/rcvd: 37/37; Downstream

        Up time: 00:25:39

        LDP discovery sources:

          Serial1/1, Src IP addr: 10.1.12.1

        Addresses bound to peer LDP Ident:

          10.1.13.1       10.1.12.1       1.1.1.1

R2#

 

R1#show mpls ldp neighbor

    Peer LDP Ident: 2.2.2.2:0; Local LDP Ident 1.1.1.1:0

        TCP connection: 2.2.2.2.27550 - 1.1.1.1.646

        State: Oper; Msgs sent/rcvd: 38/38; Downstream

        Up time: 00:26:43

        LDP discovery sources:

          Serial1/1, Src IP addr: 10.1.12.2

        Addresses bound to peer LDP Ident:

          10.1.12.2       2.2.2.2

    Peer TDP Ident: 3.3.3.3:0; Local TDP Ident 1.1.1.1:0

        TCP connection: 3.3.3.3.31470 - 1.1.1.1.711

        State: Oper; PIEs sent/rcvd: 0/5; Downstream

        Up time: 00:01:39

        TDP discovery sources:

          Serial1/0, Src IP addr: 10.1.13.3

        Addresses bound to peer TDP Ident:

          10.1.13.3       3.3.3.3

R1#

 

R3#show mpls ldp neighbor

    Peer TDP Ident: 1.1.1.1:0; Local TDP Ident 3.3.3.3:0

        TCP connection: 1.1.1.1.711 - 3.3.3.3.31470

        State: Oper; PIEs sent/rcvd: 0/6; Downstream

        Up time: 00:02:28

        TDP discovery sources:

          Serial1/0, Src IP addr: 10.1.13.1

        Addresses bound to peer TDP Ident:

          10.1.13.1       10.1.12.1       1.1.1.1

R3#

 

Observation:

·         LDP is configured between R1 and R2, Ser1/1

·         TDP is configured between R1 and R3, Ser1/0

No comments:

Post a Comment