Juniper Networks J-Series manual Enabling Packet Capture, Navigate to the Forwarding options

Models: J-Series

1 332
Download 332 pages 610 b
Page 280
Image 280

J-series™ Services Router Administration Guide

Table 134: Enabling Packet Capture

Task

J-Web Configuration Editor

Navigate to the Forwarding options

1.

In the J-Web interface, select

level in the configuration hierarchy.

 

Configuration>View and Edit>Edit

 

 

Configuration.

 

2.

Next to Forwarding options, click

 

 

Configure or Edit.

 

3.

Next to Scripts, click Configure or

 

 

Edit.

CLI Configuration Editor

From the [edit] hierarchy level, enter

edit forwarding-options

Specify in bytes the maximum size of each packet to capture in each file—for example, 500. The range is between 68 and 1500, and the default is 68 bytes.

4.Next to Commits, click Configure or Edit.

In the configuration editor hierarchy, select Forwarding options.

1.From the Sampling or packet capture list, select Packet capture.

2.Next to Packet capture, click Configure.

3.In the Maximum capture size box, type 500.

Enter

set packet-capture maximum-capture-size 500

Specify the target filename for the

In the Filename box, type pcap-file.

Enter

packet capture file—for example,

 

 

 

pcap-file. For each physical interface,

 

 

set packet-capture file filename pcap-file

the interface name is automatically

 

 

 

suffixed to the filename—for

 

 

 

example, pcap-file.fe-0.0.1.

 

 

 

(See the interface naming

 

 

 

conventions in the J-series Services

 

 

 

Router Basic LAN and WAN Access

 

 

 

Configuration Guide.)

 

 

 

Specify the maximum number of files

In the Files box, type 100.

Enter

to capture—for example, 100. The

 

 

 

range is between 2 and 10,000, and

 

 

set packet-capture file files 100

the default is 10 files.

 

 

 

Specify the maximum size of each

In the Size box, type 1024.

Enter

file in bytes—for example, 1024. The

 

 

 

range is between 1,024 and

 

 

set packet-capture file size 1024

104,857,600, and the default is

 

 

 

512,000 bytes.

 

 

 

Specify if all users have permission

1.

Next to World readable, select Yes.

Enter

to read the packet capture files.

2.

Click OK.

 

 

set packet-capture file world-readable

 

 

 

258Configuring Packet Capture with a Configuration Editor

Page 280
Image 280
Juniper Networks J-Series manual Enabling Packet Capture, Navigate to the Forwarding options