Chapter 46 Maintenance Tools

IP address: any

Host IP: any

Host port: any (then you do not need to configure this setting)

File suffix: Example

File size: 10 megabytes

Duration: 150 seconds

Save the captured packets to: USB storage device

Use the ring buffer: no

The maximum size of a packet capture file: 100 megabytes

Router(config)# packet-capture configure

Router(packet-capture)# iface add wan1

Router(packet-capture)# ip-type any

Router(packet-capture)# host-ip any

Router(packet-capture)# file-suffix Example

Router(packet-capture)# files-size 10

Router(packet-capture)# duration 150

Router(packet-capture)# storage usbstorage

Router(packet-capture)# ring-buffer disable

Router(packet-capture)# split-size 100

Router(packet-capture)#

Exit the sub-command mode and have the ZyWALL capture packets according to the settings you just configured.

Router(packet-capture)# exit

Router(config)# packet-capture activate

Router(config)#

Manually stop the running packet capturing.

Router(config)# no packet-capture activate

Router(config)#

Check current packet capture status and list all stored packet captures.

Router(config)# show packet-capture status

 

 

capture status: off

 

 

Router(config)# dir /packet_trace

Size

Modified Time

File Name

===========================================================================

wan1-Example.cap

575160

2009-11-24 09:06:59

Router(config)#

 

 

You can use FTP to download a capture file. Open and study it using a packet analyzer tool (for example, Ethereal or Wireshark).

 

345

ZyWALL (ZLD) CLI Reference Guide