Next, we would be editing the IP addresses of the host in accordance with the preceding topology. This can be achieved by deleting the default IP assigned to the host (10.0.0.1):
mininet>h1 ip addr del 10.0.0.1/8 dev h1-eth0
The correct IP address is then reassigned to the port of the host:
mininet> h1 ip addr add 192.168.10.2/24 dev h1-eth0
The same step shall be repeated for the other host (h2):`
mininet> h2 ip addr del 10.0.0.2/8 dev h2-eth0
mininet> h2 ip addr add 192.168.20.2/24 dev h2-eth0