If a static route is defined with multiple qualified-next-hops, but all with the same preference, what is the criteria for the selected route?
Eg. The configuration snippet below :-
root@R1# show routing-options
static {
route 1.1.1.0/24 {
Qualified-next-hop 192.168.12.101 {
Preference 100;
}
Qualified-next-hop 192.168.12.2 {
Preference 10;
}
Qualified-next-hop 192.168.12.200 {
Preference 10;
}
Qualified-next-hop 192.168.12.100 {
Preference 10;
}
}
}
This results in the middle IP 192.168.100 being selected. There seems to be no set criteria for this selection like highest or lowest IP, first configured, last configured etc.
root@R1# run show route 1.1.1/24 extensive
.NET: 12 destinations, 14 routes (11 active, 0 holding, 1 hidden)
1.1.1.0/24 (2 entries, 1 announced)
State: <Record Pending>
TSI:
KRT in-kernel 1.1.1.0/24 -> {192.168.12.100}
*Static Preference: 10
Next hop type: Router
Next-hop reference count: 1
Next hop: 192.168.12.2 via fxp0.0
Next hop: 192.168.12.100 via fxp0.0, selected
Next hop: 192.168.12.200 via fxp0.0
State: <Active Int Ext>
Age: 4:27
Task: RT
Announcement bits (2): 0-KRT 5-RT
AS path: I
AS path: Recorded
Static Preference: 100
Next hop type: Router, Next hop index: 471
Next-hop reference count: 2
Next hop: 192.168.12.101 via fxp0.0, selected
State: <Int Ext>
Inactive reason: Route Preference
Age: 4:27
Task: RT
AS path: I
AS path: Recorded
Does anyone know the rule/algorithm used by RE to make this selection? The documentation does not address this.
Thanks,
Nic
#qualified-next-hop#floatingstaticroutes