Configuring CSPF Tracing
Purpose
When the output of the
show mpls lsp extensivecommand indicates that the CSPF algorithm has failed, configuring CSPF tracing on the ingress router can often provide more information about the problem.Action
On the ingress router, to configure a log file and specify MPLS tracing flags, follow these steps:
- In configuration mode, go to the following hierarchy level:
[edit]user@host#edit protocols mpls- Configure a log file:
[edit protocols mpls]user@host#set traceoptions filefilename- Depending on your situation, specify all or one of the following CSPF-specific tracing flags:
[edit protocols mpls]user@host#set traceoptions flag cspfuser@host#set traceoptions flag cspf-linkuser@host#set traceoptions flag cspf-node- Verify and commit the configuration:
user@host#showuser@host#commitSample Output
[edit protocols mpls]user@R1#showtraceoptions {file cspf;flag cspf;flag cspf-link;flag cspf-node;}label-switched-path R6-to-R1 {to 10.0.0.1;}interface so-0/0/0.0;interface so-0/0/1.0;interface so-0/0/2.0;interface so-0/0/3.0;What It Means
The sample output shows a typical CSPF tracing configuration. The log file
cpsfcontains all the information gathered for each configured flag. Each flag provides slightly different information about CSPF computations. Thecspfflag traces CSPF computations only; thecspf-linkflag traces links visited during CSPF computations, and thecspf-nodeflag traces nodes visited during CSPF computations. See Examining the CSPF Log File for information about examining a CSPF log file.