Diagnostics
Analyze network traffic
LR54 User Guide
1015
i. Add a new VLAN filter:
(config network analyzer
name
)> add filter vlan end
(config network analyzer
name
filter vlan 0)>
ii. Set the VLAN that should be be captured or ignored:
(config network analyzer
name
filter vlan 0)> vlan
value
(config network analyzer
name
filter vlan 0)>
where
value
is number o the VLAN.
iii. (Optional) Set the filter should ignore packets from this VLAN:
(config network analyzer
name
filter vlan 0)> ignore true
(config network analyzer
name
filter vlan
0)>
By default, is option is set to
false
, which means that the filter will capture packets
from this MAC address.
iv. Repeat these steps to add additional VLANs.
f. To create a filter using Berkeley Packet Filter (BPF) syntax:
(config network analyzer
name
)> filter custom
value
(config network analyzer
name
)>
where
value
is a filter using Berkeley Packet Filter (BPF) syntax. Values that contain spaces
must be enclosed in double quotes (
"
).
See
Example filters for capturing data traffic
for examples of filters using BPF syntax.
6. (Optional) Schedule the analyzer to run, using this capture filter, based on a specified event or
at a particular time:
a. Enable scheduling for this capture filter:
(config network analyzer
name
)> schedule enable true
(config network analyzer
name
)>
b. Set the mode that will be used to run the capture filter:
(config network analyzer
name
)> when
mode
(config network analyzer
name
)>
where
mode
is one of the following:
n
boot
: The script will run once each time the device boots.
n
interval
: The script will start running at the specified interval, within 30 seconds
after the configuration change is saved. If
interval
is selected, set the interval:
(config add network analyzer
name
)> on_interval
value
(config add network analyzer
name
)>
where
value
is any number of weeks, days, hours, minutes, or seconds, and takes
the format
number
{
w|d|h|m|s
}.
For example, to set
on_interval
to ten minutes, enter either
10m
or
600s
: