Knowledge Base

How to use CLI command to perform packet trace?

Question

How to use CLI command to perform packet trace?

Answer

1. If you only need to check the packet flow on CLI command console, you can type,

Router> packet-trace interface wan1*

*the interface name, even pppoe interface, you can only use interface name

 For example: packet-trace interface wan1_ppp

 

 

2. If you need to collect packets from CLI command line and need to download a packet trace file, please follow these steps.

 

a. Router>configure terminal

 

b. Router(config)# packet-capture configure

 

c. Router(packet-capture)# iface add wan1*

 

*you can add any interface name to the collect list, for example, if you want to listen to wan1 and wan1_ppp, you can type

 

Router(packet-capture)# iface add wan1  (press enter)

Router(packet-capture)# iface add wan1_ppp  (press enter)

 

d. Router(packet-capture)# exit

  leave config terminal.

 

e. Router(config)# show packet-capture config

  This step is to check packet trace configuration.

 

f. Router(config)# packet-capture activate

 start packet trace

 

g. Router(config)# no packet-capture activate

 stop packet trace

 

h. Router(config)# dir /packet_trace/

packet trace file will be saved in this folder (/packet_trace)

 

i. Then you can use FTP to log into the USG to get this file.



YES NO

Please leave your comment:

SUBMIT

Question Profile

LANGUAGE:
ARTICLE ID:013652
TYPE:General Info
FIRMWARE:3.30
VIEWS:6360
VOTES:4
TECHNOLOGY:
MODEL:ZYWALL USG 100,ZYWALL USG 1000,ZYWALL USG 20 (view more model name)

Still have trouble with your device? Contact Zyxel technology support team directly!

Contact Zyxel Support