[
Contents]
[
Prev]
[
Next]
[
Index]
[
Report an Error]
Changing Encapsulation on Interfaces with Packet Capture Configured
Before modifying the encapsulation on a device interface
that is configured for packet capture, you must disable packet capture
and rename the latest packet capture file. Otherwise, packet capture
saves the packets with different encapsulations in the same packet
capture file. Packet files containing packets with different encapsulations
are not useful, because packet analyzer tools like tcpdump cannot
analyze such files.
After modifying the encapsulation, you can safely reenable packet
capture on the router.
To change the encapsulation on packet capture-configured interfaces:
- Disable packet capture following the steps in Disabling Packet Capture.
- Commit the configuration.
- Using the CLI, rename the latest packet capture
file on which you are changing the encapsulation, with the .chdsl extension:
- From CLI operational mode, access the local UNIX shell:
- Navigate to the directory where packet capture files are
stored:
- Rename the latest packet capture file for the interface
on which you are changing the encapsulation—for example, fe.0.0.0:
- % mv pcap-file.fe.0.0.0 pcap-file.fe.0.0.0.chdsl
- %
- Return to the CLI operational mode:
- Change the encapsulation on the interface using
the J-Web or CLI configuration editor.
See instructions for configuring interfaces in the JUNOS Software Interfaces and Routing Configuration Guide
- Commit the configuration.
- Reenable packet capture following the steps in Enabling Packet Capture (Required).
- Commit the configuration.
[
Contents]
[
Prev]
[
Next]
[
Index]
[
Report an Error]