Tracing EVPN Traffic and Operations
To configure the EVPN routing instance to trace a variety of different parameters related to EVPN operation:
- Specify the name of one or more EVPN trace files using
the file option for the traceoptions statement
at the [edit routing-instances routing-instance-name protocols evpn] hierarchy level:file filename <files number> <size size> <world-readable | no-world-readable>;}
The file option includes the following sub-options:
filename—Specify the name of the file to receive the output of the tracing operation. Enclose the name within quotation marks. All files are placed in the directory
files number—(Optional) Maximum number of trace files. When a trace file named
trace-filereaches its maximum size, it is renamed
trace-file.1, and so on, until the specified maximum number of trace files specified is reached. Then the oldest trace file is overwritten.
size size—(Optional) Maximum size of each trace file. When a trace file named trace-file reaches its maximum size, it is renamed trace-file.0, then trace-file.1, and so on, until the maximum number of trace files is reached. Then the oldest trace file is overwritten.
world-readable | no-world-readable—(Optional) Enable unrestricted file access or restrict file access to the user who created the file.
Specify the flag option for the traceoptions statement:flag flag <flag-modifier> <disable>;}
The flag option allows you to specify the scope of the trace by including one of the following sub-options:
all—All EVPN tracing options
mac-database—MAC route database in the EVPN routing instance
nlri—EVPN advertisements received or sent by means of the BGP
task—Routing protocol task processing
timer—Routing protocol timer processing
topology—EVPN topology changes caused by reconfiguration or advertisements received from other PE routers using BGP
You can also specify one of the following modifiers for any of the traceoptions flags:
detail—Provide detailed trace information.
disable—Disable this trace flag.
receive—Trace received packets.
send—Trace sent packets.