Description

Hidden route either rejected by policy or because of unusable next-hop will not count in RIB

Symptoms

IPv4 LPM counter increases when getting new routes information but when these routes are rejected by policy or because of unusable next-hop , they will not count in RIB

 

 

Solution

This is before configuring BGP between to switches.

 

 

{master:0}[edit]
root@QFX5120-32-R050# run show pfe route summary hw
Sep 02 13:19:10

 Slot 0

Unit: 0

Profile active: l2-profile-three

Type           Max      Used     Free     % free

----------------------------------------------------

IPv4 Host      147456   16       147432   99.98

IPv4 LPM       24576     7        24563    99.95 >>>>>>>>>>>>>>>> this shows counter as 7

IPv4 Mcast     73728    0        73716    99.98

IPv6 Host      73728    4        73716    99.98

IPv6 LPM(< 64) 12288    3        12281    99.94

IPv6 LPM(> 64) 2048     0        2048     100.00

IPv6 Mcast     36864    0        36858    99.98

 

 

Now accepting the bgp routes from BGP neighbor. It goes from 7 to 20:

 

 

root@QFX5120-32-R050# run show pfe route summary hw
Sep 02 13:24:48

Slot 0 

Unit: 0
Profile active: l2-profile-three
Type           Max      Used     Free     % free
----------------------------------------------------
IPv4 Host      147456   16       147432   99.98
IPv4 LPM       24576     20       24550    99.89 >>>>>>>>>>>>>>>>>>>>>
IPv4 Mcast     73728    0        73716    99.98
IPv6 Host      73728    4        73716    99.98
IPv6 LPM(< 64) 12288    3        12275    99.89
IPv6 LPM(> 64) 2048     0        2048     100.00
IPv6 Mcast     36864    0        36858    99.98

 

 

Now rejecting the BGP routes via policy and then the routes appear as hidden:

 

set policy-options policy-statement import-bgp term 1 from protocol bgp
set policy-options policy-statement import-bgp term 1 from route-filter 20.20.0.0/16 orlonger
set policy-options policy-statement import-bgp term 1 then reject


{master:0}[edit]
root@QFX5120-32-R050# show protocols
Sep 02 13:29:21
##
## Warning: requires 'bgp' license
##
bgp {
   group external-2 {
       type external;
       import import-bgp;
       peer-as 65001;
       neighbor 10.10.65.1;
   }
}


root@QFX5120-32-R050# run show route protocol bgp
Sep 02 13:29:34

Warning: License key missing; requires 'bgp' license


inet.0: 18 destinations, 19 routes (5 active, 0 holddown, 13 hidden) >>>>>>>>>>>>>>
+ = Active Route, - = Last Active, * = Both

0.0.0.0/0          [BGP/170] 00:07:57, localpref 100
                     AS path: 65001 65002 65003 I, validation-state: unverified
                   > to 10.10.65.1 via et-0/0/0.0

inet6.0: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden)


IPv4 LPM   is back to 7 used.  


{master:0}[edit]
root@QFX5120-32-R050# run show pfe route summary hw
Sep 02 13:29:47


Slot 0
 
Unit: 0
Profile active: l2-profile-three
Type           Max      Used     Free     % free
----------------------------------------------------
IPv4 Host      147456   16       147432   99.98
IPv4 LPM       24576     7        24563    99.95
IPv4 Mcast     73728    0        73716    99.98
IPv6 Host      73728    4        73716    99.98
IPv6 LPM(< 64) 12288    3        12281    99.94
IPv6 LPM(> 64) 2048     0        2048     100.00
IPv6 Mcast     36864    0        36858    99.98

 

 

Modification History

2024-09-05 : Article Created