diff --git a/router1/router1_ip.txt b/router1/router1_ip.txt index 504526b987d6fafc9010b9e3ca21e63f44bdfe99..f0b0c6e2fe1526dab10e112ec8584d4050a447ea 100644 --- a/router1/router1_ip.txt +++ b/router1/router1_ip.txt @@ -2,3 +2,4 @@ 10.10.20.176 10.10.20.176 10.10.20.176 +10.10.20.176 diff --git a/router1/router1_mask.txt b/router1/router1_mask.txt index 95daef67007eb4cd0d9565a6d78b0fd7c7d48c92..ec7a7d8d970263c1f3fafd18419f5dbc935c4146 100644 --- a/router1/router1_mask.txt +++ b/router1/router1_mask.txt @@ -1,2 +1,6 @@ 29 + + +29 + diff --git a/router1/router1_routingt.txt b/router1/router1_routingt.txt index 73a17d418ef7629128eb1bff583395b87cea9497..1c52d1fa6fc7622d5d59152d947cfb91caa6d921 100644 --- a/router1/router1_routingt.txt +++ b/router1/router1_routingt.txt @@ -12,4 +12,4 @@ Codes in []: A - active, N - non-active, B - BFD-tracked, D - Not Tracked, P - p Static local RIB for default -M 10.10.20.176/28 [1/0] via 10.10.20.170 [A] \ No newline at end of file +M 10.10.20.176/29 [1/0] via 10.10.20.170 [A] \ No newline at end of file diff --git a/router2/router2_interface.txt b/router2/router2_interface.txt index af435e19c7d22d02e5fb9ef091a27451c0bb87f7..b243179117dc5630573063d5e67342d08cedc613 100644 --- a/router2/router2_interface.txt +++ b/router2/router2_interface.txt @@ -8,19 +8,19 @@ GigabitEthernet0/1 is up, line protocol is up Auto Duplex, Auto Speed, link type is auto, media type is RJ45 output flow-control is unsupported, input flow-control is unsupported ARP type: ARPA, ARP Timeout 04:00:00 - Last input 00:00:45, output 00:00:08, output hang never + Last input 00:00:35, output 00:00:01, output hang never Last clearing of "show interface" counters never Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0 Queueing strategy: fifo Output queue: 0/40 (size/max) 5 minute input rate 0 bits/sec, 0 packets/sec 5 minute output rate 0 bits/sec, 0 packets/sec - 35 packets input, 12756 bytes, 0 no buffer + 87 packets input, 33972 bytes, 0 no buffer Received 16 broadcasts (0 IP multicasts) 0 runts, 0 giants, 0 throttles 0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored 0 watchdog, 0 multicast, 0 pause input - 177 packets output, 23709 bytes, 0 underruns + 518 packets output, 62681 bytes, 0 underruns 0 output errors, 0 collisions, 2 interface resets 0 unknown protocol drops 0 babbles, 0 late collision, 0 deferred diff --git a/router2/router2_ip.txt b/router2/router2_ip.txt index 30253fb66a60f37eaf47315bcb9ccf82fa983f19..763a65698c471dce03fcc29e84bc5a48830ee7be 100644 --- a/router2/router2_ip.txt +++ b/router2/router2_ip.txt @@ -1,2 +1,3 @@ 10.10.20.170 10.10.20.170 +10.10.20.170 diff --git a/router2/router2_mask.txt b/router2/router2_mask.txt index f04c001f3f7fd5d290d0264b4a2c35f7b159ac42..bae7f4f14cf38bd26b5a1a76feb5cd73cc80d3da 100644 --- a/router2/router2_mask.txt +++ b/router2/router2_mask.txt @@ -1 +1,2 @@ 29 +29 diff --git a/start.sh b/start.sh index a06bb3c345ccd6bea00b0b68df93024faf31d17a..dbcd98b976916cfc26ffd8d9683a88ce34bb9a8d 100755 --- a/start.sh +++ b/start.sh @@ -1,4 +1,8 @@ #!/bin/bash -ansible-playbook ./plays/test.yaml -k -K - +ansible-playbook ./playbooks/get_interfaces.yaml -i ./inventory/hosts.yaml -k -K +ansible-playbook ./playbooks/get_routing_tables.yaml -i ./inventory/hosts.yaml -k -K +./sort.sh +./int.sh +python3 maskrecover.py +ansible-playbook ./playbooks/repair_routing.yaml -i ./inventory/hosts.yaml -k -K