Routing

last person joined: 4 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.  Juniper SRX - Can't run 'show ospf' even though it's running

    Posted 04-26-2013 08:26

    Hi everyone,

     

    Might be an easy one here, just seeing some odd behaviour.

    I've got 3 separate VR's running a basic OSPF config across them like so:

    R1 {
        instance-type virtual-router;
        interface lt-0/0/0.1;
        interface lt-0/0/0.2;
        interface lo0.1;
        protocols {
            ospf {
                area 0.0.0.0 {
                    interface lt-0/0/0.1;
                    interface lt-0/0/0.2;
                    interface lo0.1 {
                        passive;
                    }
                }
            }
        }
    }
    

      This works fine, and I've got routes for all adjacent neighbours as I'd want in the routing table:

    R3.inet.0: 9 destinations, 9 routes (9 active, 0 holddown, 0 hidden)
    + = Active Route, - = Last Active, * = Both
    
    1.1.1.1/32         *[OSPF/10] 00:18:28, metric 1
                        > to 10.0.0.10 via lt-0/0/0.4
    2.2.2.2/32         *[OSPF/10] 00:18:38, metric 1
                        > to 10.0.0.5 via lt-0/0/0.3
    10.0.0.0/30        *[OSPF/10] 00:18:28, metric 2
                          to 10.0.0.5 via lt-0/0/0.3
                        > to 10.0.0.10 via lt-0/0/0.4
    224.0.0.5/32       *[OSPF/10] 00:19:28, metric 1
                          MultiRecv
    

     However, when I try and run 'show ospf <anything>', I see:

    > show ospf statistics 
    OSPF instance is not running
    

     Is there a way I can look at the statistics for the VRs themselves? Or is this a bug?

     

    Thanks!



  • 2.  RE: Juniper SRX - Can't run 'show ospf' even though it's running
    Best Answer

     
    Posted 04-26-2013 08:48

    Hi,

    you should add the 'instance' keyword: "show ospf statistics instance R1".

     

    Hope it helps!
    Cheers,

    Mattia



  • 3.  RE: Juniper SRX - Can't run 'show ospf' even though it's running

    Posted 04-26-2013 08:49

    Haha, that was obviously the problem. Thank you sir!

    +1 internet cookie to you



  • 4.  RE: Juniper SRX - Can't run 'show ospf' even though it's running

     
    Posted 04-26-2013 08:51

    You are welcome, and many thanks for the cookie! Smiley Happy