How to do a packet capture on a leaf

When I say packet capture I literally mean 1 packet that matches a specific criteria.  Why would you only want to capture 1 packet?  To show to other (mainly server folks) that the fabric is sending the packet to the correct port.

Leaf_103# vsh_lc
module-1# debug platform internal ns elam a 0

module-1(NS-elam)# trigger init ingress in-select <<< Which header to look at
3 4 5 6 7

3 Outerl2-outerl3-outerl4
4 Innerl2-innerl3-innerl4
5 Outerl2-innerl2
6 Outerl3-innerl3
7 Outerl4-innerl4

module-1(NS-elam)# trigger init ingress in-select 3 out-select 0

module-1(NS-elam-insel3)# set outer
arp ipv4 ipv6 l2 l4

module-1(NS-elam-insel3)# set outer ipv4 src_ip 10.7.38.21 ds
dscp dst_ip
module-1(NS-elam-insel3)# set outer ipv4 src_ip 10.7.38.21 dst_ip 10.7.39.50

module-1(NS-elam-insel3)# start

module-1(NS-elam-insel3)# stat
Status: Triggered
module-1(NS-elam-insel3)# report

NOTE:  Output has been greatly condensed to show only the proof that the packet is coming from the right place to the right place

GBL_C++: [INFO] ip_da: 0000000000000000000000000A072732 <<< Destination IP address in HEX
GBL_C++: [INFO] ip_sa: 0000000000000000000000000A072615 <<< Source IP address in HEX
GBL_C++: [INFO] ip_v6_hbh: 0
GBL_C++: [INFO] ce_da: 0022BDF819FF <<< Destination MAC address
GBL_C++: [INFO] ce_sa: 000C29083F09 <<< Soure MAC address

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s