CU HÌNH IGRPLOAD BALANCING

Một phần của tài liệu Quản trị mạng lan wan CCNA trọn bộ phần 1 (Trang 96 - 103)

Giao th c IGRP cho phép chúng ta chia t i khi có nhi u h n m t route đ n cùng m t đích. Ti n ích này giúp chúng ta t o ra m t route d phòng cho route đang s d ng.

IGRP c p nh p route vào b ng đ nh tuy n (trong tr ng h p có nhi u route đ n cùng m t đích) d a vào nguyên t c : n u route nào có metric nh h n h s nhân (c a câu l nh variance (multiplier)) nhân v i metric nh nh t c a các đ ng thì s đ c c p nh t; ng c l i, n u l n h n thì s không đ c c p nh t. M c đ nh h s nhân này đ c thi t l p b ng 1 do đó ch có duy nh t m t route đ c c p nh t. (Các tính metric c a giao th c IGRP đ c đ c p m c 5)

thay đ i h s nhân, chúng ta s d ng l nh : variance (multiplier)

2. Mô t bài lab và đ hình :

hình bài lab nh hình trên. Các c ng serial n i v i nhau b ng cáp serail, c ng ethernet n i v i nhau b ng cáp chéo. Hai router Vsic1 và Vsic3 đ c c u hình thêm interface loopback 0.

3. M c tiêu c a bài lab :

Ph i c u hình sao cho router Vsic1 có 2 route qua m ng 14.1.0.0 c a router Vsic3 và vi c truy n d li u qua m ng 14.1.0.0 ph i đ c chia ra trên 2 route đó.

4. C u hình router :

Vsic1#sh run

Building configuration...

Current configuration : 733 bytes version 12.2 hostname Vsic1 interface Loopback0 ip address 10.1.0.1 255.255.255.0 interface Ethernet0 ip address 12.1.0.1 255.255.255.0 interface Serial0 ip address 11.1.0.1 255.255.255.0

VSIC Education Corporation Trang 97 no fair-queue clockrate 64000 router igrp 1 network 10.0.0.0 network 11.0.0.0 network 12.0.0.0 end Vsic2#sh run Building configuration...

Current configuration : 510 bytes version 12.1 hostname Vsic2 interface Ethernet0 ip address 12.1.0.2 255.255.255.0 interface Serial0 ip address 11.1.0.2 255.255.255.0 interface Serial1 ip address 13.1.0.1 255.255.255.0 router igrp 1 network 11.0.0.0 network 12.0.0.0 network 13.0.0.0 end Vsic3#sh run Building configuration...

Current configuration : 546 bytes version 12.1 hostname Vsic3 interface Loopback0 ip address 14.1.0.1 255.255.255.0 interface Serial0 ip address 13.1.0.2 255.255.255.0 clockrate 64000 router igrp 1 network 13.0.0.0 network 14.0.0.0 end

Sau khi c u hình các router ta ki m tra b ng đnh tuy n c a router Vsic1 đ c k t qu : Vsic1#sh ip route

Gateway of last resort is not set 10.0.0.0/24 is subnetted, 1 subnets

C 10.1.0.0 is directly connected, Loopback0 11.0.0.0/24 is subnetted, 1 subnets

VSIC Education Corporation Trang 98 12.0.0.0/24 is subnetted, 1 subnets

C 12.1.0.0 is directly connected, Ethernet0

I 13.0.0.0/8 [100/8576] via 12.1.0.2, 00:01:01, Ethernet0 I 14.0.0.0/8 [100/9076] via 12.1.0.2, 00:01:01, Ethernet0

Router Vsic1 ch bi t m t đ ng duy nh t đ đ n đ c m ng 13.1.0.0/24 và m ng 14.1.0.0/24 là qua Ethernet0 m c dù ta th c t thì có đ n hai đ ng đ n các m ng đó (qua S0 và E0). Nguyên nhân là h s variance m c đnh là 1. Do đó đ có đ c hai đ ng, ta ph i c u hình l i h s variance nh sau :

Vsic1#conf t

Vsic1(config)#router igrp 1

Vsic1(config-router)#variance 2

Ki m tra l i b ng đnh tuy n c a router Vsic1 : Vsic1#sh ip route

Gateway of last resort is not set 10.0.0.0/24 is subnetted, 1 subnets

