Untitled
sw11 = net.add_node(Bridge('sw11')) net.make_link(sw9, sw11, vlan1=Trunk(100), vlan2=Trunk(100)) sw13 = net.add_node(Bridge('sw13')) net.make_link(sw11, sw13, vlan1=Trunk(100), vlan2=Trunk(100)) h7 = net.add_node(Host('h7')) net.make_link(sw13, h7, vlan1=Trunk(100), vlan2=100, ip2='10.0.8.13/24') h7.add_route("0.0.0.0/0","10.0.8.10") ip = [ '10.0.8.30', '10.0.8.31', '10.0.8.32', '10.0.8.33', '10.0.8.34', '10.0.8.35', '10.0.8.36' ] h20 = net.add_node(Host("h20")) net.make_link(sw11, h20, vlan1=Trunk(100), vlan2=100, ip2=ip) h20.add_route("0.0.0.0/0","10.0.8.10")
Leave a Comment