From 6e9deca402d02331d20b3ebe4b65e81c7793a31e Mon Sep 17 00:00:00 2001 From: bmzsombi <bmzsombi@sch.bme.hu> Date: Fri, 26 May 2023 12:08:48 +0200 Subject: [PATCH] start script corrigated --- router1/router1_ip.txt | 1 + router1/router1_mask.txt | 4 ++++ router1/router1_routingt.txt | 2 +- router2/router2_interface.txt | 6 +++--- router2/router2_ip.txt | 1 + router2/router2_mask.txt | 1 + start.sh | 8 ++++++-- 7 files changed, 17 insertions(+), 6 deletions(-) diff --git a/router1/router1_ip.txt b/router1/router1_ip.txt index 504526b..f0b0c6e 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 95daef6..ec7a7d8 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 73a17d4..1c52d1f 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 af435e1..b243179 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 30253fb..763a656 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 f04c001..bae7f4f 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 a06bb3c..dbcd98b 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 -- GitLab