Chapter 41 Maintenance Tools

Then configure the following settings to capture packets going through the NXC’s WAN1 interface only (this means you have to remove LAN2 and WAN2 from the iface list).

IP address: any

Host IP: any

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

File suffix: Example

File size: 10000 byes

Duration: 150 seconds

Router(config)# packet-capture configure

Router(packet-capture)# iface add wan1

Router(packet-capture)# iface del lan2

Router(packet-capture)# iface del wan2

Router(packet-capture)# ip-type any

Router(packet-capture)# host-ip any

Router(packet-capture)# file-suffix Example

Router(packet-capture)# files-size 10000

Router(packet-capture)# duration 150

Router(packet-capture)#

Exit the sub-command mode and have the NXC 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 packet captures the NXC has performed.

Router(config)#

show packet-capture status

 

capture status:

off

 

Router(config)#

dir /packet_trace

Modified Time

File Name

Size

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

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

 

265

NXC CLI Reference Guide