Junos OS

last person joined: 7 days ago 

Ask questions and share experiences about Junos OS.
  • 1.  ldp in logical-routers

    Posted 12-19-2009 13:39

    Hello,

     

    I am trying to establish a ldp session between 2 logical routers but I fail.

    This is my config (I use Junos8.3R2.8) :

     

    root# show logical-routers R1
    interfaces {
        fxp1 {
            unit 2 {
                vlan-id 2;
                family inet {
                    address 10.10.10.1/24;
                }
            }
            unit 10 {
                vlan-id 10;
                family inet {
                    address 12.12.12.1/24;
                }
            }
        }
        lo0 {
            unit 0 {
                family inet {
                    address 100.100.100.10/32;
                }
            }
        }
    }
    protocols {        
        mpls {
            interface fxp1.10;
        }
        ospf {
            area 0.0.0.0 {
                interface 10.10.10.1 {
                    interface-type p2mp;
                    neighbor 10.10.10.2 eligible;
                }
                interface lo0.0 {
                    interface-type p2mp;
                }
            }
        }
        ldp {
            transport-address 12.12.12.1;
            interface fxp1.10;
        }
    }

     

     

    root# show logical-routers R2   
    interfaces {
        fxp2 {
            unit 2 {
                vlan-id 2;
                family inet {
                    address 10.10.10.2/24;
                }
            }
            unit 10 {
                vlan-id 10;
                family inet {
                    address 12.12.12.2/24;
                }
            }
        }
        lo0 {
            unit 1 {
                family inet {
                    address 200.200.200.200/32;
                }
            }
        }
    }
    protocols {        
        mpls {
            interface fxp2.10;
        }
        ospf {
            area 0.0.0.0 {
                interface 10.10.10.2 {
                    interface-type p2mp;
                }
            }
        }
        ldp {
            transport-address 12.12.12.2;
            interface fxp2.10;
        }
    }
    routing-options {
        router-id 200.200.200.200;

     

     

    run ping logical-router R1 12.12.12.2
    PING 12.12.12.2 (12.12.12.2): 56 data bytes
    64 bytes from 12.12.12.2: icmp_seq=0 ttl=64 time=1.017 ms
    64 bytes from 12.12.12.2: icmp_seq=1 ttl=64 time=0.391 ms
    ^C
    --- 12.12.12.2 ping statistics ---
    2 packets transmitted, 2 packets received, 0% packet loss
    round-trip min/avg/max/stddev = 0.391/0.704/1.017/0.313 ms

     

    root# run ping logical-router R2 12.12.12.1   
    PING 12.12.12.1 (12.12.12.1): 56 data bytes
    64 bytes from 12.12.12.1: icmp_seq=0 ttl=64 time=1.489 ms
    64 bytes from 12.12.12.1: icmp_seq=1 ttl=64 time=0.328 ms
    ^C
    --- 12.12.12.1 ping statistics ---
    2 packets transmitted, 2 packets received, 0% packet loss
    round-trip min/avg/max/stddev = 0.328/0.909/1.489/0.581 ms

    root# run show ospf neighbor logical-router R1
    Address          Interface              State     ID               Pri  Dead
    10.10.10.2       fxp1.2                 Full      200.200.200.200  128    31

    root# run show ldp interface logical-router R1

     

    Can someone give me an idea?

    Thank you



  • 2.  RE: ldp in logical-routers

     
    Posted 12-22-2009 00:53

    Hi,

     

    Add family mpls under tour interfaces (ie fxp*.10) and it will be OK

     

    HTH

     



  • 3.  RE: ldp in logical-routers

    Posted 12-22-2009 03:32

     Thank you for your response but it is not working. I made a new config like this:

     

     

    root# show logical-routers R1
    interfaces {
        fxp1 {
            unit 2 {
                vlan-id 2;
                family inet {
                    address 10.10.10.1/24;
                }
                family mpls;
            }
        }
    }
    protocols {
        mpls {
            interface fxp1.2;
        }
        ospf {
            area 0.0.0.0 {
                interface fxp1.2 {
                    interface-type p2p;
                    hello-interval 1;
                }
                interface fxp1.0;
            }
        }              
        ldp {
            interface fxp1.2;
        }
    }

    root# show logical-routers R2   
    interfaces {
        fxp2 {
            unit 2 {
                vlan-id 2;
                family inet {
                    address 10.10.10.2/24;
                }
                family mpls;
            }
        }
    }
    protocols {
        mpls {
            interface fxp2.2;
        }
        ospf {
            area 0.0.0.0 {
                interface fxp2.2 {
                    interface-type p2p;
                    hello-interval 1;
                }
                interface fxp2.0;
            }
        }              
        ldp {
            interface fxp2.2;
        }
    }

     

    root# show interfaces fxp1       
    vlan-tagging;

    [edit]
    root# show interfaces fxp2   
    vlan-tagging;

    Now, neither ospf or other protocol are not working:

     

    root# run show ospf interface logical-router R1
    Interface           State   Area            DR ID           BDR ID          Nbrs
    fxp1.2              PtToPt  0.0.0.0         0.0.0.0         0.0.0.0            0

    [edit]

     

    root# run show ldp neighbor logical-router R1

    [edit]

     

     

    root# run ping logical-router R1 10.10.10.2
    PING 10.10.10.2 (10.10.10.2): 56 data bytes
    64 bytes from 10.10.10.2: icmp_seq=0 ttl=64 time=3.782 ms
    64 bytes from 10.10.10.2: icmp_seq=1 ttl=64 time=2.684 ms
    ^C
    --- 10.10.10.2 ping statistics ---
    2 packets transmitted, 2 packets received, 0% packet loss
    round-trip min/avg/max/stddev = 2.684/3.233/3.782/0.549 ms

     

    root# run monitor traffic interface fxp1
    verbose output suppressed, use <detail> or <extensive> for full protocol decode
    Address resolution is ON. Use <no-resolve> to avoid any reverse lookup delay.
    Address resolution timeout is 4s.
    Listening on fxp1, capture size 96 bytes

    Reverse lookup for 224.0.0.5 failed (check DNS reachability).
    Other reverse lookup failures will not be reported.
    Use <no-resolve> to avoid reverse lookups on IP addresses.

    13:27:51.718735 Out IP 10.10.10.1 > 224.0.0.5: OSPFv2, Hello, length 44
    13:27:52.538035 Out IP 10.10.10.1 > 224.0.0.5: OSPFv2, Hello, length 44
    13:27:52.938067 Out IP 10.10.10.1.ldp > 224.0.0.2.ldp: LDP, Label-Space-ID: 10.10.10.1:0, pdu-length: 38
    13:27:53.498032 Out IP 10.10.10.1 > 224.0.0.5: OSPFv2, Hello, length 44

    I see packets out,but nothing in. Do I need anything else to permit traffic between logical-routers ? (ping works )



  • 4.  RE: ldp in logical-routers

     
    Posted 12-23-2009 01:02

    Hi,

     

    You've made some mistakes:

     

    under logical-router R1  and R2 you've configured your ospf interfaces as Point to point but your nework mask is as on a lan

     

    If you remove your point to point statement you ospf adjacency will come up.

     

     

     



  • 5.  RE: ldp in logical-routers

    Posted 12-24-2009 05:37

    root# show logical-router R1
    interfaces {
        fxp1 {
            unit 2 {
                vlan-id 2;
                family inet {
                    address 10.10.10.1/24;
                }
            }
        }
    }
    protocols {
        ospf {
            area 0.0.0.0 {
                interface fxp1.2;
            }
        }
    }

     

     

    root# show logical-router R2
    interfaces {
        fxp2 {
            unit 2 {
                vlan-id 2;
                family inet {
                    address 10.10.10.2/24;
                }
            }
        }
    }
    protocols {
        ospf {
            area 0.0.0.0 {
                interface fxp2.2;
            }
        }
    }

     

    root# run show ospf neighbor logical-router R1

    [edit]

     

    I don`t see any hello comming in , just out.

     

    I think I will give up 🙂



  • 6.  RE: ldp in logical-routers
    Best Answer

     
    Posted 12-24-2009 06:49

    One simple way to do it.

     

    Reload your original config (copy/paste the one you posted) that was working even with a complete reboot ("request system reboot")

    After that if the OSPF neigorship starts correctly just add MPLS family under the logical interfaces.

     

    Your LDP session should come up.



  • 7.  RE: ldp in logical-routers

    Posted 12-26-2009 07:22

    Solved. Thanks for help.



  • 8.  RE: ldp in logical-routers

     
    Posted 12-28-2009 01:41

    Hi,

     

    If these answers really helped you you can mark the good one as solved as this will help others to find some good answers.

    You can also add kudos if you think It was useful !

     

    Thanks