Εργαστήριο Σχεδίασης Δικτύων Υπολογιστών ΘΕΩΡΙΑ 6 ου ΕΡΓΑΣΤΗΡΙΟΥ 1
ΑΣΚΗΣΗ 1 IGRP Υλοποιήστε την παραπάνω συνδεσμολογία Διαμορφώστε τον δρομολογητή 2621B# Router>enable Router#config t Router(config)#hostname 2621B 2621Bconfig-if)#interface serial 0/0 2621Bconfig-if)#clock rate 64000 2621B(config-if)#ip address 172.16.10.1 255.255.255.0 2621B(config-if)#no shutdown 2621Bconfig-if)#interface serial 0/1 2621Bconfig-if)#clock rate 64000 2621B(config-if)#ip address 172.16.20.1 255.255.255.0 2621B(config-if)#exit 2621B(config)#exit 2621B#copy run start Destination filename [startup-config]? [enter] Building configuration... [OK] 2621B# Επιβάλετε σε όλη τη διάταξη δρομολόγηση IGRP και θεωρείστε ότι όλοι οι δρομολογητές ανήκουν στο Αυτόνομο Σύστημα 10 (AS 10). Για τον δρομολογητή 2621 A θα είναι: config t 2621A(config)#router igrp 10 2621A(config-router)#network 172.16.10.0 2621A(config-router)#network 172.16.20.0 2621A(config-router)#ctrl+z Επιβεβαιώστε τη δρομολόγηση με show ip route Για τον δρομολογητή 2621 A θα είναι: show ip route 2
[output cut] 172.16.0.0/24 is subnetted, 2 subnets I 172.16.20.0 [100/160250] via 172.16.10.1, 00:00:14, Serial0/1 C 172.16.10.0 is directly connected, Serial0/1 2621A Το Ι συμβολίζει την υπολογισμένη διαδρομή κατά IGRP Επιβεβαιώστε τη δρομολόγηση με show ip protocol (εδώ διακρίνονται και οι χρονοδιακόπτες, η ανανέωση γίνεται ανά 90 sec) show ip protocol Routing Protocol is "igrp 10" Sending updates every 90 seconds, next due in 25 seconds Invalid after 270 seconds, hold down 270, flushed after 630 Outgoing update filter list for all interfaces is not set Incoming update filter list for all interfaces is not set Default networks flagged in outgoing updates Default networks accepted from incoming updates IGRP metric weight K1=1, K2=0, K3=1, K4=0, K5=0 IGRP maximum hop count 100 IGRP maximum metric variance 1 Redistributing: igrp 10 Routing for networks: 172.16.0.0 Routing information sources: Gateway Distance Last Update 172.16.10.1 100 00:01:05 Distance: <default is 100> Επίσης μπορείτε να διακρίνετε τις ενημερώσεις κάθε φορά με τις εντολές, debug ip igrp events και συνολικά με την debug ip igrp transactions και η απενεργοποίησή των γίνεται με τις εντολές no debug ip igrp events ή undebug all και debug ip igrp transactions ή no debug ip igrp transactions αντίστοιχα. Για τον δρομολογητή 2621 A θα είναι: debug ip igrp events IGRP protocol debugging is on ld23h: IGRP: sending update to 255.255.255.255 via Serial0/1 <172.16.10.2> ld23h: IGRP: Update contains 1 interior, 0 system, and 0 exterior routes. ld23h: IGRP: Total routes in update: 1 debug ip igrp transactions IGRP protocol debugging is on ld23h: IGRP: sending update to 255.255.255.255 via Serial0/1 <172.16.10.2> ld23h: subnet 172.16.10.0, metric=189250 3
ΑΣΚΗΣΗ 2 ΕIGRP Βασικά χαρακτηριστικά του EIGRP είναι: Χρησιμοποιεί αρχές και των 2 μεγάλων κατηγοριών δρομολόγησης, διανύσματος απόστασης και κατάστασης σύνδεσης Η διαχειρίσιμη απόσταση είναι 90 (προφανώς υπερτερεί του RIP που έχει διαχειρίσιμη απόσταση 120) Ο μέγιστος αριθμός αλμάτων είναι 255 (το default είναι 100). Χρησιμοποιεί Αυτόνομα Συστήματα για να επιβάλλει τη δρομολόγησή του Χρησιμοποιεί RTP (Reliable Transport Protocol) και DUAL RTP Υποστηρίζει VLSM (Classless routing protocol), και discontiguous networking όπως το RIPv2 αλλά διαμορφώνεται σαν classful πρωτόκολλο Υποστηρίζει IP V4 και V6, IPX, AppleTalk Υλοποιήστε την παραπάνω συνδεσμολογία Διαμορφώστε τον δρομολογητή R1 Router#conf t Router(config)#hostname R1 R1(config)#int fastethernet 0/0 R1(config-if)#ip address 10.0.0.1 255.255.255.0 R1(config-if)#no shutdown R1(config-if)#end R1(config)#int serial 0/0 R1(config-if)#ip address 172.16.0.1 255.255.255.252 4
R1(config-if)#no shutdown R1(config-if)#^Z Τσεκάρετε το χρονισμό στο σειριακό interface sh controllers serial 0/0 Interface Serial0/0 Hardware is PowerQUICC MPC860 DCE V.35, no clock idb at 0x81081AC4, driver data structure at 0x81084AC0 SCC Registers: και ρυθμίστε ανάλογα: R1(config)#int serial 0/0 R1(config-if)#clock rate 64000 R1(config-if)#^Z Ομοίως και για τον δρομολογητή R2 Επιβάλετε δρομολόγηση ΕIGRP στον δρομολογητή R1 (επιλέγουμε αυθαίρετα έναν επιτρεπτό αριθμό ΑΣ, πχ 100): R1(config)#router eigrp? <1-65535> Autonomous system number R1(config)#router eigrp 100 R1(config-router)#network? A.B.C.D Network number R1(config-router)#network 10.0.0.0 R1(config-router)#network 172.16.0.0 R1(config-router)#^Z Ομοίως και για τον δρομολογητή R2: R2(config)#router eigrp 100 R2(config-router)#network 20.0.0.0 R2(config-router)#network 172.16.0.0 R2(config-router)#end R2# Επιβεβαιώστε τη δρομολόγηση sh ip protocols Routing Protocol is "eigrp 100 " Outgoing update filter list for all interfaces is not set Incoming update filter list for all interfaces is not set Default networks flagged in outgoing updates Default networks accepted from incoming updates 5
EIGRP metric weight K1=1, K2=0, K3=1, K4=0, K5=0 EIGRP maximum hopcount 100 EIGRP maximum metric variance 1 Redistributing: eigrp 100 Maximum path: 4 Routing for Networks: 10.0.0.0/24 172.16.0.0/30 Routing Information Sources: Gateway Distance Last Update 172.16.0.2 90 2024507 Distance: internal 90 external 170 R2#sh ip protocols Routing Protocol is "eigrp 100 " Outgoing update filter list for all interfaces is not set Incoming update filter list for all interfaces is not set Default networks flagged in outgoing updates Default networks accepted from incoming updates EIGRP metric weight K1=1, K2=0, K3=1, K4=0, K5=0 EIGRP maximum hopcount 100 EIGRP maximum metric variance 1 Redistributing: eigrp 100 Maximum path: 4 Routing for Networks: 20.0.0.0/24 172.16.0.0/30 Routing Information Sources: Gateway Distance Last Update 172.16.0.1 90 1640767 Distance: internal 90 external 170 sh ip route Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area * - candidate default, U - per-user static route, o - ODR P - periodic downloaded static route Gateway of last resort is not set C D 10.0.0.0/24 is subnetted, 1 subnets 10.0.0.0 is directly connected, FastEthernet0/0 20.0.0.0/24 is subnetted, 1 subnets 20.0.0.0 [90/20514560] via 172.16.0.2, 00:05:05, Serial0/0 6
172.16.0.0/30 is subnetted, 1 subnets C 172.16.0.0 is directly connected, Serial0/0 R2#show ip route Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area * - candidate default, U - per-user static route, o - ODR P - periodic downloaded static route Gateway of last resort is not set 10.0.0.0/24 is subnetted, 1 subnets D 10.0.0.0 [90/20514560] via 172.16.0.1, 00:06:25, Serial0/0 20.0.0.0/24 is subnetted, 1 subnets C 20.0.0.0 is directly connected, FastEthernet0/0 172.16.0.0/30 is subnetted, 1 subnets C 172.16.0.0 is directly connected, Serial0/0 R2# Επίσης σε κάθε δρομολογητή μπορούμε να δούμε τον κατά EIGRP πίνακα όλων των άμεσα συνδεδεμένων γειτόνων δρομολογητών αυτού: show ip eigrp neighbor IP-EIGRP neighbors for process 100 H Address Interface HoldUptime SRTT RTO Q Seq Type (sec) (ms) cnt Num 0 172.16.0.2 S0/0 12 02:28:04 20 200 0 1 Τέλος σε κάθε δρομολογητή μπορούμε να δούμε όλη την τοπολογία όπως την βλέπει ο καθένας ξεχωριστά: show ip eigrp topology IP-EIGRP Topology Table for AS(100)/ID(172.16.0.1) Codes: P - Passive, A - Active, U - Update, Q - Query, R - Reply, r - reply Status, s - sia Status P 172.16.0.2/24, 1 successors, FD is 2172416 via 172.16.20.1 (2172416/28160), Serial0/0 P 172.16.0.1/24, 1 successors, FD is 2172416 via Connected, Serial0/0 Επιβεβαιώστε τη σύνδεση μεταξύ των 2 hosts: PC1>ipconfig 7
IP Address...: 10.0.0.50 Subnet Mask...: 255.255.255.0 Default Gateway...: 10.0.0.1 PC1>ping 20.0.0.50 Pinging 20.0.0.50 with 32 bytes of data: Reply from 20.0.0.50: bytes=32 time=12ms TTL=126 Reply from 20.0.0.50: bytes=32 time=24ms TTL=126 Reply from 20.0.0.50: bytes=32 time=18ms TTL=126 Reply from 20.0.0.50: bytes=32 time=18ms TTL=126 Ping statistics for 20.0.0.50: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 12ms, Maximum = 24ms, Average = 18ms PC1> PC2>ipconfig IP Address...: 20.0.0.50 Subnet Mask...: 255.255.255.0 Default Gateway...: 20.0.0.1 PC2>ping 10.0.0.1 Pinging 10.0.0.1 with 32 bytes of data: Reply from 10.0.0.1: bytes=32 time=8ms TTL=254 Reply from 10.0.0.1: bytes=32 time=9ms TTL=254 Reply from 10.0.0.1: bytes=32 time=11ms TTL=254 Reply from 10.0.0.1: bytes=32 time=13ms TTL=254 Ping statistics for 10.0.0.1: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 8ms, Maximum = 13ms, Average = 10ms 8
ΕΞΑΣΚΗΣΗ στο σπιτι με IGRP ή EIGRP 9