Custom Search

Thursday, August 7, 2014

Networking How to force to send or broadcast ARP request

a)
Capture the packets from the interface "tap1" in the namespace "ns1"
Compute total ICMP echo requests, replies, loss, and percent loss using the option "-z icmp,srt"
#sudo ip netns exec ns1 tshark -i tap1 -f "icmp or arp" -z icmp,srt

b)
List ARP table in the namespace "ns1"
#sudo ip netns exec ns1 arp -n
Address                  HWtype  HWaddress           Flags Mask            Iface
10.1.1.5                 ether   ba:01:a4:54:24:50   C                     tap1



c)
Clear ARP table in the namespace "ns1"
#sudo ip netns exec ns1 arp -d 10.1.1.5

d)
Ping from namespace "ns1"
#sudo ip netns exec ns1 ping 10.1.1.5





No comments:

Post a Comment