C 10.1.0.0 is directly connected, Loopback0 11.0.0.0/24 is subnetted, 1 subnets

C 11.1.0.0 is directly connected, Serial0 12.0.0.0/24 is subnetted, 1 subnets

C 12.1.0.0 is directly connected, Ethernet0

I 13.0.0.0/8 [100/8576] via 12.1.0.2, 00:00:26, Ethernet0 [100/10476] via 11.1.0.2, 00:00:26, Serial0 I 14.0.0.0/8 [100/9076] via 12.1.0.2, 00:00:26, Ethernet0 [100/10976] via 11.1.0.2, 00:00:26, Serial0

Trong b ng đnh tuy n c a router Vsic1 đã có đ c hai đ ng đ n m ng 13.1.0.0/24 và hai đ ng đ n m ng 14.1.0.0/24 (qua S0 và qua E0).

Nguyên nhân là do các route qua S0 c a Vsic1 có metric nh h n variance nhân v i metric

nh nh t gi a hai đ ng. (Tham kh o m c Cách tính metric c a giao th c IGRP)

10476 < 8576*2 (= 17152) 10976 < 9076*2 (= 18152)

Bây gi chúng ta s ki m tra vi c chia t i c a Vsic1. Chúng ta nh p l nh sh ip route

14.1.0.1 đ xem route đ n host 14.1.0.1 : Vsic1#sh ip route 14.1.0.1 Routing entry for 14.0.0.0/8

Known via "igrp 1", distance 100, metric 9076 Redistributing via igrp 1

Advertised by igrp 1 (self originated)

Last update from 11.1.0.2 on Serial0, 00:00:02 ago Routing Descriptor Blocks:

* 12.1.0.2, from 12.1.0.2, 00:00:02 ago, via Ethernet0 Route metric is 9076, traffic share count is 1

Total delay is 26000 microseconds, minimum bandwidth is 1544 Kbit Reliability 255/255, minimum MTU 1500 bytes

Loading 1/255, Hops 1

VSIC Education Corporation Trang 99 Route metric is 10976, traffic share count is 1

Total delay is 45000 microseconds, minimum bandwidth is 1544 Kbit Reliability 255/255, minimum MTU 1500 bytes

Loading 1/255, Hops 1

Route đ n host 14.1.0.1 có hai đ ng (đ c tô đ m) và d u * đánh d u route s s d ng cho l n g i d li u k .

T router Vsic1, ta nh p l nh ping 14.1.0.1 Vsic1#ping 14.1.0.1

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 14.1.0.1, timeout is 2 seconds: !!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 32/44/60 ms Xem l i route đ n host 14.1.0.1 b ng l nh sh ip route 14.1.0.1. Lúc này ta th y route th hai đã đ c đánh d u do router th c hi n vi c chia t i qua hai đ ng đ n m ng 14.1.0.0/24

Vsic1#sh ip route 14.1.0.1 Routing entry for 14.0.0.0/8

Known via "igrp 1", distance 100, metric 9076 Redistributing via igrp 1

Advertised by igrp 1 (self originated)

Last update from 11.1.0.2 on Serial0, 00:00:17 ago Routing Descriptor Blocks:

12.1.0.2, from 12.1.0.2, 00:00:18 ago, via Ethernet0

Route metric is 9076, traffic share count is 1

Total delay is 26000 microseconds, minimum bandwidth is 1544 Kbit Reliability 255/255, minimum MTU 1500 bytes

Loading 1/255, Hops 1

* 11.1.0.2, from 11.1.0.2, 00:00:17 ago, via Serial0

Route metric is 10976, traffic share count is 1

Total delay is 45000 microseconds, minimum bandwidth is 1544 Kbit Reliability 255/255, minimum MTU 1500 bytes

Loading 1/255, Hops 1

Bây gi chúng ta s kh o sát vi c c p nh t route vào b ng đnh tuy n n u nh có nhi u h n route đ n cùng m t đích.

Chúng ta s kh o sát b ng cách thay đ i metric c a route qua S0. C u hình nh sau : Vsic1#conf t

Vsic1(config)#in s0

Vsic1(config-if)#bandwidth 56 C u hình bandwidth c a S0 b ng 56 kbps

Xem l i b ng đnh tuy n c a router Vsic1 : Vsic1#sh ip route

Gateway of last resort is not set 10.0.0.0/24 is subnetted, 1 subnets

