Junos OS

Expand all | Collapse all

Real OSPF metric interface not shown

Jump to Best Answer
  • 1.  Real OSPF metric interface not shown

    Posted 05-29-2018 06:38

    Hello guys,

     

    I changed the OSPF metric for interface ge/0/0/1.0 to 100, but when I type in the command show ospf route intra, I can see the metric value got replaced from 1 to 2. what the relationship between the 100 and 2 ? regardless the value I type in the metric will be shown as 2. but I can see the real value I typed in when I type : show ospf interface ge-0/0/0.0 detail

     

    So where is this value 2 is coming from ?

    cheers

    +++++++++++++++++++++++++++++++++++++++++++++++++++

    fred@vSRX-1# run show ospf route intra
    Topology default Route Table:

    Prefix             Path  Route      NH       Metric NextHop       Nexthop
                       Type  Type       Type            Interface     Address/LSP
    192.168.1.2        Intra Router     IP            1 ge-0/0/4.0    172.20.111.10
    192.168.2.1        Intra Area BR    IP            1 ge-0/0/1.0    172.20.77.2
    172.20.66.0/30     Intra Network    IP            2 ge-0/0/1.0    172.20.77.2
    172.20.77.0/30     Intra Network    IP            1 ge-0/0/1.0
    172.20.111.0/24    Intra Network    IP            1 ge-0/0/4.0
    192.168.1.1/32     Intra Network    IP            0 lo0.0
    192.168.1.2/32     Intra Network    IP            1 ge-0/0/4.0    172.20.111.10
    192.168.2.1/32     Intra Network    IP            1 ge-0/0/1.0    172.20.77.2

    +++++++++++++++++++++++++++++++++++++++++++++++++++++



  • 2.  RE: Real OSPF metric interface not shown
    Best Answer

    Posted 05-29-2018 06:58

    you set a high metric on interface ge-0/0/0

    now he is going 2 hops wvia interface ge-0/0/1 ( 1+1)

     

    because of the high metric on the local interface you are now accessing the 172.20.66.0/30 network from the other side

     

    regards

     

    alexander