NCS Lab 3: Configuring MPLS LDP within Service Provider
Configuring MPLS LDP within Service Provider
In Lab 3: Configuring MPLS LDP within Service Provider, participants typically focus on the practical aspects of configuring Multiprotocol Label Switching (MPLS) using Label Distribution Protocol (LDP) within a Service Provider network environment using Cisco Network Convergence System (NCS) devices. This lab involves tasks such as enabling MPLS on interfaces, configuring LDP parameters, and verifying the establishment of Label Switched Paths (LSPs). Participants may also explore MPLS-specific attributes, such as labels and forwarding tables, to ensure proper MPLS operation. The lab aims to provide hands-on experience in deploying MPLS LDP, a crucial technology for optimizing and scaling the delivery of network services in Service Provider environments. Successful completion of NCS Lab 3 equips participants with practical skills in configuring MPLS LDP, contributing to the enhancement of traffic engineering and efficient utilization of network resources.
Lab:
Task 1: Understanding Pre-configuration
The following configuration needs to be configured
- IP addressing for all nodes including Physical and Software Interfaces.
- OSPF has been configured using the below table.
Task 2: Configure LDP within Service Provider.
PE1#configure terminal
PE1(config)#mpls label protocol ldp
PE1(config)#mpls ldp router-id lo1
PE1(config)#interface Ethernet 0/2
PE1(config-if)#mpls ip
PE1(config-if)#end
PE1#write memory
RP/0/0/CPU0:P1#configure
Fri Jun 11 06:46:09.347 UTC
RP/0/0/CPU0:P1(config)#mpls ldp
RP/0/0/CPU0:P1(config-ldp)#router-id 3.3.3.3
RP/0/0/CPU0:P1(config-ldp)#interface gigabitEthernet 0/0/0/2
RP/0/0/CPU0:P1(config-ldp-if)#interface gigabitEthernet 0/0/0/3
RP/0/0/CPU0:P1(config-ldp-if)#commit
Fri Jun 11 06:46:29.145 UTC
RP/0/0/CPU0:P1(config-ldp-if)#end
RP/0/0/CPU0:RR1#configure
Fri Jun 11 06:53:50.428 UTC
RP/0/0/CPU0:RR1(config)#mpls ldp
RP/0/0/CPU0:RR1(config-ldp)#router-id 4.4.4.4
RP/0/0/CPU0:RR1(config-ldp)#interface gigabitEthernet 0/0/0/2
RP/0/0/CPU0:RR1(config-ldp-if)#interface gigabitEthernet 0/0/0/3
RP/0/0/CPU0:RR1(config-ldp-if)#commit
Fri Jun 11 06:54:19.196 UTC
RP/0/0/CPU0:RR1(config-ldp-if)#end
P2#configure terminal
P2(config)#mpls label protocol ldp
P2(config)#mpls ldp router-id loopback 1
P2(config)#interface Ethernet 0/2
P2(config-if)#mpls ip
P2(config-if)#interface Ethernet 0/3
P2(config-if)#mpls ip
P2(config-if)#end
P2#write memory
RP/0/0/CPU0:PE2#configure
RP/0/0/CPU0:PE2(config)#mpls ldp
RP/0/0/CPU0:PE2(config-ldp)#router-id 6.6.6.6
RP/0/0/CPU0:PE2(config-ldp)#interface gigabitEthernet 0/0/0/3
RP/0/0/CPU0:PE2(config-ldp-if)#commit
RP/0/0/CPU0:PE2(config-ldp-if)#end
Task 3: Verification of MPLS LDP Configuration.
PE1#show mpls forwarding-table
Local Outgoing Prefix Bytes Label Outgoing Next Hop
Label Label or Tunnel Id Switched Interface
16 Pop Label 3.3.3.3/32 0 Ethernet 0/2 10.0.23.3
17 24001 4.4.4.4/32 0 Ethernet 0/2 10.0.23.3
18 24003 5.5.5.5/32 0 Ethernet 0/2 10.0.23.3
19 24005 6.6.6.6/32 0 Ethernet 0/2 10.0.23.3
20 Pop Label 10.0.34.0/24 0 Ethernet 0/2 10.0.23.3
21 24002 10.0.45.0/24 0 Ethernet 0/2 10.0.23.3
22 24004 10.0.56.0/24 0 Ethernet 0/2 10.0.23.3
RP/0/0/CPU0:P1#show mpls forwarding
Local Outgoing Prefix Outgoing Next Hop Bytes
Label Label or ID Interface Switched
------ ----------- ------------------ ------------ --------------- ------------
24000 Pop 2.2.2.2/32 Gi0/0/0/2 10.0.23.2 10878
24001 Pop 4.4.4.4/32 Gi0/0/0/3 10.0.34.4 9898
24002 Pop 10.0.45.0/24 Gi0/0/0/3 10.0.34.4 0
24003 24003 5.5.5.5/32 Gi0/0/0/3 10.0.34.4 0
24004 24004 10.0.56.0/24 Gi0/0/0/3 10.0.34.4 0
24005 24005 6.6.6.6/32 Gi0/0/0/3 10.0.34.4 0
RP/0/0/CPU0:RR1#show mpls forwarding
Local Outgoing Prefix Outgoing Next Hop Bytes
Label Label or ID Interface Switched
------ ----------- ------------------ ------------ --------------- ------------
24000 24000 2.2.2.2/32 Gi0/0/0/3 10.0.34.3 0
24001 Pop 3.3.3.3/32 Gi0/0/0/3 10.0.34.3 10192
24002 Pop 10.0.23.0/24 Gi0/0/0/3 10.0.34.3 0
24003 Pop 5.5.5.5/32 Gi0/0/0/2 10.0.45.5 10210
24004 Pop 10.0.56.0/24 Gi0/0/0/2 10.0.45.5 0
24005 19 6.6.6.6/32 Gi0/0/0/2 10.0.45.5 0
P2#show mpls forwarding-table
Local Outgoing Prefix Bytes Label Outgoing Next Hop
Label Label or Tunnel Id Switched Interface
16 24000 2.2.2.2/32 0 Ethernet 0/2 10.0.45.4
17 24001 3.3.3.3/32 0 Ethernet 0/2 10.0.45.4
18 Pop Label 4.4.4.4/32 0 Ethernet 0/2 10.0.45.4
19 Pop Label 6.6.6.6/32 0 Ethernet 0/3 10.0.56.6
20 24002 10.0.23.0/24 0 Ethernet 0/2 10.0.45.4
21 Pop Label 10.0.34.0/24 0 Ethernet 0/2 10.0.45.4
RP/0/0/CPU0:PE2#show mpls forwarding
Local Outgoing Prefix Outgoing Next Hop Bytes
Label Label or ID Interface Switched
------ ----------- ------------------ ------------ --------------- ------------
24000 16 2.2.2.2/32 Gi0/0/0/3 10.0.56.5 0
24001 17 3.3.3.3/32 Gi0/0/0/3 10.0.56.5 0
24002 18 4.4.4.4/32 Gi0/0/0/3 10.0.56.5 0
24003 Pop 5.5.5.5/32 Gi0/0/0/3 10.0.56.5 10366
24004 Pop 10.0.45.0/24 Gi0/0/0/3 10.0.56.5 0
24005 21 10.0.34.0/24 Gi0/0/0/3 10.0.56.5 0
24006 20 10.0.23.0/24 Gi0/0/0/3 10.0.56.5 0
Task 4: Verify MPLS Labelled interfaces
PE1#show mpls interfaces
Interface IP Tunnel BGP Static Operational
Ethernet0/2 Yes (ldp) No No No Yes
RP/0/0/CPU0:P1#show mpls interfaces
Interface LDP Tunnel Static Enabled
-------------------------- -------- -------- -------- --------
GigabitEthernet0/0/0/2 Yes No No Yes
GigabitEthernet0/0/0/3 Yes No No Yes
RP/0/0/CPU0:RR1#show mpls interfaces
Interface LDP Tunnel Static Enabled
-------------------------- -------- -------- -------- --------
GigabitEthernet0/0/0/2 Yes No No Yes
GigabitEthernet0/0/0/3 Yes No No Yes
P2#show mpls interfaces
Interface IP Tunnel BGP Static Operational
Ethernet0/2 Yes (ldp) No No No Yes
Ethernet0/3 Yes (ldp) No No No Yes
RP/0/0/CPU0:PE2#show mpls interfaces
Interface LDP Tunnel Static Enabled
-------------------------- -------- -------- -------- --------
GigabitEthernet0/0/0/3 Yes No No Yes
Task 5: Verify MPLS Labelled interfaces
PE1#show mpls ldp neighbor
Peer LDP Ident: 3.3.3.3:0; Local LDP Ident 2.2.2.2:0
TCP connection: 3.3.3.3.14229 - 2.2.2.2.646
State: Oper; Msgs sent/rcvd: 23/23; Downstream
Up time: 00:10:07
LDP discovery sources:
Ethernet0/2, Src IP addr: 10.0.23.3
Addresses bound to peer LDP Ident:
10.0.23.3 10.0.34.3 3.3.3.3
RP/0/0/CPU0:P1#show mpls ldp neighbor
Peer LDP Identifier: 2.2.2.2:0
TCP connection: 2.2.2.2:646 - 3.3.3.3:14229
LDP Discovery Sources:
IPv4: (1)
GigabitEthernet0/0/0/2
IPv6: (0)
Addresses bound to this peer:
IPv4: (2)
2.2.2.2 10.0.23.2
IPv6: (0)
Peer LDP Identifier: 4.4.4.4:0
TCP connection: 4.4.4.4:56206 - 3.3.3.3:646
Up time: 00:09:07
LDP Discovery Sources:
IPv4: (1)
GigabitEthernet0/0/0/3
IPv6: (0)
Addresses bound to this peer:
IPv4: (3)
4.4.4.4 10.0.34.4 10.0.45.4
IPv6: (0)
RP/0/0/CPU0:RR1#show mpls ldp neighbor
Peer LDP Identifier: 5.5.5.5:0
TCP connection: 5.5.5.5:33251 - 4.4.4.4:646
Graceful Restart: No
Session Holdtime: 180 sec
State: Oper; Msgs sent/rcvd: 23/23; Downstream-Unsolicited
Up time: 00:10:31
LDP Discovery Sources:
IPv4: (1)
GigabitEthernet0/0/0/2
IPv6: (0)
Addresses bound to this peer:
IPv4: (3)
5.5.5.5 10.0.45.5 10.0.56.5
IPv6: (0)
Peer LDP Identifier: 3.3.3.3:0
TCP connection: 3.3.3.3:646 - 4.4.4.4:56206
Graceful Restart: No
Session Holdtime: 180 sec
State: Oper; Msgs sent/rcvd: 23/23; Downstream-Unsolicited
Up time: 00:10:31
LDP Discovery Sources:
IPv4: (1)
GigabitEthernet0/0/0/3
IPv6: (0)
Addresses bound to this peer:
IPv4: (3)
3.3.3.3 10.0.23.3 10.0.34.3
IPv6: (0)
P2#show mpls ldp neighbor
Peer LDP Ident: 4.4.4.4:0; Local LDP Ident 5.5.5.5:0
TCP connection: 4.4.4.4.646 - 5.5.5.5.33251
State: Oper; Msgs sent/rcvd: 24/24; Downstream
Up time: 00:10:55
LDP discovery sources:
Ethernet0/2, Src IP addr: 10.0.45.4
Addresses bound to peer LDP Ident:
10.0.45.4 10.0.34.4 4.4.4.4
Peer LDP Ident: 6.6.6.6:0; Local LDP Ident 5.5.5.5:0
TCP connection: 6.6.6.6.12972 - 5.5.5.5.646
State: Oper; Msgs sent/rcvd: 22/22; Downstream
Up time: 00:09:05
LDP discovery sources:
Ethernet0/3, Src IP addr: 10.0.56.6
Addresses bound to peer LDP Ident:
10.0.56.6 6.6.6.6
RP/0/0/CPU0:PE2#show mpls ldp neighbor
Peer LDP Identifier: 5.5.5.5:0
TCP connection: 5.5.5.5:646 - 6.6.6.6:12972
Graceful Restart: No
Session Holdtime: 180 sec
State: Oper; Msgs sent/rcvd: 23/22; Downstream-Unsolicited
Up time: 00:09:28
LDP Discovery Sources:
IPv4: (1)
GigabitEthernet0/0/0/3
IPv6: (0)
Addresses bound to this peer:
IPv4: (3)
5.5.5.5 10.0.45.5 10.0.56.5
IPv6: (0)