title: S2E2 - tcpdump |
author: Nicholas Morrison nick@nanocat.net |
draft: false |
tags: [network, workshop, arista] |
categories: [workshop] |
noindex: true |
Connect to the lab server:
Connect to your router:
ip netns list
lists the existing network namespaces
ip netns list | grep pod5
to filter for your
podip netns exec NAMESPACE [some_command]
executes a
command in that namespaceip netns exec NAMESPACE ip -c link
lists interfaces in
a namespaceip netns exec NAMESPACE ip -c address
lists interfaces
and their addresses in a namespacewireshark
apt install tcpdump
(or your
local equiv)ip netns
to capture from OUTSIDE our
containersConfigure with:
Check the config with:
Delete a mistake if you need to
You’ll need two terminals for the next bit.
In one terminal, ping 192.168.0.2
from pc1.
In the other terminal, don’t connect to a device, but stay “outside” in your shell.
In your other terminal window, execute tcpdump from inside the pc1 network namespace.
Example:
Stop your ping on pc1 with ctrl-c
and execute:
What kind of packets do you see in your tcpdump?