Hi there,
Please refer to docs
https://www.juniper.net/documentation/us/en/software/junos/cli-reference/topics/ref/command/show-route-detail.html
Weight-Value used to distinguish primary, secondary, and fast reroute backup routes. Weight information is available when MPLS label-switched path (LSP) link protection, node-link protection, or fast reroute is enabled, or when the standby state is enabled for secondary paths. A lower weight value is preferred. Among routes with the same weight value, load balancing is possible.
Please create lsp with primary and secondary paths, set the secondary path in standby mode, after that you will get the "weights".
PE-1> show route 172.17.20.6 table inet.0 detail | match "inet.0|172|vi
inet.0: 16 destinations, 17 routes (16 active, 0 holddown, 0 hidden)
172.17.20.6/32 (2 entries, 1 announced)
Next hop: 172.17.23.2 via ge-0/0/0.0 weight 0x1, selected
Label operation: Push 299856
Next hop: 172.17.23.6 via ge-0/0/1.0 weight 0x2001
Label operation: Push 299824
Next hop: 172.17.23.2 via ge-0/0/0.0
Next hop: 172.17.23.6 via ge-0/0/1.0, selected
WBW,
Dmitry
------------------------------
Dmitry Maksimov
------------------------------
Original Message:
Sent: 02-15-2024 22:13
From: xine32
Subject: Weight value is not appearing in "show route IP_ADDRESS detail" command
Hi,
I'm currentlyu studdying for JNCIS-SP certification exam. I'm doing MPLS lab using Juniper VLAB. For my current lab I'm using the topology named "Segment Routing v6 [SRv6] Summarization"
In the ELearning documentation I read that if I run command "show route IP_ADDRESS detail" command I will get the weight of each route....
as shown here (from Juniper eLearning) (from MPLS RSVP module)
On real production router I'm getting similar information (the protocol in used may or may not RSVP but at the end the output is similar, I have metric value in decimal and weight value in HEX)
In my lab I have used ISIS as IGP and its and RSVP MPLS network. When I run "show route IP_ADDRESS detail" one one my PE router I don't have any weight value.
I'm going to attached my router configuration to this post and network diagram in PDF format.
If I changed the configuration and removing bandwith and priority set under both LSP on PE12, and add the following to sentence to my configuration :
set policy-options policy-statement LOAD-BALANCE then load-balance per-flow
set routing-options forwarding-table export LOAD-BALANCE
and then commit
I getting now the 2 MPLS routes in my routing tables
but only one route is installed in the FIB table.... but expecting 2 routes installed.
Thank you
------------------------------
Xine
------------------------------