Chapter 13: Configuring Packet Capture

user@host> start shell

%

b.Navigate to the directory where packet capture files are stored:

%cd /var/tmp

c.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

%

d.Return to the CLI operational mode:

%exit user@host>

4.Change the encapsulation on the interface using the J-Web or CLI configuration editor.

See instructions for configuring interfaces in the J-series Services Router Basic LAN and WAN Access Configuration Guide.

5.Commit the configuration.

6.Reenable packet capture following the steps in “Enabling Packet Capture (Required)” on page 257.

7.Commit the configuration.

Verifying Packet Capture

To verify packet capture, perform these tasks:

Displaying a Packet Capture Configuration on page 263

Displaying a Firewall Filter for Packet Capture Configuration on page 264

Verifying Captured Packets on page 264

Displaying a Packet Capture Configuration

Purpose Verify the packet capture configuration.

Action From the J-Web interface, select

Configuration>View and Edit>View Configuration Text. Alternatively, from configuration mode in the CLI, enter the show forwarding-optionscommand.

[edit]

user@host# show forwarding-options packet-capture {

file filename pcap-file files 100 size 1024; maximum-capture-size 500;

Verifying Packet Capture 263

Page 285
Image 285
Juniper Networks J-Series manual Verifying Packet Capture, Displaying a Packet Capture Configuration