diff --git a/SCR2.1/ARM/TP18/#shift-experiment.s# b/SCR2.1/ARM/TP18/#shift-experiment.s# new file mode 100644 index 0000000..a48824a --- /dev/null +++ b/SCR2.1/ARM/TP18/#shift-experiment.s# @@ -0,0 +1,22 @@ +.equ SYS_EXIT, 93 + +.data + +int1: .quad 1 +int2: .quad 2 + +.text +.globl _start + +_start: + +mov x0,#1 +lsl x5,x0,#3 +lsr x5,x0,#1 + +mov w8,#SYS_EXIT +mov x0,#0 +svc #0 + +.end + diff --git a/SCR2.1/ARM/TP18/a.out b/SCR2.1/ARM/TP18/a.out new file mode 100755 index 0000000..2cb6a77 Binary files /dev/null and b/SCR2.1/ARM/TP18/a.out differ diff --git a/SCR2.1/ARM/TP18/barrel-experiment.o b/SCR2.1/ARM/TP18/barrel-experiment.o new file mode 100644 index 0000000..cae69c7 Binary files /dev/null and b/SCR2.1/ARM/TP18/barrel-experiment.o differ diff --git a/SCR2.1/ARM/TP18/barrel-experiment.s b/SCR2.1/ARM/TP18/barrel-experiment.s new file mode 100644 index 0000000..f3b259c --- /dev/null +++ b/SCR2.1/ARM/TP18/barrel-experiment.s @@ -0,0 +1,22 @@ + .equ SYS_EXIT, 93 + .data +int1: .quad 1 +int2: .quad 2 + .text + .globl _start + +_start: + + mov x0,#15 + + add x1,x0,x0,lsl #4 + + mov x2,#1 + sub x1,xzr,x2,lsl #3 + + mov w8,#SYS_EXIT + mov w0,#0 + svc #0 + +.end + diff --git a/SCR2.1/ARM/TP18/shift-experiment.o b/SCR2.1/ARM/TP18/shift-experiment.o new file mode 100644 index 0000000..46b2fee Binary files /dev/null and b/SCR2.1/ARM/TP18/shift-experiment.o differ diff --git a/SCR2.1/ARM/TP18/shift-experiment.s b/SCR2.1/ARM/TP18/shift-experiment.s new file mode 100644 index 0000000..fdd00f5 --- /dev/null +++ b/SCR2.1/ARM/TP18/shift-experiment.s @@ -0,0 +1,19 @@ + .equ SYS_EXIT, 93 + .data +int1: .quad 1 +int2: .quad 2 + .text + .globl _start + +_start: + + mov x0,#1 + lsl x5,x0,#3 + lsr x5,x0,#1 + + mov w8,#SYS_EXIT + mov w0,#0 + svc #0 + +.end + diff --git a/SCR2.1/ARM/TP18/shift-experiment.s~ b/SCR2.1/ARM/TP18/shift-experiment.s~ new file mode 100644 index 0000000..bcedc96 --- /dev/null +++ b/SCR2.1/ARM/TP18/shift-experiment.s~ @@ -0,0 +1,19 @@ +.equ SYS_EXIT, 93 +.data +int1: .quad 1 +int2: .quad 2 +.text +.globl _start + +_start: + + mov x0,#1 + lsl x5,x0,#3 + lsr x5,x0,#1 + +mov w8,#SYS_EXIT +mov w0,#0 +svc #0 + +.end + diff --git a/SCR2.1/ARM/TP18/solar-5-TP18-responses.txt b/SCR2.1/ARM/TP18/solar-5-TP18-responses.txt index e69de29..1ef8391 100644 --- a/SCR2.1/ARM/TP18/solar-5-TP18-responses.txt +++ b/SCR2.1/ARM/TP18/solar-5-TP18-responses.txt @@ -0,0 +1,134 @@ +I) + +(gdb) l +1 .equ SYS_EXIT, 93 +2 .data +3 int1: .quad 1 +4 int2: .quad 2 +5 .text +6 .globl _start +7 +8 _start: +9 +10 mov x0,#1 +(gdb) b 7 +Breakpoint 1 at 0x4000b0: file shift-experiment.s, line 10. +(gdb) run +Starting program: /export/home/an23/solar/SCR/SCR2.1/ARM/TP18/a.out + +Breakpoint 1, _start () at shift-experiment.s:10 +10 mov x0,#1 +(gdb) i r x0 x5 +x0 0x0 0 +x5 0x0 0 +(gdb) s +11 lsl x5,x0,#3 +(gdb) i r x0 x5 +x0 0x1 1 +x5 0x0 0 +(gdb) s +12 lsr x5,x0,#1 +(gdb) i r x0 x5 +x0 0x1 1 +x5 0x8 8 +(gdb) s +14 mov w8,#SYS_EXIT +(gdb) i r x0 x5 +x0 0x1 1 +x5 0x0 0 + + +II) + + +(gdb) l +1 .equ SYS_EXIT, 93 +2 .data +3 int1: .quad 1 +4 int2: .quad 2 +5 .text +6 .globl _start +7 +8 _start: +9 +10 mov x0,#15 +(gdb) b 8 +Breakpoint 1 at 0x4000b0: file barrel-experiment.s, line 10. +(gdb) rin +Undefined command: "rin". Try "help". +(gdb) run +Starting program: /export/home/an23/solar/SCR/SCR2.1/ARM/TP18/a.out + +Breakpoint 1, _start () at barrel-experiment.s:10 +10 mov x0,#15 +(gdb) i r x1 x0 +x1 0x0 0 +x0 0x0 0 +(gdb) s +12 add x1,x0,x0,lsl #4 +(gdb) i r x1 x0 +x1 0x0 0 +x0 0xf 15 +(gdb) s +14 mov w8,#SYS_EXIT +(gdb) i r x1 x0 +x1 0xff 255 +x0 0xf 15 + + +3. + + +(gdb) l +1 .equ SYS_EXIT, 93 +2 .data +3 int1: .quad 1 +4 int2: .quad 2 +5 .text +6 .globl _start +7 +8 _start: +9 +10 mov x0,#15 +(gdb) b 8 +Breakpoint 1 at 0x4000b0: file barrel-experiment.s, line 10. +(gdb) run +Starting program: /export/home/an23/solar/SCR/SCR2.1/ARM/TP18/a.out + +Breakpoint 1, _start () at barrel-experiment.s:10 +10 mov x0,#15 +(gdb) i r x0 x1 x2 +x0 0x0 0 +x1 0x0 0 +x2 0x0 0 +(gdb) s +12 add x1,x0,x0,lsl #4 +(gdb) i r x0 x1 x2 +x0 0xf 15 +x1 0x0 0 +x2 0x0 0 +(gdb) s +14 mov x2,#1 +(gdb) i r x0 x1 x2 +x0 0xf 15 +x1 0xff 255 +x2 0x0 0 +(gdb) s +15 sub x1,xzr,x2,lsl #3 +(gdb) i r x0 x1 x2 +x0 0xf 15 +x1 0xff 255 +x2 0x1 1 +(gdb) s +17 mov w8,#SYS_EXIT +(gdb) i r x0 x1 x2 +x0 0xf 15 +x1 0xfffffffffffffff8 -8 +x2 0x1 1 + + + + + + + diff --git a/SCR2.2/TP20/simple1.imn b/SCR2.2/TP20/simple1.imn new file mode 100644 index 0000000..08692ad --- /dev/null +++ b/SCR2.2/TP20/simple1.imn @@ -0,0 +1,113 @@ +node n1 { + type pc + network-config { + hostname pc1 + ! + interface eth0 + ip address 172.16.1.1/16 + mac address 42:00:aa:00:00:03 + ! + interface lo0 + type lo + ip address 127.0.0.1/8 + ipv6 address ::1/128 + ! + } + auto_default_routes enabled + canvas c0 + iconcoords {144 312} + labelcoords {144 343} + interface-peer {eth0 n0} +} + +node n2 { + type pc + network-config { + hostname pc2 + ! + interface eth0 + ip address 172.16.2.2/16 + mac address 42:00:aa:00:00:04 + ! + interface lo0 + type lo + ip address 127.0.0.1/8 + ipv6 address ::1/128 + ! + } + auto_default_routes enabled + canvas c0 + iconcoords {384 312} + labelcoords {384 343} + interface-peer {eth0 n0} +} + +node n3 { + type pc + network-config { + hostname pc3 + ! + interface eth0 + ip address 172.16.3.3/16 + mac address 42:00:aa:00:00:05 + ! + interface lo0 + type lo + ip address 127.0.0.1/8 + ipv6 address ::1/128 + ! + } + auto_default_routes enabled + canvas c0 + iconcoords {576 312} + labelcoords {576 343} + interface-peer {eth0 n0} +} + +node n0 { + type lanswitch + network-config { + hostname switch1 + ! + } + canvas c0 + iconcoords {384 96} + labelcoords {384 119} + interface-peer {e0 n1} + interface-peer {e1 n2} + interface-peer {e2 n3} +} + +link l0 { + nodes {n1 n0} + bandwidth 0 +} + +link l1 { + nodes {n2 n0} + bandwidth 0 +} + +link l2 { + nodes {n3 n0} + 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 +} + diff --git a/SCR2.2/TP20/simple2.imn b/SCR2.2/TP20/simple2.imn new file mode 100644 index 0000000..e1b790e --- /dev/null +++ b/SCR2.2/TP20/simple2.imn @@ -0,0 +1,185 @@ +node n0 { + type host + network-config { + hostname host1 + ! + interface eth1 + ip address 172.16.2.254/24 + ! + interface eth0 + ip address 172.16.1.254/24 + ! + interface lo0 + type lo + ip address 127.0.0.1/8 + ipv6 address ::1/128 + ! + } + auto_default_routes enabled + canvas c0 + iconcoords {432 72} + labelcoords {432 108} + interface-peer {eth0 n1} + interface-peer {eth1 n2} +} + +node n1 { + type lanswitch + network-config { + hostname switch1 + ! + } + canvas c0 + iconcoords {264 216} + labelcoords {264 239} + interface-peer {e0 n0} + interface-peer {e1 n3} + interface-peer {e2 n4} +} + +node n2 { + type lanswitch + network-config { + hostname switch2 + ! + } + canvas c0 + iconcoords {600 216} + labelcoords {600 239} + interface-peer {e0 n0} + interface-peer {e1 n5} + interface-peer {e2 n6} +} + +node n3 { + type pc + network-config { + hostname pc1 + ! + interface eth0 + ip address 172.16.1.1/24 + ! + interface lo0 + type lo + ip address 127.0.0.1/8 + ipv6 address ::1/128 + ! + } + auto_default_routes enabled + canvas c0 + iconcoords {120 360} + labelcoords {120 391} + interface-peer {eth0 n1} +} + +node n4 { + type pc + network-config { + hostname pc2 + ! + interface eth0 + ip address 172.16.1.2/24 + ! + interface lo0 + type lo + ip address 127.0.0.1/8 + ipv6 address ::1/128 + ! + } + auto_default_routes enabled + canvas c0 + iconcoords {408 360} + labelcoords {408 391} + interface-peer {eth0 n1} +} + +node n5 { + type pc + network-config { + hostname pc3 + ! + interface eth0 + ip address 172.16.2.1/24 + ! + interface lo0 + type lo + ip address 127.0.0.1/8 + ipv6 address ::1/128 + ! + } + auto_default_routes enabled + canvas c0 + iconcoords {504 360} + labelcoords {504 391} + interface-peer {eth0 n2} +} + +node n6 { + type pc + network-config { + hostname pc4 + ! + interface eth0 + ip address 172.16.2.2/24 + ! + interface lo0 + type lo + ip address 127.0.0.1/8 + ipv6 address ::1/128 + ! + } + auto_default_routes enabled + canvas c0 + iconcoords {744 360} + labelcoords {744 391} + interface-peer {eth0 n2} +} + +link l0 { + nodes {n1 n0} + bandwidth 0 +} + +link l1 { + nodes {n2 n0} + bandwidth 0 +} + +link l2 { + nodes {n1 n3} + bandwidth 0 +} + +link l3 { + nodes {n1 n4} + bandwidth 0 +} + +link l4 { + nodes {n2 n5} + bandwidth 0 +} + +link l5 { + nodes {n6 n2} + 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 +} + diff --git a/SCR2.2/TP20/simple3.imn b/SCR2.2/TP20/simple3.imn new file mode 100644 index 0000000..cc5fc55 --- /dev/null +++ b/SCR2.2/TP20/simple3.imn @@ -0,0 +1,368 @@ +node n0 { + type host + network-config { + hostname host1 + ! + interface eth1 + ip address 192.168.64.254/18 + ! + interface eth0 + ip address 192.168.0.254/18 + ! + interface lo0 + type lo + ip address 127.0.0.1/8 + ipv6 address ::1/128 + ! + } + auto_default_routes enabled + canvas c0 + iconcoords {216 168} + labelcoords {216 204} + interface-peer {eth0 n2} + interface-peer {eth1 n3} +} + +node n1 { + type host + network-config { + hostname host2 + ! + interface eth2 + ip address 192.168.64.253/18 + ! + interface eth1 + ip address 192.168.192.254/18 + ! + interface eth0 + ip address 192.168.128.254/18 + ! + interface lo0 + type lo + ip address 127.0.0.1/8 + ipv6 address ::1/128 + ! + } + canvas c0 + iconcoords {624 168} + labelcoords {624 204} + interface-peer {eth0 n4} + interface-peer {eth1 n5} + interface-peer {eth2 n3} +} + +node n2 { + type lanswitch + network-config { + hostname switch1 + ! + } + canvas c0 + iconcoords {72 264} + labelcoords {72 287} + interface-peer {e0 n0} + interface-peer {e1 n7} + interface-peer {e2 n6} +} + +node n3 { + type lanswitch + network-config { + hostname switch2 + ! + } + canvas c0 + iconcoords {360 264} + labelcoords {360 287} + interface-peer {e0 n0} + interface-peer {e1 n9} + interface-peer {e2 n8} + interface-peer {e3 n1} +} + +node n4 { + type lanswitch + network-config { + hostname switch3 + ! + } + canvas c0 + iconcoords {600 264} + labelcoords {600 287} + interface-peer {e0 n1} + interface-peer {e1 n11} + interface-peer {e2 n10} +} + +node n5 { + type lanswitch + network-config { + hostname switch4 + ! + } + canvas c0 + iconcoords {792 312} + labelcoords {792 335} + interface-peer {e0 n1} + interface-peer {e1 n13} + interface-peer {e2 n12} +} + +node n6 { + type pc + network-config { + hostname pc1 + ! + interface eth0 + ip address 192.168.0.1/18 + ! + interface lo0 + type lo + ip address 127.0.0.1/8 + ipv6 address ::1/128 + ! + ip route 0.0.0.0/0 192.168.0.254 + ! + } + auto_default_routes enabled + canvas c0 + iconcoords {24 456} + labelcoords {24 487} + interface-peer {eth0 n2} +} + +node n7 { + type pc + network-config { + hostname pc2 + ! + interface eth0 + ip address 192.168.0.2/18 + ! + interface lo0 + type lo + ip address 127.0.0.1/8 + ipv6 address ::1/128 + ! + ip route 0.0.0.0/0 192.168.0.254 + ! + } + auto_default_routes enabled + canvas c0 + iconcoords {168 504} + labelcoords {168 535} + interface-peer {eth0 n2} +} + +node n8 { + type pc + network-config { + hostname pc3 + ! + interface eth0 + ip address 192.168.64.1/18 + ! + interface lo0 + type lo + ip address 127.0.0.1/8 + ipv6 address ::1/128 + ! + ip route 0.0.0.0/0 192.168.64.253 + ip route 0.0.0.0/0 192.168.64.254 + ! + } + auto_default_routes enabled + canvas c0 + iconcoords {264 408} + labelcoords {264 439} + interface-peer {eth0 n3} +} + +node n9 { + type pc + network-config { + hostname pc4 + ! + interface eth0 + ip address 192.168.64.2/18 + ! + interface lo0 + type lo + ip address 127.0.0.1/8 + ipv6 address ::1/128 + ! + } + auto_default_routes enabled + canvas c0 + iconcoords {408 504} + labelcoords {408 535} + interface-peer {eth0 n3} +} + +node n10 { + type pc + network-config { + hostname pc5 + ! + interface eth0 + ip address 192.168.128.1/18 + ! + interface lo0 + type lo + ip address 127.0.0.1/8 + ipv6 address ::1/128 + ! + } + auto_default_routes enabled + canvas c0 + iconcoords {504 408} + labelcoords {504 439} + interface-peer {eth0 n4} +} + +node n11 { + type pc + network-config { + hostname pc6 + ! + interface eth0 + ip address 192.168.128.2/18 + ! + interface lo0 + type lo + ip address 127.0.0.1/8 + ipv6 address ::1/128 + ! + } + auto_default_routes enabled + canvas c0 + iconcoords {648 504} + labelcoords {648 535} + interface-peer {eth0 n4} +} + +node n12 { + type pc + network-config { + hostname pc7 + ! + interface eth0 + ip address 192.168.192.1/18 + ! + interface lo0 + type lo + ip address 127.0.0.1/8 + ipv6 address ::1/128 + ! + } + auto_default_routes enabled + canvas c0 + iconcoords {744 408} + labelcoords {744 439} + interface-peer {eth0 n5} +} + +node n13 { + type pc + network-config { + hostname pc8 + ! + interface eth0 + ip address 192.168.192.2/18 + ! + interface lo0 + type lo + ip address 127.0.0.1/8 + ipv6 address ::1/128 + ! + } + auto_default_routes enabled + canvas c0 + iconcoords {840 504} + labelcoords {840 535} + interface-peer {eth0 n5} +} + +link l0 { + nodes {n2 n0} + bandwidth 0 +} + +link l1 { + nodes {n3 n0} + bandwidth 0 +} + +link l2 { + nodes {n4 n1} + bandwidth 0 +} + +link l3 { + nodes {n5 n1} + bandwidth 0 +} + +link l4 { + nodes {n13 n5} + bandwidth 0 +} + +link l5 { + nodes {n12 n5} + bandwidth 0 +} + +link l6 { + nodes {n11 n4} + bandwidth 0 +} + +link l7 { + nodes {n10 n4} + bandwidth 0 +} + +link l8 { + nodes {n9 n3} + bandwidth 0 +} + +link l9 { + nodes {n8 n3} + bandwidth 0 +} + +link l10 { + nodes {n7 n2} + bandwidth 0 +} + +link l11 { + nodes {n6 n2} + bandwidth 0 +} + +link l12 { + nodes {n1 n3} + 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 +} + diff --git a/SCR2.2/TP20/solar-5-TP20-repones.txt b/SCR2.2/TP20/solar-5-TP20-repones.txt new file mode 100644 index 0000000..c1f99a0 --- /dev/null +++ b/SCR2.2/TP20/solar-5-TP20-repones.txt @@ -0,0 +1,36 @@ +PC 1: +Clique droit tcpdump + +tcpdump: verbose output suppressed, use -v or -vv for full protocol decode +listening on eth0, link-type EN10MB (Ethernet), capture size 262144 bytes +14:40:16.534494 IP 172.16.1.1 > 172.16.3.3: ICMP echo request, id 3, seq 1, length 64 +14:40:16.534582 IP 172.16.3.3 > 172.16.1.1: ICMP echo reply, id 3, seq 1, length 64 +14:40:21.665229 ARP, Request who-has 172.16.3.3 tell 172.16.1.1, length 28 +14:40:21.665295 ARP, Request who-has 172.16.1.1 tell 172.16.3.3, length 28 +14:40:21.665317 ARP, Reply 172.16.1.1 is-at 42:00:aa:00:00:03, length 28 +14:40:21.665376 ARP, Reply 172.16.3.3 is-at 42:00:aa:00:00:05, length 28 +14:41:28.225456 IP6 fe80::cfd:c6ff:fece:ca0c > ff02::2: ICMP6, router solicitation, length 16 + + +PC 2: + +tcpdump: verbose output suppressed, use -v or -vv for full protocol decode +listening on eth0, link-type EN10MB (Ethernet), capture size 262144 bytes +14:40:16.534541 IP 172.16.1.1 > 172.16.3.3: ICMP echo request, id 3, seq 1, length 64 +14:40:16.534566 IP 172.16.3.3 > 172.16.1.1: ICMP echo reply, id 3, seq 1, length 64 +14:40:21.665200 ARP, Request who-has 172.16.1.1 tell 172.16.3.3, length 28 +14:40:21.665300 ARP, Request who-has 172.16.3.3 tell 172.16.1.1, length 28 +14:40:21.665336 ARP, Reply 172.16.3.3 is-at 42:00:aa:00:00:05, length 28 +14:40:21.665371 ARP, Reply 172.16.1.1 is-at 42:00:aa:00:00:03, length 28 + + + +Terminal HOST : + +[solar@salle229-06 TP20]$ sudo himage pc1 ping -c1 172.16.3.3 +PING 172.16.3.3 (172.16.3.3) 56(84) bytes of data. +64 bytes from 172.16.3.3: icmp_seq=1 ttl=64 time=0.109 ms + +--- 172.16.3.3 ping statistics --- +1 packets transmitted, 1 received, 0% packet loss, time 0ms +rtt min/avg/max/mdev = 0.109/0.109/0.109/0.000 ms diff --git a/SCR2.2/TP20/tp20.SCR.2.2.pdf b/SCR2.2/TP20/tp20.SCR.2.2.pdf new file mode 100644 index 0000000..db76599 Binary files /dev/null and b/SCR2.2/TP20/tp20.SCR.2.2.pdf differ diff --git a/SCR2.2/TP21.tar b/SCR2.2/TP21.tar new file mode 100644 index 0000000..11834d0 Binary files /dev/null and b/SCR2.2/TP21.tar differ diff --git a/SCR2.2/TP21/tp21.SCR.2.2.imn b/SCR2.2/TP21/tp21.SCR.2.2.imn new file mode 100644 index 0000000..2a5e451 --- /dev/null +++ b/SCR2.2/TP21/tp21.SCR.2.2.imn @@ -0,0 +1,638 @@ +node n2 { + type lanswitch + network-config { + hostname switch3 + ! + } + canvas c0 + iconcoords {96 528} + labelcoords {97 556} + interface-peer {e0 n10} + interface-peer {e1 n19} + interface-peer {e2 n0} +} + +node n3 { + type lanswitch + network-config { + hostname switch4 + ! + } + canvas c0 + iconcoords {120 72} + labelcoords {75 55} + interface-peer {e0 n10} + interface-peer {e1 n11} + interface-peer {e2 n20} +} + +node n4 { + type lanswitch + network-config { + hostname switch5 + ! + } + canvas c0 + iconcoords {360 288} + labelcoords {341 309} + interface-peer {e0 n9} + interface-peer {e1 n11} + interface-peer {e2 n21} + interface-peer {e3 n1} +} + +node n5 { + type lanswitch + network-config { + hostname switch6 + ! + } + canvas c0 + iconcoords {816 48} + labelcoords {765 27} + interface-peer {e0 n9} + interface-peer {e1 n22} +} + +node n6 { + type lanswitch + network-config { + hostname switch7 + ! + } + canvas c0 + iconcoords {816 264} + labelcoords {810 232} + interface-peer {e0 n9} + interface-peer {e1 n12} + interface-peer {e2 n23} + interface-peer {e3 n8} +} + +node n7 { + type lanswitch + network-config { + hostname switch8 + ! + } + canvas c0 + iconcoords {528 312} + labelcoords {513 289} + interface-peer {e0 n12} + interface-peer {e1 n13} + interface-peer {e2 n14} +} + +node n9 { + type host + network-config { + hostname P5 + ! + interface eth3 + mac address 42:00:aa:00:00:09 + ip address 10.80.0.254/17 + ! + interface eth2 + mac address 42:00:aa:00:00:04 + ip address 10.64.0.254/17 + ! + interface eth1 + mac address 42:00:aa:00:00:03 + ip address 10.48.0.254/17 + ! + interface lo0 + type lo + ip address 127.0.0.1/8 + ipv6 address ::1/128 + ! + ! + } + canvas c0 + iconcoords {576 96} + labelcoords {543 52} + interface-peer {eth1 n4} + interface-peer {eth2 n5} + interface-peer {eth3 n6} + custom-configs { + custom-config-id default { + custom-command /bin/sh + config { + ip addr add 127.0.0.1/8 dev lo0 + + ip addr add 10.48.0.254/17 dev eth1 + ip addr add 10.64.0.254/17 dev eth2 + ip addr add 10.80.0.254/17 dev eth3 + ip -6 addr add ::1/128 dev lo0 + + + iptables -t nat -A POSTROUTING -o eth3 -s 10.48.0.0/17 -j SNAT --to-source 10.80.0.254 + + rpcbind + inetd + + } + } + } + custom-enabled true + custom-selected default +} + +node n10 { + type host + network-config { + hostname P3 + ! + interface eth1 + mac address 42:00:aa:00:00:06 + ip address 10.32.0.254/17 + ! + interface eth0 + mac address 42:00:aa:00:00:05 + ip address 10.16.0.254/17 + ! + interface lo0 + type lo + ip address 127.0.0.1/8 + ipv6 address ::1/128 + ! + ! + } + canvas c0 + iconcoords {240 288} + labelcoords {246 328} + interface-peer {eth0 n2} + interface-peer {eth1 n3} +} + +node n11 { + type host + network-config { + hostname P4 + ! + interface eth1 + mac address 42:00:aa:00:00:08 + ip address 10.48.0.255/17 + ! + interface eth0 + mac address 42:00:aa:00:00:07 + ip address 10.32.0.255/17 + ! + interface lo0 + type lo + ip address 127.0.0.1/8 + ipv6 address ::1/128 + ! + ! + } + canvas c0 + iconcoords {312 96} + labelcoords {319 52} + interface-peer {eth0 n3} + interface-peer {eth1 n4} + custom-configs { + custom-config-id default { + custom-command /bin/sh + config { + ip addr add 127.0.0.1/8 dev lo0 + ip addr add 10.32.0.255/17 dev eth0 + ip addr add 10.48.0.255/17 dev eth1 + ip -6 addr add ::1/128 dev lo0 + + + iptables -t nat -A POSTROUTING -o eth0 -j SNAT --to-source 10.32.0.255 + iptables -t nat -A POSTROUTING -o eth1 -j SNAT --to-source 10.48.0.255 + + rpcbind + inetd + + } + } + } + custom-enabled true + custom-selected default +} + +node n12 { + type host + network-config { + hostname P6 + ! + interface eth0 + mac address 42:00:aa:00:00:0a + ip address 10.80.0.255/17 + ! + interface eth1 + mac address 42:00:aa:00:00:0b + ip address 102.103.104.255/15 + ! + interface lo0 + type lo + ip address 127.0.0.1/8 + ipv6 address ::1/128 + ! + ! + ! + } + canvas c0 + iconcoords {792 456} + labelcoords {751 479} + interface-peer {eth0 n6} + interface-peer {eth1 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 10.80.0.255/17 dev eth0 + ip addr add 102.103.104.255/15 dev eth1 + ip -6 addr add ::1/128 dev lo0 + + + iptables -t nat -A POSTROUTING -o eth1 -j SNAT --to-source 102.103.104.255 + + rpcbind + inetd + + } + } + } + custom-enabled true + custom-selected default +} + +node n13 { + type router + model quagga + network-config { + hostname router1 + ! + interface eth1 + mac address 42:00:aa:00:00:0e + ip address 202.203.204.254/11 + ! + interface eth0 + mac address 42:00:aa:00:00:0c + ip address 102.103.104.254/15 + ! + 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 {792 576} + labelcoords {792 601} + interface-peer {eth0 n7} + interface-peer {eth1 n15} +} + +node n14 { + type host + network-config { + hostname host2 + ! + interface eth0 + mac address 42:00:aa:00:00:0d + ip address 102.103.104.104/15 + ! + interface lo0 + type lo + ip address 127.0.0.1/8 + ipv6 address ::1/128 + ! + ! + } + canvas c0 + iconcoords {384 456} + labelcoords {369 415} + interface-peer {eth0 n7} +} + +node n15 { + type host + network-config { + hostname host3 + ! + interface eth0 + mac address 42:00:aa:00:00:0f + ip address 202.203.204.204/11 + ! + interface lo0 + type lo + ip address 127.0.0.1/8 + ipv6 address ::1/128 + ! + ! + ! + } + canvas c0 + iconcoords {408 552} + labelcoords {408 588} + interface-peer {eth0 n13} +} + +node n19 { + type pc + network-config { + hostname pc3 + ! + interface eth0 + mac address 42:00:aa:00:00:13 + ip address 10.16.0.3/17 + ! + interface lo0 + type lo + ip address 127.0.0.1/8 + ipv6 address ::1/128 + ! + ! + } + canvas c0 + iconcoords {264 432} + labelcoords {264 463} + interface-peer {eth0 n2} +} + +node n20 { + type pc + network-config { + hostname pc4 + ! + interface eth0 + mac address 42:00:aa:00:00:14 + ip address 10.32.0.4/17 + ! + interface lo0 + type lo + ip address 127.0.0.1/8 + ipv6 address ::1/128 + ! + ! + } + canvas c0 + iconcoords {48 264} + labelcoords {48 295} + interface-peer {eth0 n3} +} + +node n21 { + type pc + network-config { + hostname pc5 + ! + interface eth0 + mac address 42:00:aa:00:00:15 + ip address 10.48.0.5/17 + ! + interface lo0 + type lo + ip address 127.0.0.1/8 + ipv6 address ::1/128 + ! + ! + } + canvas c0 + iconcoords {528 216} + labelcoords {528 247} + interface-peer {eth0 n4} +} + +node n22 { + type pc + network-config { + hostname pc6 + ! + interface eth0 + mac address 42:00:aa:00:00:16 + ip address 10.64.0.6/17 + ! + interface lo0 + type lo + ip address 127.0.0.1/8 + ipv6 address ::1/128 + ! + ! + } + canvas c0 + iconcoords {768 144} + labelcoords {768 175} + interface-peer {eth0 n5} +} + +node n23 { + type pc + network-config { + hostname pc7 + ! + interface eth0 + mac address 42:00:aa:00:00:17 + ip address 10.80.0.7/17 + ! + interface lo0 + type lo + ip address 127.0.0.1/8 + ipv6 address ::1/128 + ! + ! + } + canvas c0 + iconcoords {624 216} + labelcoords {624 247} + interface-peer {eth0 n6} +} + +node n0 { + type host + network-config { + hostname host1 + ! + interface eth0 + mac address 42:00:aa:00:00:00 + ip address 10.16.0.200/17 + ! + interface lo0 + type lo + ip address 127.0.0.1/8 + ipv6 address ::1/128 + ! + ! + } + canvas c0 + iconcoords {48 360} + labelcoords {31 327} + interface-peer {eth0 n2} +} + +node n1 { + type pc + network-config { + hostname pc6-5 + ! + interface eth0 + mac address 42:00:aa:00:00:01 + ip address 10.48.0.6/17 + ! + interface lo0 + type lo + ip address 127.0.0.1/8 + ipv6 address ::1/128 + ! + } + canvas c0 + iconcoords {456 72} + labelcoords {429 41} + interface-peer {eth0 n4} +} + +node n8 { + type pc + network-config { + hostname pc8 + ! + interface eth0 + mac address 42:00:aa:00:00:02 + ip address 10.80.0.8/17 + ! + interface lo0 + type lo + ip address 127.0.0.1/8 + ipv6 address ::1/128 + ! + } + canvas c0 + iconcoords {648 288} + labelcoords {648 319} + interface-peer {eth0 n6} +} + +link l3 { + nodes {n9 n4} + bandwidth 0 +} + +link l4 { + nodes {n5 n9} + bandwidth 0 +} + +link l5 { + nodes {n10 n2} + bandwidth 0 +} + +link l6 { + nodes {n3 n10} + bandwidth 0 +} + +link l7 { + nodes {n11 n3} + bandwidth 0 +} + +link l8 { + nodes {n4 n11} + bandwidth 0 +} + +link l9 { + nodes {n6 n9} + bandwidth 0 +} + +link l10 { + nodes {n6 n12} + bandwidth 0 +} + +link l11 { + nodes {n7 n12} + bandwidth 0 +} + +link l12 { + nodes {n13 n7} + bandwidth 0 +} + +link l13 { + nodes {n7 n14} + bandwidth 0 +} + +link l14 { + nodes {n15 n13} + bandwidth 0 +} + +link l18 { + nodes {n19 n2} + bandwidth 0 +} + +link l19 { + nodes {n20 n3} + bandwidth 0 +} + +link l20 { + nodes {n4 n21} + bandwidth 0 +} + +link l21 { + nodes {n5 n22} + bandwidth 0 +} + +link l22 { + nodes {n6 n23} + bandwidth 0 +} + +link l0 { + nodes {n2 n0} + bandwidth 0 +} + +link l1 { + nodes {n1 n4} + bandwidth 0 +} + +link l2 { + nodes {n6 n8} + 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 +} + diff --git a/SCR2.2/TP21/tp21.SCR.2.2.pdf b/SCR2.2/TP21/tp21.SCR.2.2.pdf new file mode 100644 index 0000000..cfae7ea Binary files /dev/null and b/SCR2.2/TP21/tp21.SCR.2.2.pdf differ