This article provides information about the unicast-in-lpm knob and its support on QFX5K platforms running Junos.
The host table is skipped for unicast routes when the unicast-in-lpm knob is configured. All IPv4 unicast routes (Host and LPM) are directly installed in the LPM table. This feature is supported starting from release 21.2R1 on the QFX5K platforms running Junos.
root@qfx5200> show configuration chassisforwarding-options { lpm-profile { unicast-in-lpm; }}
Before the 21.2R1 release, the unicast-in-lpm knob could be configured but had no effect. Adding or removing the knob would not restart the PFE, and host routes would still populate the host table first.
Starting from the 21.2R1 release, the unicast-in-lpm knob will take effect, causing the host table to be bypassed for all unicast routes. Adding or removing the knob will trigger a PFE restart to reallocate the forwarding table resources.
The "show chassis forwarding-options" command can be used to verify the active profile and the options enabled/disabled.
Junos 21.1R1:
root@qfx5200> > show chassis forwarding-optionslocalre:--------------------------------------------------------------------------UFT Configuration:lpm-profile.prefix-65-127 = enable--------------Bank details for various types of entries------------------Entry type Dedicated Bank Size(K) Shared Bank Size(K)L2(mac) 8 32 * num shared banksL3(unicast & multicast) 8 32 * num shared banksExact Match 0 16 * num shared banksLongest Prefix Match(lpm) 16 32 * num shared banksroot@qfx5200> show pfe route summary hwSlot 0Unit: 0Profile active: lpm-profileType Max Used Free % free----------------------------------------------------IPv4 Host 8192 8184 0 0.00 <<<<<< host table fills up firstIPv4 LPM 131072 23 131049 99.98 IPv4 Mcast 4096 0 0 0.00 IPv6 Host 4096 4 0 0.00IPv6 LPM(< 64) 16384 2 16382 99.99IPv6 LPM(> 64) 16384 0 16382 99.99IPv6 Mcast 2048 0 0 0.00Junos 21.2R1:
root@qfx5200> show chassis forwarding-optionslocalre:--------------------------------------------------------------------------UFT Configuration:lpm-profile.prefix-65-127 = enableunicast-in-lpm = enable--------------Bank details for various types of entries------------------Entry type Dedicated Bank Size(K) Shared Bank Size(K)L2(mac) 8 32 * num shared banksL3(unicast & multicast) 8 32 * num shared banksExact Match 0 16 * num shared banksLongest Prefix Match(lpm) 16 32 * num shared banksroot@qfx5200> show pfe route summary hwSlot 0Unit: 0Profile active: lpm-profileType Max Used Free % free----------------------------------------------------IPv4 Host 8192 0 8192 100.00 <<<<< host table is skipped for unicast routesIPv4 LPM 131072 45971 85101 64.93IPv4 Mcast 4096 0 4096 100.00IPv6 Host 4096 0 4096 100.00IPv6 LPM(< 64) 16384 4 16380 99.98IPv6 LPM(> 64) 16384 4 16380 99.98IPv6 Mcast 2048 0 2048 100.00