Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

LDP

As far as I know, in Cisco implementation of LDP ,all IGP routes will be imported to the LDP database ,and the same will be advertised to the LDP neighbours by default. If I have a requirement that only loopbacks are needed to be advertised to the LDP neighbours thruout ,how can I configure a policy for the same .

Thanks in advance,

Thomas.

2 REPLIES

Re: LDP

Hi Thomas,

the feature you are looking for is called "conditional advertisement". You can define the networks LDP should advertise a label for with an access-list and also optionally the LDP peers through an access-list. An example config looks like this:

no mpls ldp advertise-tags

mpls ldp advertise-tags for 100 to 11

access-list 100 permit ip 192.168.1.0 0.0.0.255 host 255.255.255.255

access-list 11 permit host 10.1.1.1

access-list 11 permit host 10.1.1.2

access-list 11 permit host 10.3.4.5

where f.e. host routes from 192.168.1.0/24 are your loopbacks and there are three peers 10.x.x.x.

Hope this helps! Please rate all posts.

Regards, Martin

Silver

Re: LDP

Just an addition to Martin's post. If you want that conditional advertisement for all LDP neighbors, then omit the access list for the host i.e. the Martin's config can be

no mpls ldp advertise-tags

mpls ldp advertise-tags for 100

access-list 100 permit ip 192.168.1.0 0.0.0.255 host 255.255.255.255

241
Views
7
Helpful
2
Replies