Last active
October 18, 2023 12:24
-
-
Save martinkennelly/ad37bc7e022b737676ff47f0f655c142 to your computer and use it in GitHub Desktop.
Easily tracing a packet with ofproto/trace and ovs-tcpundump
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Get packet info thatll later be used for the trace. This info describes the flow. | |
1. tcpdump -XX -c1 -nn -i <dev> <some filter thatll just capture the flow you want> | ovs-tcpundump | |
# Lookup the port ID on which the packet is coming in | |
2. ovs-ofctl show <ovs bridge> | |
# Perform trace | |
ovs-appctl ofproto/trace <ovs bridge> in_port=${port id in step 2} ${pkt data from step 1} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment