Untitled

 avatar
unknown
plain_text
a year ago
669 B
4
Indexable
# Configure IP addresses for hosts
mininet> h1 ifconfig h1-eth0 10.0.0.1 netmask 255.255.255.0
mininet> h2 ifconfig h2-eth0 10.0.0.2 netmask 255.255.255.0

# Configure routing tables (if necessary)
mininet> h1 route add default gw 10.0.0.2
mininet> h2 route add default gw 10.0.0.1


# Ping test between hosts
mininet> h1 ping h2

# Iperf test for bandwidth measurement
mininet> h1 iperf -s &
mininet> h2 iperf -c 10.0.0.1



# Capture packets using Wireshark
sudo wireshark &


# Simulate link failure
mininet> link s1 s2 down



# Measure latency with ping
mininet> h1 ping -c 5 h2

# Measure throughput with iperf
mininet> h1 iperf -s &
mininet> h2 iperf -c 10.0.0.1
Editor is loading...
Leave a Comment