Routing

last person joined: 3 days ago 

Ask questions and share experiences about ACX Series, CTP Series, MX Series, PTX Series, SSR Series, JRR Series, and all things routing, including portfolios and protocols.
  • 1.  Is there any way to advertise a prefix into LDP with a label?

    Posted 08-11-2015 07:18

    I'm trying to create an LDP egress-policy and advertise some labels. 
    The thing is I want these prefixes to be advertised along with a label.

    R4

    root@vMX-4# show protocols ldp 
    egress-policy LDP_IMPORT;
    explicit-null;
    interface ge-0/0/1.47;
    interface lo0.0;
    
    root@vMX-4# show policy-options policy-statement LDP_IMPORT 
    term 1 {
    from {
    route-filter 10.200.1.3/32 exact;
    route-filter 10.200.1.6/32 exact;
    route-filter 10.200.1.8/32 exact;
    route-filter 10.200.1.4/32 exact;
    }
    then accept;


    R4 neighbor receives these routes via LDP but without any label

    root@vMX-7# run show route table inet.3 protocol ldp    
    
    inet.3: 5 destinations, 5 routes (5 active, 0 holddown, 0 hidden)
    + = Active Route, - = Last Active, * = Both
    
    10.200.1.1/32      *[LDP/9] 00:05:03, metric 1
                        > to 10.200.2.24 via ge-0/0/1.17
    10.200.1.3/32      *[LDP/9] 00:00:23, metric 1
                        > to 10.200.2.24 via ge-0/0/1.17, Push 300192
                          to 10.200.2.22 via ge-0/0/1.47, Push 0
    10.200.1.4/32      *[LDP/9] 00:00:02, metric 1
                        > to 10.200.2.22 via ge-0/0/1.47, Push 0
    10.200.1.6/32      *[LDP/9] 00:00:23, metric 1
                          to 10.200.2.24 via ge-0/0/1.17, Push 300224
                        > to 10.200.2.22 via ge-0/0/1.47, Push 0
    10.200.1.8/32      *[LDP/9] 00:00:23, metric 1
                          to 10.200.2.24 via ge-0/0/1.17, Push 300208
                        > to 10.200.2.22 via ge-0/0/1.47, Push 0

    Ignore "push 0", it comes along with explicit-null.

    My questions is how do I advertise there prefixes along with an LDP label. 
    Thank you! 






  • 2.  RE: Is there any way to advertise a prefix into LDP with a label?
    Best Answer

    Posted 08-11-2015 15:35

    Hello,

     


    flashdumper@yandex.ru wrote:

    I'm trying to create an LDP egress-policy and advertise some labels. 
    The thing is I want these prefixes to be advertised along with a label.





    It is advertised "with a label" - it's label 3 at the adjacent router and some other label on every other router. Check with "show ldp database".

    If You want this label to be not 3 and not 0, then it's called Ultimate Hop Popping (UHP) and JUNOS does not support it for LDP (yet)

    http://www.juniper.net/documentation/en_US/junos15.1/topics/task/configuration/mpls-ultimate-hop-popping-enabling.html

     

    HTH

    Thanks

    Alex



  • 3.  RE: Is there any way to advertise a prefix into LDP with a label?

    Posted 08-11-2015 22:22

    Alex, Hi 
    You got what I meant. 
    Thank you.