node n0 { type lanswitch network-config { hostname S1 ! } canvas c0 iconcoords {192 216} labelcoords {192 239} interface-peer {e0 n3} interface-peer {e1 n4} interface-peer {e2 n2} } node n1 { type lanswitch network-config { hostname S2 ! } canvas c0 iconcoords {624 216} labelcoords {624 239} interface-peer {e0 n2} interface-peer {e1 n5} interface-peer {e2 n6} } node n2 { type host network-config { hostname P1 ! interface eth1 ipv6 address fc00:1::10/64 mac address 42:00:aa:00:00:03 ip address 172.16.2.254/24 ! interface eth0 ipv6 address fc00::10/64 mac address 42:00:aa:00:00:02 ip address 172.16.1.254/24 ! interface lo0 type lo ip address 127.0.0.1/8 ipv6 address ::1/128 ! ! } canvas c0 iconcoords {432 288} labelcoords {432 324} interface-peer {eth0 n0} interface-peer {eth1 n1} custom-configs { custom-config-id default { custom-command /bin/sh config { ip addr add 127.0.0.1/8 dev lo0 ip addr add 172.16.1.254/24 dev eth0 ip addr add 172.16.2.254/24 dev eth1 ip -6 addr add ::1/128 dev lo0 ip -6 addr add fc00::10/64 dev eth0 ip -6 addr add fc00:1::10/64 dev eth1 iptables -t nat -A PREROUTING -d 172.16.2.0/24 -j DNAT --to-destination 172.16.2.254 iptables -t nat -A PREROUTING -d 172.16.1.0/24 -j DNAT --to-destination 172.16.2.254 ip route append 172.16.1.0/24 via 172.16.1.254 ip route append 172.16.2.0/24 via 172.16.2.254 rpcbind inetd } } } custom-enabled true custom-selected default } node n3 { type pc network-config { hostname pc1-1 ! interface eth0 ipv6 address fc00::20/64 mac address 42:00:aa:00:00:00 ip address 172.16.1.1/24 ! interface lo0 type lo ip address 127.0.0.1/8 ipv6 address ::1/128 ! ip route 0.0.0.0/0 172.16.1.254 ! } canvas c0 iconcoords {48 96} labelcoords {48 127} interface-peer {eth0 n0} } node n4 { type pc network-config { hostname pc1-2 ! interface eth0 ipv6 address fc00::21/64 mac address 42:00:aa:00:00:01 ip address 172.16.1.58/24 ! interface lo0 type lo ip address 127.0.0.1/8 ipv6 address ::1/128 ! ip route 0.0.0.0/0 172.16.1.254 ! } canvas c0 iconcoords {24 288} labelcoords {24 319} interface-peer {eth0 n0} } node n5 { type pc network-config { hostname pc2-1 ! interface eth0 ipv6 address fc00:1::20/64 mac address 42:00:aa:00:00:04 ip address 172.16.2.1/24 ! interface lo0 type lo ip address 127.0.0.1/8 ipv6 address ::1/128 ! ! } canvas c0 iconcoords {792 96} labelcoords {792 127} interface-peer {eth0 n1} } node n6 { type pc network-config { hostname pc2-2 ! interface eth0 ipv6 address fc00:1::21/64 mac address 42:00:aa:00:00:05 ip address 172.16.2.64/24 ! interface lo0 type lo ip address 127.0.0.1/8 ipv6 address ::1/128 ! ! } canvas c0 iconcoords {792 336} labelcoords {792 367} interface-peer {eth0 n1} } link l0 { nodes {n0 n3} bandwidth 0 } link l1 { nodes {n0 n4} bandwidth 0 } link l2 { nodes {n2 n0} bandwidth 0 } link l3 { nodes {n1 n2} bandwidth 0 } link l4 { nodes {n5 n1} bandwidth 0 } link l5 { nodes {n6 n1} bandwidth 0 } canvas c0 { name {Canvas0} } option show { interface_names yes ip_addresses yes ipv6_addresses no node_labels yes link_labels yes background_images no annotations yes hostsAutoAssign no grid yes iconSize normal zoom 1.0 }