debug capture voip interface

This command captures network traffic on a VoIP network interface (VLAN).

Syntax

# debug capture voip interface vlan <VLAN ID> proto <Protocol Filter> host <Host Filter> {port <Port Filter> 
[tftp-server <TFTP Server IP Address>|ftp-server <FTP Server IP Address>]}
To start and stop the capture:
1. After typing the above command, press Enter.
2. To stop the capture, press Ctrl+C.

Command

Description

vlan

Defines the VLAN ID of the network interface on which to start the debug capture.

proto

Configures a protocol filter:

all (all protocols)
arp (ARP packets)
icmp (ICMP packets)
ip (IP packets)
ipv6 (IPv6 packets)
tcp (TCP packets)
udp (UDP packets)
host

Configures a host (IP address) from/to which the packets are captured. To specify all hosts, enter any.

port

(Optional) Configures a port filter: 1-65535 or any (all ports). When using arp or icmp as the protocol filter, port filter cannot be used and the only valid value is any.

ftp-server

(Optional) Defines the IP address of the FTP server to which the captured traffic file (in .pcap file format) is sent. If not specified, captured traffic is displayed in the CLI console.

After running the command, press Ctrl+C when you want the capture to end and the captured traffic file to be sent to the server.

Note: The FTP server's IP address must be accessible from one of the VoIP network interfaces for the capture file to be successfully uploaded to the server. Ping the server to make sure it's accessible.

tftp-server

(Optional) Defines the IP address of the TFTP server to which the captured traffic file (in .pcap file format) is sent. If not specified, captured traffic is displayed in the CLI console.

After running the command, press Ctrl+C when you want the capture to end and the captured traffic file to be sent to the server.

Note: The TFTP server's IP address must be accessible from one of the VoIP network interfaces for the capture file to be successfully uploaded to the server. Ping the server to make sure it's accessible.

Command Mode

Privileged User

Examples

Starting a debug capture on network interface VLAN 12, no host filter, and no port filter; the captured traffic is displayed in the CLI console:

# debug capture voip interface vlan 12 proto all host any

Starting a debug capture on network interface VLAN 1 with a protocol filter (IP), no host filter, and a port filter (514); the captured traffic is saved to a temporary file and is sent (when you press Ctrl+C) to the TFTP server at address 171.18.1.21:

# debug capture voip interface vlan 1 proto ip host any port 514 tftp-server 171.18.1.21