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 EtherChannel

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

  • Lab EtherChannel

    1. LAB: Cấu hình Etherchannel

    Click image for larger version

Name:	dataurl944320.jpg
Views:	2
Size:	19.0 KB
ID:	430025

    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







    Đặng Quang Minh, CCIEx2#11897 (Enterprise Infrastructure, Wireless), DEVNET, CCSI#31417

    Email : dangquangminh@vnpro.org
    https://www.facebook.com/groups/vietprofessional/
Working...
X