1#!/usr/bin/python 2from topology import * 3 4T = Topology() 5net1 = Network(T, 'nat0') 6net2 = Network(T) 7 8 9h1 = Host(T, net1, args="ping:172.16.2.1:") 10h2 = Host(T, net2) 11router1 = Host(T, net1, net2, args="natbox:172.16.2.2:") 12 13sleep(1) 14start(T) 15 16wait(h1) 17cleanup() 18