BUT2/SCR/IMUNES/SCR.3.2/TP03/tp03_debut.imn

535 lines
9.7 KiB
Plaintext

node n0 {
type host
network-config {
hostname GW1
!
interface eth1
mac address 42:00:aa:00:00:02
ip address 172.16.2.253/24
!
interface eth0
mac address 42:00:aa:00:00:01
ip address 172.16.1.253/24
!
interface lo0
type lo
ip address 127.0.0.1/8
ipv6 address ::1/128
!
}
canvas c0
iconcoords {240 264}
labelcoords {240 300}
interface-peer {eth0 n4}
interface-peer {eth1 n5}
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.253/24 dev eth0
ip addr add 172.16.2.253/24 dev eth1
ip -6 addr add ::1/128 dev lo0
iproute add 0.0.0.0/0 via 172.16.2.254
iptables -t filter -A FORWARD -d 172.16.3.0/24 -j DROP
iptables -t nat -A POSTROUTING -o eth1 -j SNAT --to-source 172.16.2.253
rpcbind
inetd
}
}
}
custom-enabled true
custom-selected default
}
node n1 {
type host
network-config {
hostname GW2
!
interface eth2
mac address 42:00:aa:00:00:07
ip address 45.45.45.254/21
!
interface eth1
mac address 42:00:aa:00:00:05
ip address 172.16.3.254/24
!
interface eth0
mac address 42:00:aa:00:00:04
ip address 172.16.2.254/24
!
interface lo0
type lo
ip address 127.0.0.1/8
ipv6 address ::1/128
!
!
!
!
}
canvas c0
iconcoords {576 264}
labelcoords {576 300}
interface-peer {eth0 n5}
interface-peer {eth1 n6}
interface-peer {eth2 n7}
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.2.254/24 dev eth0
ip addr add 172.16.3.254/24 dev eth1
ip addr add 45.45.45.254/21 dev eth2
ip -6 addr add ::1/128 dev lo0
iproute add default via 45.45.45.254
ip route add 172.16.1.253/24 via 172.16.2.253
iptables -t nat -A POSTROUTING -o eth1 -j SNAT --to-source 172.16.3.254
rpcbind
inetd
}
}
}
custom-enabled true
custom-selected default
}
node n2 {
type host
network-config {
hostname host1
!
interface eth0
mac address 42:00:aa:00:00:08
ip address 45.45.45.1/21
!
interface lo0
type lo
ip address 127.0.0.1/8
ipv6 address ::1/128
!
!
!
}
canvas c0
iconcoords {744 288}
labelcoords {744 324}
interface-peer {eth0 n7}
}
node n3 {
type host
network-config {
hostname host2
!
interface eth0
mac address 42:00:aa:00:00:09
ip address 45.45.45.2/21
!
interface lo0
type lo
ip address 127.0.0.1/8
ipv6 address ::1/128
!
!
!
}
canvas c0
iconcoords {840 360}
labelcoords {840 396}
interface-peer {eth0 n7}
}
node n4 {
type lanswitch
network-config {
hostname switch1
!
}
canvas c0
iconcoords {120 120}
labelcoords {120 143}
interface-peer {e0 n10}
interface-peer {e1 n0}
}
node n5 {
type lanswitch
network-config {
hostname switch2
!
}
canvas c0
iconcoords {408 168}
labelcoords {408 191}
interface-peer {e0 n0}
interface-peer {e1 n11}
interface-peer {e2 n1}
}
node n6 {
type lanswitch
network-config {
hostname switch3
!
}
canvas c0
iconcoords {744 48}
labelcoords {744 71}
interface-peer {e0 n1}
interface-peer {e1 n12}
}
node n7 {
type lanswitch
network-config {
hostname switch4
!
}
canvas c0
iconcoords {672 528}
labelcoords {672 551}
interface-peer {e0 n1}
interface-peer {e1 n2}
interface-peer {e2 n3}
interface-peer {e3 n8}
}
node n8 {
type router
model quagga
network-config {
hostname router1
!
interface eth0
mac address 42:00:aa:00:00:0a
ip address 62.62.62.253/19
!
interface eth1
mac address 42:00:aa:00:00:0c
ip address 45.45.45.253/21
!
interface lo0
type lo
ip address 127.0.0.1/8
ipv6 address ::1/128
!
!
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 {504 552}
labelcoords {504 577}
interface-peer {eth0 n9}
interface-peer {eth1 n7}
custom-configs {
custom-config-id default {
custom-command /usr/local/bin/quaggaboot.sh
config {
interface lo0
ip address 127.0.0.1/8
ipv6 address ::1/128
!
interface eth0
ip address 62.62.62.253/19
!
interface eth1
ip address 45.45.45.253/21
!
router rip
redistribute static
redistribute connected
redistribute ospf
network 0.0.0.0/0
!
router ripng
redistribute static
redistribute connected
redistribute ospf6
network ::/0
!
ip route add default via 62.62.62.254
ip route add 172.16.2.253/24 via 45.45.45.254
ip route add 172.16.1.253/24 via 45.45.45.254
}
}
}
custom-enabled true
custom-selected default
}
node n9 {
type router
model quagga
network-config {
hostname router2
!
interface eth1
mac address 42:00:aa:00:00:0d
ip address 37.37.37.254/22
!
interface eth0
mac address 42:00:aa:00:00:0b
ip address 62.62.62.254/19
!
interface lo0
type lo
ip address 127.0.0.1/8
ipv6 address ::1/128
!
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 {240 408}
labelcoords {240 433}
interface-peer {eth0 n8}
interface-peer {eth1 n13}
custom-configs {
custom-config-id default {
custom-command /usr/local/bin/quaggaboot.sh
config {
interface lo0
ip address 127.0.0.1/8
ipv6 address ::1/128
!
interface eth0
ip address 62.62.62.254/19
!
interface eth1
ip address 37.37.37.254/22
!
router rip
redistribute static
redistribute connected
redistribute ospf
network 0.0.0.0/0
!
router ripng
redistribute static
redistribute connected
redistribute ospf6
network ::/0
!
ip route add default via 62.62.62.253
iptables -t nat -A POSTROUTING -o eth1 -j SNAT --to-source 37.37.37.254
}
}
}
custom-enabled true
custom-selected default
}
node n10 {
type pc
network-config {
hostname pc1
!
interface eth0
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.253
ip route 172.16.2.0/24 172.16.1.253
!
}
canvas c0
iconcoords {48 336}
labelcoords {48 367}
interface-peer {eth0 n4}
}
node n11 {
type pc
network-config {
hostname pc2
!
interface eth0
mac address 42:00:aa:00:00:03
ip address 172.16.2.2/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.2.254
ip route 172.16.3.0/24 172.16.2.254
!
}
canvas c0
iconcoords {408 336}
labelcoords {408 367}
interface-peer {eth0 n5}
}
node n12 {
type pc
network-config {
hostname pc3
!
interface eth0
mac address 42:00:aa:00:00:06
ip address 172.16.3.3/24
!
interface lo0
type lo
ip address 127.0.0.1/8
ipv6 address ::1/128
!
!
}
canvas c0
iconcoords {840 144}
labelcoords {840 175}
interface-peer {eth0 n6}
}
node n13 {
type pc
network-config {
hostname pc
!
interface eth0
mac address 42:00:aa:00:00:0e
ip address 37.37.37.1/22
!
interface lo0
type lo
ip address 127.0.0.1/8
ipv6 address ::1/128
!
ip route 0.0.0.0/0 10.0.5.1
!
ipv6 route ::/0 fc00:5::1
!
}
canvas c0
iconcoords {96 552}
labelcoords {96 583}
interface-peer {eth0 n9}
}
link l0 {
nodes {n4 n10}
bandwidth 0
}
link l1 {
nodes {n0 n4}
bandwidth 0
}
link l2 {
nodes {n5 n0}
bandwidth 0
}
link l3 {
nodes {n11 n5}
bandwidth 0
}
link l4 {
nodes {n1 n5}
bandwidth 0
}
link l5 {
nodes {n6 n1}
bandwidth 0
}
link l6 {
nodes {n12 n6}
bandwidth 0
}
link l7 {
nodes {n7 n1}
bandwidth 0
}
link l8 {
nodes {n2 n7}
bandwidth 0
}
link l9 {
nodes {n3 n7}
bandwidth 0
}
link l10 {
nodes {n8 n9}
bandwidth 0
}
link l11 {
nodes {n7 n8}
bandwidth 0
}
link l12 {
nodes {n9 n13}
bandwidth 0
}
canvas c0 {
name {Canvas0}
}
option show {
interface_names yes
ip_addresses yes
ipv6_addresses yes
node_labels yes
link_labels yes
background_images no
annotations yes
hostsAutoAssign no
grid yes
iconSize normal
zoom 1.0
}