This article provides information for administrators on how to use the TCPdump utility, based on certain filtering, to capture 'control plane' traffic on EX switches.
Usage :
tcpdump [-abdeflnNOpqStUvxX] [-c count] [ -F file ] [ -i interface ] [ -r file ] [ -s snaplen ] [ -T type ] [ -w file ] [ expression ] [ -Jt resolve_tmo ]
TCPDUMP syntax :
Values : ether, ip, arp, rarp, decnet, tcp, and udp. If no protocol is specified, all the protocols are used.
Values: src, dst, src and dst, src, or dst. If no source or destination is specified, the src or dst keyword is applied. For example, host 10.2.2.2 is equivalent to src or dst host 10.2.2.2 .
Values: net, port, host, and portrange. If no host is specified, the host keyword is used. For example, src 10.1.1.1 is equivalent to src host 10.1.1.1 .
TCPDUMP examples :
2020-08-06: Article reviewed for accuracy; no changes required.