Professional Documents
Culture Documents
MPLS LDP Label Filtering Example
MPLS LDP Label Filtering Example
com
Search...
Table of Contents
MPLS
Unit 1: Introduction
Above we have 3 routers and each router has 2 loopback interfaces so that we have plenty of networks to play with. Before we enable MPLS
we’ll con gure OSPF so that all networks are advertised:
R1,R2,R3:
(config)#router ospf 1
(config-router)#network 0.0.0.0 255.255.255.255 area 0
We’ll do this the easy way and activate OSPF on all interfaces. Now let’s enable MPLS on the FastEthernet interfaces:
https://networklessons.com/mpls/mpls-ldp-label-filtering-example 1/7
4/29/2019 MPLS LDP Label Filtering Example | NetworkLessons.com
So far so good, now let’s take a look at the LDP labels that have been generated:
For all networks a label has been generated by LDP. Now let’s con gure ltering so that we only generate labels for the loopback 0 interfaces.
This is how you do it:
https://networklessons.com/mpls/mpls-ldp-label-filtering-example 2/7
4/29/2019 MPLS LDP Label Filtering Example | NetworkLessons.com
First use no mpls ldp advertise-labels to disable the advertisement of all labels. Secondly use the mpls ldp advertise-labels for command
and refer to an access-list or pre x-list to choose what networks should have a label.
Be careful, if you forget to use the no mpls ldp advertise-labels command you will discover that LDP is STILL advertising a label for
each network…
Above you can see that only network 1.1.1.1/32, 2.2.2.2/32 and 3.3.3.3/32 now have a label when advertised to a LDP neighbor.
Configurations
Want to take a look for yourself? Here you will nd the con guration of each device.
R1
https://networklessons.com/mpls/mpls-ldp-label-filtering-example 3/7
4/29/2019 MPLS LDP Label Filtering Example | NetworkLessons.com
hostname R1
!
ip cef
!
no mpls ldp advertise-labels
mpls ldp advertise-labels for 1
!
interface Loopback0
ip address 1.1.1.1 255.255.255.255
!
interface Loopback1
ip address 11.11.11.11 255.255.255.255
!
interface FastEthernet0/0
ip address 192.168.12.1 255.255.255.0
mpls ip
!
router ospf 1
network 0.0.0.0 255.255.255.255 area 0
!
access-list 1 permit 1.1.1.1
!
end
R2
hostname R2
!
ip cef
!
no mpls ldp advertise-labels
mpls ldp advertise-labels for 1
!
interface Loopback0
ip address 2.2.2.2 255.255.255.255
!
interface Loopback1
ip address 22.22.22.22 255.255.255.255
!
interface FastEthernet0/0
ip address 192.168.12.2 255.255.255.0
mpls ip
!
interface FastEthernet0/1
ip address 192.168.23.2 255.255.255.0
mpls ip
!
router ospf 1
network 0.0.0.0 255.255.255.255 area 0
!
access-list 1 permit 2.2.2.2
!
end
R3
https://networklessons.com/mpls/mpls-ldp-label-filtering-example 4/7
4/29/2019 MPLS LDP Label Filtering Example | NetworkLessons.com
hostname R3
!
ip cef
!
no mpls ldp advertise-labels
mpls ldp advertise-labels for 1
!
interface Loopback0
ip address 3.3.3.3 255.255.255.255
!
interface Loopback1
ip address 33.33.33.33 255.255.255.255
!
interface FastEthernet0/0
ip address 192.168.23.3 255.255.255.0
mpls ip
!
router ospf 1
network 0.0.0.0 255.255.255.255 area 0
!
access-list 1 permit 3.3.3.3
!
end
That’s all I wanted to show you, if you have any questions feel free to leave a comment!
« Previous Lesson
MPLS LDP (Label Distribution
Protocol)
Next Lesson
VRFs (Virtual Routing and
Forwarding)
»
Tags: LDP
Forum Replies
system
ReneMolenaar
That’s what this tutorial is about… ltering tags so not all pre xes get a tag. R2 only sends a tag for 2.2.2.2 /32 to R1 and R3, not for 1.1.1.1/32 or 3.3.3.3/32.
ReneMolenaar
TDP is the old Cisco equivalent protocol for LDP. LDP is an IETF standard. On older IOS versions, TDP is the default. Nowadays LDP is the default. There is a
command to change the protocol:
https://networklessons.com/mpls/mpls-ldp-label-filtering-example 5/7
4/29/2019 MPLS LDP Label Filtering Example | NetworkLessons.com
Zaman.rubd
Hi Rene,
I am little bit confused that where we can use the label ltering in Production network .I am looking for scenario where we deploy it . Thx
br//zaman
ReneMolenaar
Hi Zaman,
Think of an MPLS VPN network where we have PE and CE routers. The PE routers only require an LSP (Label Switched Path) between their loopback interfaces
and the /32 IP address that is con gured on these loopback interfaces. These are the IP addresses that are used for the next hops in BGP.
By default, LDP creates and advertises a label for each and every pre x that is learned. This increases memory usage but also the number of advertisements
between peers. If you only advertise labels for the LSPs that you need, you reduce convergence time and memory usage.
8 more replies! Ask a question or join the discussion by visiting our Community Forum
Hello There!
I am René Molenaar (CCIE
#41726), Your main Instructor.
My goal is to teach you
everything about Cisco,
Wireless and Security. I am
here to Help You Master Networking!
Read my story
Social Fans
14,319 9,788
FANS FOLLOWERS
658 14,352
FOLLOWERS SUBSCRIBERS
New Lessons
Device Programmability
Data Models and Structures
Network Automation and Orchestration
Cloud Connectivity
Virtualization Functions (NFVI, VNF)
https://networklessons.com/mpls/mpls-ldp-label-filtering-example 6/7
4/29/2019 MPLS LDP Label Filtering Example | NetworkLessons.com
Tag Cloud
802.1Q 802.1X ACL ARP Authentication
Certi cate Cloud Design DMVPN DHCP
Filtering GRE IGMP IKE IOS
IP Routing IPSec LDP Linux
Load Balancing LSA NAT Network Management
Disclaimer
Privacy Policy
Support
© 2013 - 2019 NetworkLessons.com 21871
https://networklessons.com/mpls/mpls-ldp-label-filtering-example 7/7