Last active
May 16, 2022 12:05
-
-
Save shreyakupadhyay/350c21165a03e2b2391f72830ded2b71 to your computer and use it in GitHub Desktop.
Check ARP requests in a network using mininet and tcpdump
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
$ 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