This article provides a step-by-step guide for configuring primary and secondary Label-Switched Paths (LSPs) on SRX Series devices to ensure MPLS redundancy. By setting up a primary LSP and a backup LSP, traffic can automatically reroute in case of a primary path failure, ensuring uninterrupted service and switching back to the primary path when it is reachable again.
Follow the below configuration to configure the primary and secondary LSP path:
PE1
set protocols mpls label-switched-path pe1-pe2 to x.x.x.x
set protocols mpls label-switched-path pe1-pe2 primary primary-next-hop
set protocols mpls label-switched-path pe1-pe2 revert-timer 5
set protocols mpls label-switched-path pe1-pe2 secondary secondary-next-hop standby
set protocols mpls path primary-next-hop 172.16.204.2
set protocols mpls path secondary-next-hop 172.16.205.2
PE2
set protocols mpls label-switched-path pe2-pe1 to x.x.x.x
set protocols mpls label-switched-path pe2-pe1 primary primary-next-hop
set protocols mpls label-switched-path pe2-pe1 revert-timer 5
set protocols mpls label-switched-path pe2-pe1 secondary secondary-next-hop standby
set protocols mpls path primary-next-hop 172.16.204.1
set protocols mpls path secondary-next-hop 172.16.205.1
For more information, check the document: Primary, Secondary and static LSP configuration.