C 10.1.0.0 is directly connected, Loopback0 11.0.0.0/24 is subnetted, 1 subnets

C 11.1.0.0 is directly connected, Serial0 12.0.0.0/24 is subnetted, 1 subnets

VSIC Education Corporation Trang 100

I 13.0.0.0/8 [100/8576] via 12.1.0.2, 00:00:03, Ethernet0 I 14.0.0.0/8 [100/9076] via 12.1.0.2, 00:00:03, Ethernet0

Router Vsic1 gi ch còn duy nh t m t đ ng đ n m ng 13.1.0.0/24 và m t đ ng đ n m ng 14.1.0.0/24. Do lúc này route đ n hai m ng đó qua S0 c a Vsic1 có metric l n h n variance nhân v i metric nh nh t gi a hai đ ng.

5. Cách tính metric c a giao th c IGRP :

Metric = [K1 * Bandwidth + (K2 * Bandwidth)/(256−load) + K3*Delay] * [K5/(reliability + K4)]

K1 : ng v i Bandwidth K3 : ng v i Delay

N u K5 = 0 thì [K5/(reliability + K4)] không dùng trong công th c. M c đnh K1 = K3 = 1 , K2 = K4 = K5 = 0. Khi đó cơng th c là :

Metric = Bandwidth + Delay

Xác đnh Bandwidth trong công th c trên, ta l y 107 chia cho giá tr bandwidth nh nh t. Giá tr delay đ c xác đnh b ng cách l y t ng giá tr delay chia 10. Giá tr bandwidth nh nh t và t ng giá tr delay đ c tìm th y trong k t qu c a các câu l nh show ip interface và show ip route ip address

d :

Vsic1#sh ip route 14.1.0.1 Routing entry for 14.0.0.0/8 Routing Descriptor Blocks:

* 12.1.0.2, from 12.1.0.2, 00:00:02 ago, via Ethernet0 (1) Route metric is 9076, traffic share count is 1

Total delay is 26000 microseconds, minimum bandwidth is 1544 Kbit Reliability 255/255, minimum MTU 1500 bytes

Loading 1/255, Hops 1

11.1.0.2, from 11.1.0.2, 00:00:02 ago, via Serial0 (2) Route metric is 10976, traffic share count is 1

Total delay is 45000 microseconds, minimum bandwidth is 1544 Kbit Reliability 255/255, minimum MTU 1500 bytes

Loading 1/255, Hops 1

K t qu :

Metric c a route (1) = 10000000/1544 + 26000/10 = 9076 Metric c a route (2) = 10000000/1544 + 45000/10 = 10976

6. T th c hành b ng Dynagen

Ta ch y file lab15eigrpload.net và file lab15igrp.net. N u router không h tr giao th c đnh tuy n IGRP nên ta có th s d ng giao th c EIGRP đ th c hành. Tuy nhiên cách tính metric c a EIGRP b ng cách tính c a IGRP*256. Cách c u hình giao th c EIGRP t ng t nh c u hình c a IGRP.

VSIC Education Corporation Trang 101 Sau khi c u hình xong ta ki m tra k t qu t i router VSIC1

Gi ng nh tr ng h p c a IGRP( EIGRP c ng s d ng h s variance là 2) t VSIC1 đ n các m ng 13.0.0.0 và 14.0.0.0 b ng 2 đ ng qua s1/0 và Fa0/0. Ta ki m tra l i cách tính tốn c a EIGRP b ng l nh sau:

VSIC Education Corporation Trang 102 C u hình tham kh o: VSIC1#show run Building configuration... interface Loopback0 ip address 10.0.1.1 255.255.255.0 ! interface FastEthernet0/0 ip address 12.0.1.1 255.255.255.0 duplex auto speed auto ! interface Serial1/0 ip address 11.0.1.1 255.255.255.0 ! router eigrp 100 variance 2 network 10.0.0.0 network 11.0.0.0 network 12.0.0.0 auto-summary ! ip http server no ip http secure-server ip classless

VSIC Education Corporation Trang 103

BÀI 16: DISCONTIGOUS NETWORKS 1. Gi i thi u :

Một phần của tài liệu Quản trị mạng lan wan CCNA trọn bộ phần 1 (Trang 96 - 103)

Tải bản đầy đủ (PDF)

(127 trang)