Professional Documents
Culture Documents
LDP Basics Exercise
LDP Basics Exercise
The below network will be used for demonstrating the LDP basics.
OSPF is running, each router has loopback interface that takes it's name e.g. for R1 it is 1.1.1.1 and
so on. No MPLS or LDP has been enabled yet.
R5#
CONFIGURATION OF LDP
Basic Commands
As can be seen that mpls is configured on the interfaces, against the interface we have Yes(ldp)
As can be seen that R1 is sending the LDP hello packets (xmit) but has no RX is there is no configured
peer on the other end
R2: Configuration
Same configuration steps as R1
FURTHER INVESTIGATION
Further investigation of the R1 and R2
Since the R1 and R2 peering is established, lets dig some more details
Compare the tables for R1 and R2 for show mpls ldp neighbour command. Comments are provided.
COMMENTS
R1#show mpls ldp neighbor from the perspective of R1
Peer LDP Ident: 2.2.2.2:0; Local LDP Ident Peer is R2 (correct), local Identity is own
1.1.1.1:0 loopback address
TCP connection: 2.2.2.2.40508 -
1.1.1.1.646 TCP Connection between FE_NE; IP and Port
State: Oper; Msgs sent/rcvd: 61/60;
Downstream State: Operational, also no of messages
Up time: 00:40:31
LDP discovery sources:
GigabitEthernet1/0, Src IP addr:
192.168.2.2 discovered on far-end with IF and IP
Addresses bound to peer LDP Ident:
192.168.25.1 192.168.2.2
192.168.23.1 2.2.2.2 Interfaces configured on the R2 (Peer)
COMMENTS
R2#show mpls ldp neighbor from the perspective of R2
Peer LDP Ident: 1.1.1.1:0; Local LDP Ident Peer is R1 (correct), local Identity is own
2.2.2.2:0 loopback address
TCP connection: 1.1.1.1.646 -
2.2.2.2.40508 TCP Connection between FE_NE; IP and Port
State: Oper; Msgs sent/rcvd: 105/107;
Downstream State: Operational, also no of messages
Up time: 01:19:48
LDP discovery sources:
GigabitEthernet1/0, Src IP addr:
192.168.2.1 discovered on far-end with IF and IP
Addresses bound to peer LDP Ident:
192.168.1.1 192.168.2.1
192.168.3.1 1.1.1.1 Interfaces configured on the R1 (Peer)
Once the LDP is activated on a Router, then for each route in the route table of that router a label is
assigned. There are two types of local label
- Local Binding
- Remote Binding (labels for the same subnet received by the peer router).
- The below table shows that for each route in the table R1, it assigned a label in addition it
also received a label for these subnets from R2 (since currently there is only 1 peer r2)