Enabling MPLS On Cisco Routers

MPLS Enabling on Cisco IOS

In this MPLS lesson, we will focus on basic Cisco MPLS Configuration. We will study how to enable CEF, how to enable MPLS and how to configure label protocol ldp on Cisco routers. During this survey we will check the configuretion with various basic show command that will be useful during MPLS configurations.


After successfully configuration of the core part, we will discuss hiding the core routes from the customer with disabling ttl propagate. For our Cisco MPLS Configuration Example, we will use the below topology:


Before MPLS configuration, this configuration must be fully connected and you can ping from one end through the other. You will already find the GNS3 configuration file at the end of this article;)


Let’s start the configuration!



PE1 Router

PE1# configure terminal
PE1(config)# ip cef
PE1(config)# mpls label protocol ldp
PE1(config)# interface fastethernet 0/0
PE1(config-if)# mpls ip
PE1(config-if)# end


PE2 Router


PE2# configure terminal
PE2(config)# ip cef
PE2(config)# mpls label protocol ldp
PE2(config)# interface fastethernet 0/0
PE2(config-if)# mpls ip
PE2(config-if)# end



P1 Router


P1# configure terminal
P1(config)# ip cef
P1(config)# mpls label protocol ldp
P1(config)# interface fastethernet 0/0
P1(config-if)# mpls ip
P1(config-if)# exit
P1(config)# interface fastethernet 1/0
P1(config-if)# mpls ip
P1(config-if)# end



P2 Router


P2# configure terminal
P2(config)# ip cef
P2(config)# mpls label protocol ldp
P2(config)# interface fastethernet 0/0
P2(config-if)# mpls ip
P2(config-if)# exit
P2(config)# interface fastethernet 1/0
P2(config-if)# mpls ip
P2(config-if)# end

After the configuration of core routers(P1 and P2) and the customer edge routers(PE1 and PE2), it is time to verify our configuration.


On router P1, use “show mpls interface” to verify that the interfaces are configured to use LDP.


After that check the LDP neighborship with the command “show mpls ldp discovery”.


Lastly use the “show mpls ldp bindings” command to confirm that LDP has provided a label for subnets within the MPLS provider core.

After the verify section we will discuss an important point. This is hiding the core routers from the customer side. As you know provider’s core must be hidden from customers. Customers must not reach to the core routers. From the customer perspective, the connection from the one PE to another, must be like one connection.


Without any configuration, customer side can see the core routers when they start a traceroute from one PE to another PE. Like below, the traceroute command show the core routers as hops.


To prevent core router from customer side, we must disable ttl propagation on routers. To do this on all routers we will use, “no tag-switching ip propagate-ttl” command.


PE1(config)# no tag-switching ip propagate-ttl


PE2(config)# no tag-switching ip propagate-ttl


P1(config)# no tag-switching ip propagate-ttl


P2(config)# no tag-switching ip propagate-ttl


After the configuration of this, core routers won’t seen by traceroute to the customers.


Lastly, on PE1 router, you can use the command to see the tags on this router.



We have finished basic Cisco MPLS Configuration example.


You can download the GNS3 configuration of this lab below.

Download Enabling MPLS Lab.


Lesson tags: mpls, cisco
Back to: CCIE Enterprise Infrastructure > MPLS

Leave a Reply

Your email address will not be published.

IPCisco is the Winner of 2019 “Best Certification Study Journey” Category! We are also Finalist of 2020 & 2021 in Cisco IT Blog Awards!


CCIE Enterprise Infrastructure

IPCisco on Social Media!