Files
2026-09-26 22:07:24 +03:00

41 lines
2.1 KiB
Plaintext

mininet@mininet-vm:~/Networks-II/exercise$ sudo python3 ../source/build_network.py topology.json
Generated: topology.generated.py
mininet> h1 ip -4 -br addr
lo UNKNOWN 127.0.0.1/8
mininet> h2 ip -4 -br addr
lo UNKNOWN 127.0.0.1/8
mininet> h1 dhclient h1-eth0
mininet> h2 dhclient h2-eth0
mininet> h1 ip -4 -br addr
lo UNKNOWN 127.0.0.1/8
h1-eth0@if56 UP 192.168.1.131/24
mininet> h2 ip -4 -br addr
lo UNKNOWN 127.0.0.1/8
h2-eth0@if57 UP 192.168.1.164/24
mininet> h1 ip neigh flush all
mininet> h1 ip neigh show
mininet> h1 rm -f /tmp/arp.pcap
mininet> h1 tcpdump -i h1-eth0 -n arp -w /tmp/arp.pcap &
mininet> h1 ping -c 1 192.168.1.164
tcpdump: listening on h1-eth0, link-type EN10MB (Ethernet), capture size 262144 bytes
PING 192.168.1.164 (192.168.1.164) 56(84) bytes of data.
64 bytes from 192.168.1.164: icmp_seq=1 ttl=64 time=0.425 ms
--- 192.168.1.164 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.425/0.425/0.425/0.000 ms
mininet> h1 ip neigh show
192.168.1.164 dev h1-eth0 lladdr 82:c0:6d:ae:3f:56 REACHABLE
mininet> h1 pkill -INT tcpdump
4 packets captured
4 packets received by filter
0 packets dropped by kernel
mininet> h1 tcpdump -n -e -vv -r /tmp/arp.pcap
reading from file /tmp/arp.pcap, link-type EN10MB (Ethernet)
11:24:23.554475 4a:6f:2a:18:f4:80 > ff:ff:ff:ff:ff:ff, ethertype ARP (0x0806), length 42: Ethernet (len 6), IPv4 (len 4), Request who-has 192.168.1.164 tell 192.168.1.131, length 28
11:24:23.554730 82:c0:6d:ae:3f:56 > 4a:6f:2a:18:f4:80, ethertype ARP (0x0806), length 42: Ethernet (len 6), IPv4 (len 4), Reply 192.168.1.164 is-at 82:c0:6d:ae:3f:56, length 28
11:24:28.679054 82:c0:6d:ae:3f:56 > 4a:6f:2a:18:f4:80, ethertype ARP (0x0806), length 42: Ethernet (len 6), IPv4 (len 4), Request who-has 192.168.1.131 tell 192.168.1.164, length 28
11:24:28.679071 4a:6f:2a:18:f4:80 > 82:c0:6d:ae:3f:56, ethertype ARP (0x0806), length 42: Ethernet (len 6), IPv4 (len 4), Reply 192.168.1.131 is-at 4a:6f:2a:18:f4:80, length 28
mininet>