NSX-T Edge Transport Node Packet Captures

Nick Schmidt
1 min readMay 3, 2021

--

NSX-T Edge nodes have a rudimentary packet capture tool built in to the box. It is important to have a built-in tool here, as GENEVE encapsulation will wrap just about everything coming out of a transport node.

NSX-T’s CLI guide indicates the method for packet captures — from here we can break it down to a few steps:

  • Find the VRF you want to capture from
  • Find the interface in that VRF you want to capture from
  • Capture from this interface!
get logical-routers
vrf {{ desired VRF }}
get interfaces
set capture session 0 interface {{ interface-id }} direction dual
set capture session 0 file example.pcap

The result will be placed in:

/var/vmware/nsx/file-store/

I do have some notes to be aware of here:

  • Be careful with packet captures! This is on an all-CPU router — so isolating the device before capturing packets is a wise choice. We can do that with NSX-T, we just need to remember to.
  • It’s possible to use tcpdump-based packet filters instead of a wholesale capture — just replace the final line with a command similar to this:
set capture session 0 file example.pcap expression port 179

Originally published at https://blog.engyak.net.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Nick Schmidt
Nick Schmidt

Written by Nick Schmidt

I am a network engineer based out of Alaska, pursuing various methods of achieving SRE/NRE

No responses yet

Write a response