Thông tin tài liệu
Giáo trình thực hành BSCI Chương 5 – Route Optimization 152 C C h h ư ư ơ ơ n n g g 5 5 - - R R O O U U T T E E O O P P T T I I M M I I Z Z A A T T I I O O N N B B à à i i 5 5 . . 1 1 R R e e d d i i s s t t r r i i b b u u t t e e g g i i ữ ữ a a R R I I P P v v à à E E I I G G R R P P 5 5 . . 1 1 . . 1 1 S S ơ ơ đ đ ồ ồ l l u u ậ ậ n n l l ý ý S0/3/1 S0/3/0 S0/0/1 10.1.102.0/29 10.1.203.0/29 Lo0: 10.2.2.0/24 R1 R3 R2 S0/3/0 Lo1 : 192.168.1.0/24 Lo2 : 192.168.2.0/24 Lo3 : 192.168.3.0/24 Lo4 : 192.168.4.0/24 Lo5 : 192.168.5.0/24 Lo6 : 192.168.6.0/24 Lo7 : 192.168.7.0/24 Lo8 : 192.168.8.0/24 EIGRP 100 RIP v2 Hình 5.1.1-1: Hình vẽ sơ đồ luận lý 5 5 . . 1 1 . . 2 2 M M ụ ụ c c t t i i ê ê u u c c ủ ủ a a b b à à i i t t h h ự ự c c h h à à n n h h Redistribute RIP routes vào EIGRP Redistribute EIGRP routes vào RIP. 5 5 . . 1 1 . . 3 3 C C ấ ấ u u h h ì ì n n h h v v à à h h ì ì n n h h v v ẽ ẽ m m i i n n h h h h ọ ọ a a Bước 1: Cấu hình cơ bản cho R1, R2, R3. Giáo trình thực hành BSCI Chương 5 – Route Optimization 153 R1 Router(config)#hostname R1 R1(config)#enable password cisco R1(config)#no ip domain-lookup R1(config)#banner motd ^C R1^C R1(config)#line console 0 R1(config-line)# logging synchronous R1(config-line)# password cisco R1(config-line)# login R1(config)#line vty 0 4 R1(config-line)# password cisco R1(config-line)# login R1(config)#interface Serial 0/3/0 R1(config-if)# ip address 10.1.102.1 255.255.255.248 R1(config-if)#clock rate 64000 R1(config-if)#no shutdown R1(config)#interface loopback 5 R1(config-if)#ip address 192.168.5.1 255.255.255.0 R1(config-if)#exit R1(config)#interface loopback 6 R1(config-if)#ip address 192.168.6.1 255.255.255.0 R1(config-if)#exit R1(config)#interface loopback 7 R1(config-if)#ip address 192.168.7.1 255.255.255.0 R1(config-if)#exit R1(config)#interface loopback 8 R1(config-if)#ip address 192.168.8.1 255.255.255.0 R1(config-if)#exit R2 Router(config)#hostname R2 R2(config)#enable password cisco R2(config)#no ip domain-lookup R2(config)#banner motd ^C R2^C R2(config)#line console 0 R2(config-line)# logging synchronous R2(config-line)# password cisco R2(config-line)# login R2(config)#line vty 0 4 Giáo trình thực hành BSCI Chương 5 – Route Optimization 154 R2(config-line)# password cisco R2(config-line)# login R2(config)#interface Serial 0/3/0 R2(config-if)#ip address 10.1.203.1 255.255.255.248 R2(config-if)#clock rate 64000 R2(config-if)#no shutdown R2(config)#interface serial 0/3/1 R2(config-if)#ip address 10.1.102.2 255.255.255.248 R2(config-if)#no shutdown R2(config)#interface loopback 0 R2(config-if)#ip address 10.2.2.1 255.255.255.0 R2(config-if)#exit R3 Router(config)#hostname R3 R3(config)#enable password cisco R3(config)#no ip domain-lookup R3(config)#banner motd ^C R3^C R3(config)#line console 0 R3(config-line)# logging synchronous R3(config-line)# password cisco R3(config-line)# login R3(config)#line vty 0 4 R3(config-line)# password cisco R3(config-line)# login R3(config)#interface Serial 0/0/1 R3(config-if)# ip address 10.1.203.2 255.255.255.248 R3(config-if)#no shutdown R3(config)#interface loopback 1 R3(config-if)# ip address 192.168.1.1 255.255.255.0 R3(config-if)#exit R3(config)#interface loopback 2 R3(config-if)# ip address 192.168.2.1 255.255.255.0 R3(config-if)#exit R3(config)#interface loopback 3 R3(config-if)# ip address 192.168.3.1 255.255.255.0 R3(config-if)#exit R3(config)#interface loopback 4 R3(config-if)# ip address 192.168.4.1 255.255.255.0 Giáo trình thực hành BSCI Chương 5 – Route Optimization 155 R3(config-if)#exit Bước 2: Cấu hình Ripv2 và EIGRP như trên hình Cấu hình Ripv2 trên R1 R1(config)#router rip R1(config-router)#version 2 R1(config-router)#no auto-summary R1(config-router)#network 10.1.102.0 R1(config-router)#network 192.168.5.0 R1(config-router)#network 192.168.6.0 R1(config-router)#network 192.168.7.0 R1(config-router)#network 192.168.8.0 R1(config-router)#passive-interface loopback 5 R1(config-router)#passive-interface loopback 6 R1(config-router)#passive-interface loopback 7 R1(config-router)#passive-interface loopback 8 R1(config-router)#end Cấu hình Ripv2 trên R2 R2(config)#router rip R2(config-router)#version 2 R2(config-router)#no auto-summary R2(config-router)#network 10.0.0.0 R2(config-router)#passive-interface loopback 0 R2(config-router)#end Giáo trình thực hành BSCI Chương 5 – Route Optimization 156 Kiểm tra cấu hình RIP trên R1 và R2 Hình 5.1.3-1: Show ip protocols trên R1 Hình 5.1.3-2: Show ip rip database trên R1 Hình 5.1.3-3: Show ip route rip trên R1 Giáo trình thực hành BSCI Chương 5 – Route Optimization 157 Hình 5.1.3-4: Show ip protocols trên R2 Hình 5.1.3-5: Show ip rip database trên R2 Hình 5.1.3-6: Show ip route rip trên R2 Cấu hình EIGRP trên R2 R2(config)#router eigrp 1 R2(config-router)#network 10.1.203.1 0.0.0.0 R2(config-router)#no auto-summary R2(config-router)#end Cấu hình EIGRP trên R3 R3(config)#router eigrp 1 R3(config-router)#network 10.1.203.2 0.0.0.0 R3(config-router)#network 192.168.1.1 0.0.0.0 R3(config-router)#network 192.168.2.1 0.0.0.0 Giáo trình thực hành BSCI Chương 5 – Route Optimization 158 R3(config-router)#network 192.168.3.1 0.0.0.0 R3(config-router)#network 192.168.4.1 0.0.0.0 R3(config-router)#passive-interface default R3(config-router)#no passive-interface Serial 0/0/1 R3(config-router)#no auto-summary R3(config-router)#end Kiểm tra cấu hình EIGRP trên R2 và R3 Hình 5.1.3-7: Show ip eigrp neighbors trên R2 Hình 5.1.3-8: Show ip protocols trên R2 Hình 5.1.3-9: Show ip rotue eigrp trên R2 Hình 5.1.3-10: Show ip eigrp neighbors trên R3 Giáo trình thực hành BSCI Chương 5 – Route Optimization 159 Hình 5.1.3-11: Show ip protocols trên R2 Bước 3: Redistribute giữa 2 routing protocols Redistribute từ RIP qua EIGRP trên R2 R2(config)#router eigrp 1 R2(config-router)#redistribute rip R2(config-router)#default-metric 1000 100 250 100 1500 R2(config-router)#end Redistribute từ EIGRP qua RIP trên R2 R2(config)#router rip R2(config-router)#redistribute eigrp 1 metric 3 R2(config-router)#end Giáo trình thực hành BSCI Chương 5 – Route Optimization 160 Kiểm tra cấu hình sau khi redistribute giữa RIP và EIGRP Hình 5.1.3-12: Show ip route trên R1 sau khi redistribute Hình 5.1.3-13: Show ip route trên R2 sau khi redistribute Giáo trình thực hành BSCI Chương 5 – Route Optimization 161 Hình 5.1.3-14: Show ip route trên R3 sau khi redistribute [...]... R1(config-router)#passive-interface default R1(config-router)#no passive-interface Serial 0/3/0 R1(config-router)#no auto-summary R1(config-router)#end Cấu hình EIGRP cho R2 R2(config)#router eigrp 100 R2(config-router)#network 10.2.2.1 0.0.0.0 R2(config-router)#network 10.1.102.2 0.0.0.0 R2(config-router)#passive-interface loopback 0 R2(config-router)#no auto-summary R2(config-router)#end 165 Giáo trình thực. .. R2 R2(config)#router ospf 100 R2(config-router)#router-id 10.4.4.1 R2(config-router)#network 10.1.203.1 0.0.0.0 area 0 R2(config-router)#network 10.4.4.1 0.0.0.0 area 10 R2(config-router)#passive-interface loopback 1 R2(config-router)#end Cấu hình OSPF cho R3 R3(config)#router ospf 100 R3(config-router)#router-id 10.3.3.1 R3(config-router)#network 10.1.203.2 0.0.0.0 area 0 R3(config-router)#network... R3(config-router)#passive-interface default R3(config-router)#no passive-interface S0/0/1 R3(config-router)#end 167 Giáo trình thực hành BSCI Chương 5 – Route Optimization Kiểm tra cấu hình OSPF trên R2 và R3 Hình 5.2. 3-7 : Show ip ospf neighbor trên R2 Hình 5.2. 3-8 : Show ip protocols trên R2 Hình 5.2. 3-9 : Show ip route ospf trên R2 Hình 5.2. 3-1 0: Show ip ospf neighbor trên R3 168 Giáo trình thực hành BSCI Chương. .. 192.168.12.0 R1(config-router)# network 192.168.13.0 R1(config-router)# end Cấu hình trên R2 R2(config)#router rip R2(config-router)# version 2 R2(config-router)# network 172.16.0.0 R2(config-router)# network 192.168.21.0 R2(config-router)# network 192.168.22.0 R2(config-router)# network 192.168.23.0 R2(config-router)# end Kiểm tra cấu hình Hình 5.5. 3-1 : Show ip route trên R1 Hình 5.5. 3-2 Show ip route trên R2... OSPF vào RIP R2(config)#router rip R2(config-router)# redistribute ospf 100 metric 5 match internal R2(config-router)#end Hình 5.3. 3-4 : Show ip route rip trên R1 176 Giáo trình thực hành BSCI Chương 5 – Route Optimization Bước 5: Redistribute RIP vào OSPF với metric-type 1 R2(config)#router ospf 100 R2(config-router)# no redistribute rip metric 1800 metric-type 2 subnets R2(config-router)# redistribute... 0.0.0.255 area 0 R3(config-router)#end Kiểm tra cấu hình 175 Giáo trình thực hành BSCI Chương 5 – Route Optimization Hình 5.3. 3-1 : Show ip route trên R1 Hình 5.3. 3-2 : Show ip route trên R3 Bước 3: Redistribute RIP vào OSPF với metric-type 2 R2(config)#router ospf 100 R2(config-router)# redistribute rip metric 1800 metric-type 2 subnets R2(config-router)#end Hình 5.3. 3-3 : Show ip route ospf trên R3 Bước... Giáo trình thực hành BSCI Chương 5 – Route Optimization R1(config)#access-list 1 permit 192.168.11.0 0.0.0.255 R1(config)#access-list 1 permit 192.168.12.0 0.0.0.255 R1(config)#router rip R1(config-router)# distribute-list 1 out Serial0/0 Hình 5.5. 3-3 : Show run | begin router trên R1 Hình 5.5. 3-4 : Show ip route trên R2 sau khi Distribute List 186 Giáo trình thực hành BSCI Chương 5 – Route Optimization. .. 2 R3(config-if)# ip address 192.168.32.1 255.255.255.0 R3(config-if)#exit Bước 2: Cấu hình RIP và OSPF Cấu hình trên R1 R1(config)#router rip R1(config-router)#version 2 R1(config-router)#no auto-summary R1(config-router)#network 172.16.0.0 R1(config-router)#network 192.168.11.0 R1(config-router)#network 192.168.12.0 R1(config-router)#end Cấu hình trên R2 R2(config)#router rip R2(config-router)#version... R2(config-router)#version 2 R2(config-router)#no auto-summary R2(config-router)#network 172.16.0.0 R2(config-router)#end R2(config)#router ospf 100 R2(config-router)#network 172.16.23.0 0.0.0.3 area 0 R2(config-router)#end Cấu hình trên R3 R3(config)#router ospf 100 R3(config-router)#network 172.16.23.0 0.0.0.3 area 0 R3(config-router)#network 192.168.31.0 0.0.0.255 area 0 R3(config-router)#network 192.168.32.0... R1(config)#router ospf 1 R1(config-router)#distance 90 10.2.2.0 0.0.0.255 R1(config-router)#exit Chỉnh sửa trên R2 R2(config)#router ospf 1 R2(config-router)#distance 85 10.1.1.0 0.0.0.255 R2(config-router)#exit 180 Giáo trình thực hành BSCI Chương 5 – Route Optimization Kiểm tra cấu hình sau khi chỉnh sửa Hình 5.4.3 -5 : Show ip protocols sau khi chỉnh Distance trên R1 Hình 5.4. 3-6 : Show ip route sau khi chỉnh Distance
Ngày đăng: 08/05/2014, 13:41
Xem thêm: Chương 5: Route optimization - Thực hành, Chương 5: Route optimization - Thực hành