Untitled

mail@pastecode.io avatar
unknown
plain_text
a month ago
676 B
1
Indexable
Never
    h4 = net.add_node(Host('h4'))
    net.make_link(sw9, h4, vlan1=Trunk(100), vlan2=100, ip2='10.0.8.11/24')
    net.make_link(r2, h4, ip1='10.0.9.30/24', ip2='10.0.9.31/24')
    h4.add_route("0.0.0.0/0","10.0.9.30")

    h5 = net.add_node(Host('h5'))
    net.make_link(sw9, h5, vlan1=Trunk(100), vlan2=100, ip2='10.0.8.12/24')
    h5.add_route("0.0.0.0/0","10.0.8.10")


    h6 = net.add_node(Host('h6'))  #// zmazat
    net.make_link(r1, h6, ip1='10.0.8.10/24', ip2='10.0.8.11/24')
    h6.add_route("0.0.0.0/0","10.0.8.10")
    r1.add_route("10.0.8.0/24","10.0.3.24")  #//odkomentovat

    r1.add_route("10.0.5.0/24","10.0.3.24")
    r1.add_route("10.0.9.0/24","10.0.3.24")
Leave a Comment