Navigation
Supported Platforms
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 device.
To change the encapsulation on interfaces with packet capture configured:
- Disable packet capture (see Disabling Packet Capture).
- Enter commit from configuration mode.
- Rename the latest packet capture file on which you are
changing the encapsulation with the .chdsl extension.
- From operational mode, access the local UNIX shell.user@host> start shell%
- Navigate to the directory where packet capture files are
stored.% cd /var/tmp%
- 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 operational mode.% exituser@host>
- From operational mode, access the local UNIX shell.
- Change the encapsulation on the interface using the J-Web user interface or CLI configuration editor.
- If you are done configuring the device, enter commit from configuration mode.
- Reenable packet capture (see Example: Enabling Packet Capture on a Device).
- If you are done configuring the device, enter commit from configuration mode.