In this section, we will see how to configure Basic MPLS in Maipu Routers. Since configuring MPLS in Cisco and Maipu is having little bit difference, not much.
Description -
Configurations -
Note - before establishing LDP, Make sure that your IGP is running in cloud.
For any queries and feedback, Plz comment with your Name and Mail id...
MPLS means you all know, configuring LDP in routers and establishing ldp neighborship with peer routers.
Here is setup of three Maipu routers.
In the configuration instance, router 1 and router 3 are PE devices; router 2 is the P device; the P and PE devices form the MPLS backbone network. Here, router 1 and router 2 are connected via the serial port; router 2 and router 3 are connected via Ethernet interface. In the MPLS backbone network, OSPF is running as IGP routing protocol and label distributing protocol LDP for label distribution.
Topology
MPLS Network |
The configuration of router 1:
Command | Description |
Router1(config)# mpls ip | Enable the global MPLS label forwarding |
Router1(config)# interface loopback0 | Configure the loopback port (IP address is |
Router1 (config-if-loopback0)# ip address | |
Router1 (config-if-loopback0)# exit | |
Router1 (config)# interface serial 0/1 | Configure the interface connected to P (router 2) |
Router1 (config-if-serial0/1)# physical-layer sync | |
Router1 (config-if-serial0/1)# encapsulation ppp | |
Router1 (config-if-serial0/1)# ip address | |
Router1 (config-if-serial0/1)# mpls ip | Enable the label forwarding of the interface |
Router1 (config-if-serial0/1)# mpls ldp | Enable the LDP protocol on the interface |
Router1 (config-if-serial0/1)# exit | |
Router1 (config)# router ospf 1 | Configure IGP (OSPF) |
Router1 (config-ospf)# network | |
Router1 (config-ospf)# network | |
Router1 (config-ospf)#exit | |
Router1 (config)# mpls ldp | Configure the LDP protocol |
Router1 (config-ldp)# router-id | Configure the router-id of the LDP |
Router1 (config-ldp)# transport-address | Configure the LDP transmission address |
Router1 (config-ldp)#exit |
The configuration of router 2:
Command | Description |
Router2(config)# mpls ip | Enable the global MPLS label forwarding |
Router2(config)# interface loopback0 | Configure the loopback port (the IP address is |
Router2 (config-if-loopback0)# ip address | |
Router2 (config-if-loopback0)# exit | |
Router2 (config)# interface fastethernet 1 | Configure the interface connected to PE (router 3) |
Router2 (config-if-fastethernet1)# ip address | Configure the IP address |
Router2 (config-if-fastethernet1)# mpls ip | Enable the label forwarding of the interface |
Router2 (config-if-fastethernet1)# mpls ldp | Enable the LDP protocol on the interface |
Router2 (config-if-fastethernet1)#exit | |
Router2 (config)# interface serial0/1 | Configure the interface connected to PE (router 1) |
Router2 (config-if-serial0/1)# physical-layer sync | |
Router2 (config-if-serial0/1)# clock rate 2000000 | |
Router2 (config-if-serial0/1)# encapsulation ppp | |
Router2 (config-if-serial0/1)# ip address | |
Router2 (config-if-serial0/1)# mpls ip | Enable the label forwarding of the interface |
Router2 (config-if-serial0/1)# mpls ldp | Enable the LDP protocol on the interface |
Router2 (config-if-serial0/1)# exit | |
Router2 (config)# router ospf 1 | Configure IGP (OSPF) |
Router2 (config-ospf)# network | |
Router2 (config-ospf)# network | |
Router2 (config-ospf)# network | |
Router2 (config-ospf)#exit | |
Router2 (config)# mpls ldp | Configure the LDP protocol |
Router2 (config-ldp)# router-id | Configure the router-id of the LDP |
Router2 (config-ldp)# transport-address | Configure the LDP transmission address |
Router2 (config-ldp)#exit |
The configuration of router 3:
Command | Description |
Router3(config)# mpls ip | Enable the global MPLS label forwarding |
Router3(config)# interface loopback0 | Configure the loopback port (the IP address is |
Router3 (config-if-loopback0)# ip address | |
Router3 (config-if-loopback0)# exit | |
Router3 (config)# interface fastethernet 1 | Configure the interface connected to P (router 2) |
Router3 (config-if-fastethernet1)# ip address | Configure the IP address |
Router3 (config-if-fastethernet1)# mpls ip | Enable the label forwarding of the interface |
Router3 (config-if-fastethernet1)# mpls ldp | Enable the LDP protocol on the interface |
Router3 (config-if-fastethernet1)#exit | |
Router3 (config)# router ospf 1 | Configure IGP (OSPF) |
Router3 (config-ospf)# network | |
Router3 (config-ospf)# network | |
Router3 (config-ospf)#exit | |
Router3 (config)# mpls ldp | Configure the LDP protocol |
Router3 (config-ldp)# router-id | Configure the router-id of the LDP |
Router3 (config-ldp)# transport-address | Configure the LDP transmission address |
Router3 (config-ldp)#exit |
After completing the configuration, use the show mpls ldp session command to view whether the session of targeted-peer is set up or not.
Basically in Maipu your need to configure MPLS ldp in seprate with router-id and with transport address to establish ldp neighborship.
Hope this configuration will help you to configure LDP in Maipu router.