Trace MLD Protocol Traffic
To trace MLD protocol traffic, you can specify options in the global
traceoptionsstatement at the[edit routing-options]hierarchy level, and you can specify MLD-specific options by including thetraceoptionsstatement at the[edit protocols mld]hierarchy level:[edit protocols mld]traceoptions {filename<replace> <sizesize> <filesnumber> <no-stamp><(world-readable | no-world-readable)>;flagflag<flag-modifier> <disable>;}You can specify the following MLD-specific options in the MLD
flagstatement:
leave—Trace leave-group messages (for Version 2 only).mtrace—Trace mtrace packets. Use themtracecommand to troubleshoot the software.packets—Trace all IGMP packets.query—Trace IGMP membership query messages, including general and group-specific queries.report—Trace membership report messages.To trace the paths of multicast packets, use the
mtracecommand, as described in the JUNOS Internet Software Operational Mode Command Reference.For information about tracing and global tracing options, see the JUNOS Internet Software Configuration Guide: Routing and Routing Protocols.
Example: Trace MLD Protocol Traffic
Trace only unusual or abnormal operations to
routing-log, and trace all MLD packets tomld-log:[edit]routing-options {traceoptions {file routing-log;flag errors;}}protocols {mld {traceoptions {file mld-log;flag packets;}}}