• 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: Cấu hình etherchannel

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Lab: Cấu hình etherchannel



    Hình 7: LAB cấu hình Etherchannel



    Yêu cầu:
    1. Chú ý xóa toàn bộ cấu hình của 2 Switch trước khi bắt đâu LAB
    2. Cấu hình Etherchannel với các yêu cầu sau:
      1. Dùng PagP:
      2. Dùng LACP:
      3. Dùng On:
      4. Cấu hình cân bằng tải dùng: Source MAC, Destination MAC

    Gợi ý:

    Các cổng thành viên trong Etherchannel phải hoàn toàn giống nhau thì channel mới tạo được (cùng speed, duplex, cùng layer 2, cùng layer 3, …).

    2a: PagP hoạt động ở 2 mode: Desirable (chủ động), Auto (bị động). 2 Switch cấu hình PagP có thể kết hợp giữa các mode sau: Desirable-Desirable, Desirable-Auto.

    Switch(config)# interface range f0/1 - 4

    Switch(config-if-range)# channel-protocol PagP

    Switch(config-if-range)# channel-group 1 mode {Desirable | Auto}

    2b: LACP hoạt động ở 2 mode: Active (chủ động), Passive (bị động). 2 Switch cấu hình LACP có thể kết hợp giữa các mode sau: Active-Active, Active-Passive.

    Switch(config)# interface rang f0/1 – 4

    Switch(config-if-range)# channel-protocol LACP

    Switch(config-if-range)# channel-group 1 mode {Active | Passive}

    2c: Mode On ép buộc khởi tạo etherchannel (tương tự trunk mode on). Nếu dùng mode on hai Switch phải cùng dùng etherchannel mode on để khởi tạo etherchannel. Dùng lệnh sau để cấu hình Etherchannel Mode On:

    Switch(config)# interface rang f0/1 – 4

    Switch(config-if-range)# channel-group 1 mode on

    2d: Trên Switch 2950, 3550 chỉ có thể cấu hình cân bằng tải dựa trên: Source MAC Address hoặc Destination MAC Address. Trên Switch 3560 có thể cấu hình loadbalance dựa trên: Source MAC Address, Destination MAC Address, Source/Destination MAC Address, Source IP Address, Destination IP Address, Source/Destination IP Address. Dùng lệnh sau để cấu hình loadbalance:

    Switch(config)# port-channel load-balance {src-mac | dst-mac | src-dst-mac | src-ip | dst-ip | src-dst-ip}





    Cấu hình đầy đủ:

    !2a:

    !SW1 va SW2 mode Desirable

    !SW1

    !

    configure terminal

    !

    interface range fastEthernet0/1 - 4

    channel-protocol PagP

    channel-group 1 mode desirable

    !

    end




    !SW2

    !

    configure terminal

    !

    interface range fastEthernet0/1 - 4

    channel-protocol PagP

    channel-group 1 mode desirable

    !

    end




    !SW1 mode Desirable, SW2 mode Auto

    !SW1

    !

    configure terminal

    !

    interface range fastEthernet0/1 - 4

    channel-protocol PagP

    channel-group 1 mode desirable

    !

    end




    !SW2

    !

    configure terminal

    !

    interface range fastEthernet0/1 - 4

    channel-protocol PagP

    channel-group 1 mode auto

    !

    end




    !2b:

    !SW1 va SW2 mode active

    !SW1

    !

    configure terminal

    !

    interface range fastEthernet0/1 - 4

    channel-protocol LACP

    channel-group 1 mode active

    !

    end




    !SW2

    !

    configure terminal

    !

    interface range fastEthernet0/1 - 4

    channel-protocol LACP

    channel-group 1 mode active

    !

    end




    !SW1 mode active, SW2 mode passive:

    !SW1

    !

    configure terminal

    !

    interface range fastEthernet0/1 - 4

    channel-protocol LACP

    channel-group 1 mode active

    !

    end




    !SW2

    configure terminal

    !

    interface range fastEthernet0/1 - 4

    channel-protocol LACP

    channel-group 1 mode passive

    !

    end




    !2c:

    !SW1 va SW2 mode on:

    !SW1:

    !

    configure terminal

    !

    interface range fastEthernet0/1 - 4

    channel-group 1 mode on

    !

    end




    !SW2:

    configure terminal

    !

    interface range fastEthernet0/1 - 4

    channel-group 1 mode on

    !

    end




    !2d:

    !SW1 loadbalance dựa trên Source MAC, SW2 loadbalance dựa trên Destination MAC

    !SW1:

    !

    configure terminal

    !

    port-channel load-balance src-mac

    !

    end







    !SW2:

    configure terminal

    !

    port-channel load-balance dst-mac

    !

    end




    !Kiem tra:

    !xem thông tin etherchannel

    # show etherchannel summary

    # show etherchannel 1 detail

    # show pagp 1 counters/internal/neighbor

    # show lacp 1 counters/internal/neighbor
    ​[/QUOTE]
    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