• If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.
Xin chào ! Nếu đây là lần đầu tiên bạn đến với diễn đàn, xin vui lòng danh ra một phút bấm vào đây để đăng kí và tham gia thảo luận cùng VnPro.

Announcement

Collapse
No announcement yet.

LAB 3-12: Redistribute giữa EIGRP và IGRP (with file .net)

Collapse
This is a sticky topic.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • LAB 3-12: Redistribute giữa EIGRP và IGRP (with file .net)

    Nguồn: Sách CCNA Labpro

    LAB 3-12: REDISTRIBUTE GIỮA EIGRP & IGRP


    Mô tả:
    - Giao thức định tuyến EIGRP được sử dụng trên Router A, B, C. Router B đóng vai trò là DCe cung cấp xungclock hoạt động cho router A và C.
    - Giao thức định tuyến IGRP được sử dụng trên Router C, D. router C đóng vai trò là DCE cung cấp xung clock hoạt động cho router D.
    - Bài Lab này sẽ mô tả cách thức redistribution giữa IGRP & EIGRP.
    Cấu hình:
    Router A:
    !
    hostname RouterA
    !
    interface Loopback0
    ip address 192.1.1.1 255.255.255.0
    !
    interface Serial0
    ip address 192.1.1.1 255.255.255.0
    !
    router eigrp 100
    network 192.1.1.0
    network 1.0.0.0
    !
    end

    Router B:
    !
    hostname RouterB
    !
    interface Serial0
    ip address 192.1.1.2 255.255.255.0
    clock rate 64000
    !
    interface Serial1
    ip address 194.1.1.2 255.255.255.0
    clock rate 64000
    !
    router eigrp 100
    network 192.1.1.0
    network 194.1.1.0
    !
    end

    Router C:
    !
    hostname RouterC
    !
    interface Serial0
    ip address 194.1.1.1 255.255.255.0
    !
    interface Serial1
    ip address 195.1.1.1 255.255.255.0
    clock rate 64000
    !
    router eirgp 100
    network 194.1.1.0
    !
    router igrp 200
    network 195.1.1.0
    !
    end

    Router D:
    !
    hostname RouterD
    !
    interface Loopback0
    ip address 4.4.4.4 255.255.255.0
    !
    interface Serial0
    ip address 195.1.1.2 255.255.255.0
    !
    router igrp 200
    network 195.1.1.0
    network 4.0.0.0
    !
    end

    Thực hiện:
    1. Cấu hình trên Router A:
    Router> en
    Router# conf t
    Router(config)# hostname RouterA
    RouterA (config)# int lo0
    RouterA (config-if)# ip addr 1.1.1.1 255.255.255.0
    RouterA (config-if)# int s0
    RouterA (config-if)# ip addr 192.1.1.1 255.255.255.0
    RouterA (config-if)# no shut
    RouterA (config-if)#exit

    RouterA (config)# router eigrp 100
    RouterA (config-router)# network 192.1.1.0
    RouterA (config-router)# network 1.0.0.0

    RouterA (config-router)# end
    RouterA# copy run start
    RouterA#

    2. Cấu hình trên Router B:
    Router(config)# hostname RouterB
    RouterB (config)# int s0
    RouterB (config-if)# ip addr 192.1.1.2 255.255.255.0
    RouterB (config-if)# clock rate 64000
    RouterB (config-if)# no shut
    RouterB (config-if)# int s1
    RouterB (config-if)# ip addr 194.1.1.2 255.255.255.0
    RouterB (config-if)# clock rate 64000
    RouterB (config-if)# no shut
    RouterB (config-if)#exit

    RouterB (config)# router eigrp 100
    RouterB (config-router)# network 192.1.1.0
    RouterB (config-router)# network 194.1.1.0
    RouterB (config-router)# end
    RouterB# copy run start
    RouterB#

    3. Cấu hình trên Router C:
    Router> en
    Router# conf t
    Router(config)# hostname RouterC
    RouterC (config)# int s0
    RouterC (config-if)# ip addr 194.1.1.1 255.255.255.0
    RouterC (config-if)# no shut
    RouterC (config-if)# int s1
    RouterC (config-if)# ip addr 195.1.1.1 255.255.255.0
    RouterC (config-if)# clock rate 64000
    RouterC (config-if)# no shut
    RouterC (config-if)#exit
    RouterC (config)# router eigrp 100
    RouterC (config-router)# network 194.1.1.0
    RouterC (config-router)# router igrp 200
    RouterC (config-router)# network 195.1.1.0
    RouterC (config-router)# end
    RouterC# copy run start
    RouterC#

    4. Cấu hình trên Router D:
    Router> en
    Router# conf t
    Router(config)# hostname RouterD
    RouterD(config)# int lo0
    RouterD(config-if)# ip addr 4.4.4.4 255.255.255.0
    RouterD(config-if)# int s0
    RouterD(config-if)# ip addr 195.1.1.2 255.255.255.0
    RouterD(config-if)# no shut
    RouterD(config-if)#exit
    RouterD(config)# router igrp 200
    RouterD(config-router)# network 195.1.1.0
    RouterD(config-router)# network 4.0.0.0
    RouterD(config-router)# end
    RouterD# copy run start
    RouterD#

    Kiểm tra:
    1. Xem bảng định tuyến trên router C bằng lệnh show ip route
    RouterC# show ip route
    D 1.0.0.0/8 [90/2809856] via 194.1.1.2, 00:00:55, Serial0
    I 4.0.0.0/8 [100/8976] via 195.1.1.2, 00:00:10, Serial1
    D 192.1.1.0/24 [90/2681856] via 194.1.1.2, 00:00:55, Serial0
    C 194.1.1.0/24 is directly connected, Serial0
    C 195.1.1.0/24 is directly connected, Serial1
    RouterC#
    Chú ý rằng Router C học các route của router A qua giao thức định tuyến EIGRP.

    2. Xem bảng định tuyến trên router B bằng lệnh show ip route
    RouterB# show ip route
    D 1.0.0.0/8 [90/2297856] via 192.1.1.1, 00:01:50, Serial0
    C 192.1.1.0/24 is directly connected, Serial0
    C 194.1.1.0/24 is directly connected, Serial1
    RouterB#
    Chú ý rằng Router B không học các route xuất phát từ các mạng được quảng bá bởi giao thức IGRP.

    3. Xem bảng định tuyến trên router D bằng lệnh show ip route
    RouterD# show ip route
    4.0.0.0/24 is subnetted, 1 subnets
    C 4.4.4.0 is directly connected, Loopback0
    C 195.1.1.0/24 is directly connected, Serial0
    RouterD#
    Chú ý:
    - Router B kg học các route xuất phát từ các mạng được quảng bá bởi giao thức IGRP. Tại sao IGRP và EIGRP không thực hiện automatic redistribution? Nguyên do là IGRP và EIGRP có số AS number khác nhau, tính năng automatic resdistribution chỉ thực hiện khi IGRP và EIGRP có cùng số AS number.
    - –EIGRP và IGRP sử dụng metric có cấu trúc giống nhau. Do đó nếu các router chạy IGRP và các router khác chạy EIGRP và cả hai đều có cùng số autonomous system thì thông tin định tuyến sẽ tự động chia sẻ giữa hai hệ thống.
    –EIGRP dùng 32 bit để lưu trữ metric và IGRP dùng 24 bit để lưu trữ metric. Khi đó các tuyến đường EIRGP được chia cho 256 để chuyển về cấu trúc 24 bit của IGRP và các tuyến đường IGRP được nhân cho 256 để chuyển về cấu trúc 32 bit của EIGRP.

    4. Do đó cần thay đổi số AS number của IGRP trên Router C và router D là 100.
    RouterC(config)# no router igrp 200
    RouterC(config)# router igrp 100
    RouterC(config-router)# network 195.1.1.0

    RouterD(config)# no router igrp 200
    RouterD(config)# router igrp 100
    RouterD(config-router)# network 195.1.1.0
    RouterD(config-router)# network 4.0.0.0

    5. Kiểm tra lại bảng định tuyến trên Router D bằng lệnh show ip route
    RouterD# show ip route
    I 1.0.0.0/8 [100/12976] via 195.1.1.1, 00:00:05, Serial0
    4.0.0.0/24 is subnetted, 1 subnets
    C 4.4.4.0 is directly connected, Loopback0
    I 192.1.1.0/24 [100/12476] via 195.1.1.1, 00:00:05, Serial0
    I 194.1.1.0/24 [100/12476] via 195.1.1.1, 00:00:05, Serial0
    RouterD#
    Ta thấy Router D đã học các route xuất phát từ Router A.

    6. Nếu kg thay đổi số AS number của IGRP thì ta có thể thực hiện reditribution từ EIRGP sang IGRP và ngược lại trên Router C.
    RouterC#config t
    Enter configuration commands, one per line. End with CNTL/Z.
    RouterC(config)#router igrp 200
    RouterC(config-router)#redistribute eigrp 100 metric 2000 200 255 1 1500
    RouterC(config-router)#exit
    RouterC(config)#router eigrp 100
    RouterC(config-router)#redistribute igrp 200 metric 2000 200 255 1 1500
    RouterC(config-router)#

    7. Cuối cùng, kiểm tra lại bảng định tuyến để xem sự thay đổi route trên mỗi router.
    Email : vnpro@vnpro.org
    ---------------------------------------------------------------------------------------------------------------
Trung Tâm Tin Học VnPro
149/1D Ung Văn Khiêm P25 Q.Bình thạnh TPHCM
Tel : (08) 35124257 (5 lines)
Fax: (08) 35124314

Home page: http://www.vnpro.vn
Support Forum: http://www.vnpro.org
- Chuyên đào tạo quản trị mạng và hạ tầng Internet
- Phát hành sách chuyên môn
- Tư vấn và tuyển dụng nhân sự IT
- Tư vấn thiết kế và hỗ trợ kỹ thuật hệ thống mạng

Network channel: http://www.dancisco.com
Blog: http://www.vnpro.org/blog
Working...
X