From: Josip Rodin Date: Mon, 2 Nov 2009 13:41:59 +0000 (+0100) Subject: jos jedan kombinirani test primjer X-Git-Url: https://git.entuzijast.net/?a=commitdiff_plain;h=00ea3c7ea5e0dc69339f78a74ca4bbb334bb1474;p=imunes.git jos jedan kombinirani test primjer --- diff --git a/test4.imn b/test4.imn new file mode 100644 index 0000000..3da4ba7 --- /dev/null +++ b/test4.imn @@ -0,0 +1,137 @@ +node n0 { + type lanswitch + network-config { + hostname svitak + ! + } + canvas c0 + iconcoords {288.0 216.0} + labelcoords {288.0 240.0} + interface-peer {e0 n1} + interface-peer {e1 n2} + interface-peer {e2 n3} +} + +node n1 { + type pc + network-config { + hostname n1 + ! + interface eth0 + ip address 10.0.0.20/24 + ipv6 address a:0::20/64 + ! + } + canvas c0 + iconcoords {288.0 336.0} + labelcoords {288.0 368.0} + interface-peer {eth0 n0} +} + +node n2 { + type pc + network-config { + hostname n2 + ! + interface eth0 + ip address 10.0.0.21/24 + ipv6 address a:0::21/64 + ! + } + canvas c0 + iconcoords {288.0 72.0} + labelcoords {288.0 104.0} + interface-peer {eth0 n0} +} + +node n3 { + type router + cpu {{min 0} {max 100} {weight 1}} + model quagga + network-config { + hostname rutvica + ! + interface eth1 + ip address 10.0.1.1/24 + ipv6 address 2001:a:1::1/64 + ! + interface eth0 + ip address 10.0.0.1/24 + ipv6 address a:0::1/64 + ! + router rip + redistribute static + redistribute connected + redistribute ospf + network 0.0.0.0/0 + ! + router ripng + redistribute static + redistribute connected + redistribute ospf6 + network ::/0 + ! + } + canvas c0 + iconcoords {96.0 216.0} + labelcoords {96.0 240.0} + interface-peer {eth0 n0} + interface-peer {eth1 n4} +} + +node n4 { + type pc + network-config { + hostname n4 + ! + interface eth0 + ip address 10.0.1.20/24 + ipv6 address 2001:a::20/64 + ! + ip route 0.0.0.0/0 10.0.1.1 + ! + ipv6 route ::/0 2001:a:1::1 + ! + } + canvas c0 + iconcoords {96.0 72.0} + labelcoords {96.0 104.0} + interface-peer {eth0 n3} +} + +link l0 { + nodes {n1 n0} + bandwidth 0 +} + +link l1 { + nodes {n0 n2} + bandwidth 0 +} + +link l2 { + nodes {n3 n0} + bandwidth 0 +} + +link l3 { + nodes {n3 n4} + bandwidth 0 +} + +canvas c0 { + name {Canvas0} +} + +option show { + interface_names yes + ip_addresses yes + ipv6_addresses no + node_labels yes + link_labels yes + ipsec_configs yes + background_images no + annotations yes + grid yes +} +