Skip to content

Instantly share code, notes, and snippets.

@shreyakupadhyay
Last active May 16, 2022 12:05
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shreyakupadhyay/350c21165a03e2b2391f72830ded2b71 to your computer and use it in GitHub Desktop.
Save shreyakupadhyay/350c21165a03e2b2391f72830ded2b71 to your computer and use it in GitHub Desktop.
Check ARP requests in a network using mininet and tcpdump
$ sudo mn --topo single,3 --controller=remote,ip=<controller ip>,port=6633
(To make a topology with 1 switch, 1 remote controller and 3 hosts)
mininet> xterm h1 h2 h3
h2> tcpdump -XX -n -i h2-eth0 (run tcpdump to capture packets)
h3> tcpdump -XX -n -i h3-eth0
h1> ping -c1 10.0.0.2
(Do not do pingall before these. Otherwise you won't see the same ARP request on h2 and h3)
mininet> exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment