• 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.

[Help] Ethernet Channel & Loadbalancing

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

  • [Help] Ethernet Channel & Loadbalancing

    Chào các thầy và các bạn! Hôm nay mình làm bài lab về: Etherchannel và Load balancing với mô hình như sau:
    Click image for larger version

Name:	LabEtherChannelLoadbalancing.JPG
Views:	1
Size:	40.9 KB
ID:	207755
    Bài lab này mình thực hiện trên phần mềm giả lập packet tracert. Đã thực hiện cấu hình thành công etherchannel cho các switch. Mình gặp vấn đề về load balancing. Giả sử trên Switch core, mình shutdown port fa0/22( port này là thành viên của channel 1, kết nối với switch Dis01) thì lập tức đường kết nối giữa máy tính "vlan 101 dis01" đến máy tính "vlan 250 dis02", cũng có nghĩa là đường kết nối giữa switch Dis01 và Core bị đứt hẵn, vậy etherchannel và loadbalancing của mình vừa cấu hình trở thành vô dụng. Mình cũng thực hiện shutdown port fa0/21, mọi chuyện vẫn diễn ra bình thường, các kết nối vẫn hoạt động tốt. Mình không hiểu sao chỉ khi mình shutdown port fa0/22 mới xảy ra hiện tượng như vậy. Mong các thầy và các bạn giúp đỡ mình vấn đề trên. Còn đây là cấu hình:

    Core Switch:
    Core#sh running-config
    ......................
    interface FastEthernet0/21
    channel-group 1 mode auto
    switchport trunk encapsulation dot1q
    switchport mode trunk
    !
    interface FastEthernet0/22
    channel-group 1 mode auto
    switchport trunk encapsulation dot1q
    switchport mode trunk
    !
    interface FastEthernet0/23
    channel-group 2 mode desirable
    switchport trunk encapsulation dot1q
    switchport mode trunk
    !
    interface FastEthernet0/24
    channel-group 2 mode desirable
    switchport trunk encapsulation dot1q
    switchport mode trunk
    !
    interface GigabitEthernet0/1
    !
    interface GigabitEthernet0/2
    !
    interface Port-channel 1
    switchport trunk encapsulation dot1q
    switchport mode trunk
    !
    interface Port-channel 2
    switchport trunk encapsulation dot1q
    switchport mode trunk
    .............
    Core#sh etherchannel port-channel
    Channel-group listing:
    ----------------------

    Group: 1
    ----------
    Port-channels in the group:
    ---------------------------

    Port-channel: Po1
    ------------

    Age of the Port-channel = 00d:02h:40m:05s
    Logical slot/port = 2/1 Number of ports = 2
    GC = 0x00000000 HotStandBy port = null
    Port state = Port-channel
    Protocol = PAGP
    Port Security = Disabled

    Ports in the Port-channel:

    Index Load Port EC state No of bits
    ------+------+------+------------------+-----------
    0 00 Fa0/21 Automatic 0
    0 00 Fa0/22 Automatic 0
    Time since last port bundled: 00d:01h:07m:26s Fa0/22
    Group: 2
    ----------
    Port-channels in the group:
    ---------------------------

    Port-channel: Po2
    ------------

    Age of the Port-channel = 00d:02h:40m:05s
    Logical slot/port = 2/2 Number of ports = 2
    GC = 0x00000000 HotStandBy port = null
    Port state = Port-channel
    Protocol = PAGP
    Port Security = Disabled

    Ports in the Port-channel:

    Index Load Port EC state No of bits
    ------+------+------+------------------+-----------
    0 00 Fa0/24 Automatic 0
    0 00 Fa0/23 Automatic 0
    Time since last port bundled: 00d:02h:40m:05s Fa0/23

    Core#sh etherchannel load-balance
    EtherChannel Load-Balancing Configuration:
    src-mac

    EtherChannel Load-Balancing Addresses Used Per-Protocol:
    Non-IP: Source MAC address
    IPv4: Source MAC address
    IPv6: Source MAC address

    Dis01#sh etherchannel port-channel
    Channel-group listing:
    ----------------------

    Group: 1
    ----------
    Port-channels in the group:
    ---------------------------

    Port-channel: Po1
    ------------

    Age of the Port-channel = 00d:02h:41m:57s
    Logical slot/port = 2/1 Number of ports = 2
    GC = 0x00000000 HotStandBy port = null
    Port state = Port-channel
    Protocol = PAGP
    Port Security = Disabled

    Ports in the Port-channel:

    Index Load Port EC state No of bits
    ------+------+------+------------------+-----------
    0 00 Fa0/21 Desirable-Sl 0
    0 00 Fa0/22 Desirable-Sl 0
    Time since last port bundled: 00d:01h:09m:17s Fa0/22


    Dis01#sh etherchannel load-balance
    EtherChannel Load-Balancing Configuration:
    src-mac

    EtherChannel Load-Balancing Addresses Used Per-Protocol:
    Non-IP: Source MAC address
    IPv4: Source MAC address
    IPv6: Source MAC address

    Dis02#sh etherchannel port-channel
    Channel-group listing:
    ----------------------

    Group: 2
    ----------
    Port-channels in the group:
    ---------------------------

    Port-channel: Po2
    ------------

    Age of the Port-channel = 00d:02h:43m:00s
    Logical slot/port = 2/2 Number of ports = 2
    GC = 0x00000000 HotStandBy port = null
    Port state = Port-channel
    Protocol = PAGP
    Port Security = Disabled

    Ports in the Port-channel:

    Index Load Port EC state No of bits
    ------+------+------+------------------+-----------
    0 00 Fa0/24 Desirable-Sl 0
    0 00 Fa0/23 Desirable-Sl 0
    Time since last port bundled: 00d:02h:42m:59s Fa0/23
    Dis02#sh etherchannel load-balance
    EtherChannel Load-Balancing Configuration:
    src-mac

    EtherChannel Load-Balancing Addresses Used Per-Protocol:
    Non-IP: Source MAC address
    IPv4: Source MAC address
    IPv6: Source MAC address

    Mong các bạn và các thầy giúp đỡ thắc mắc của mình! Cám ơn mọi người đã đọc bài này!

  • #2
    Bạn show cấu hình giúp mình còn Dis1 và Dis2 luôn nhé.

    Cám ơn bạn.
    Phan Hoàng Gia Liêm - Instructor
    Email : gialiem@vnpro.org
    Yahoo : gialiem_vnpro
    -----------------------------------------------------------------------------------------------
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

Comment


  • #3
    Originally posted by hoanggialiem View Post
    Bạn show cấu hình giúp mình còn Dis1 và Dis2 luôn nhé.

    Cám ơn bạn.
    Cám ơn bạn đã quan tâm, đây là cấu hình của Dis01 và Dis02:
    Dis01#sh running-config
    .........................
    !
    interface FastEthernet0/21
    channel-group 1 mode desirable
    switchport trunk encapsulation dot1q
    switchport mode trunk
    !
    interface FastEthernet0/22
    channel-group 1 mode desirable
    switchport trunk encapsulation dot1q
    switchport mode trunk
    !
    interface FastEthernet0/23
    !
    interface FastEthernet0/24
    !
    interface GigabitEthernet0/1
    !
    interface GigabitEthernet0/2
    !
    interface Port-channel 1
    switchport trunk encapsulation dot1q
    switchport mode trunk
    ....................

    Dis02#sh running-config
    ........................
    interface FastEthernet0/23
    channel-group 2 mode desirable
    switchport trunk encapsulation dot1q
    switchport mode trunk
    !
    interface FastEthernet0/24
    channel-group 2 mode desirable
    switchport trunk encapsulation dot1q
    switchport mode trunk
    !
    interface GigabitEthernet0/1
    !
    interface GigabitEthernet0/2
    !
    interface Port-channel 2
    switchport trunk encapsulation dot1q
    switchport mode trunk
    !
    ...................

    Comment


    • #4
      Khi bạn ping trong PT thì bạn thấy gói tin nó đi trên 1 sợi dây (đèn nó chớp tắt).
      Bạn shutdown cổng đang chớp tắt thì nó chết luôn. Shutdown cổng còn lại thì chạy bình thường.

      Điều này khi cấu hình thiết bị thật bạn sẽ không gặp tình huống này. Khi bạn ping thì trên Sw thật cũng sẽ có 1 đèn nhấp nháy.Nếu bạn rút sợi này ra thì bạn chỉ mất 1 gói tin rồi sau đó chạy đi tiếp bằng đường còn lại.
      Phan Hoàng Gia Liêm - Instructor
      Email : gialiem@vnpro.org
      Yahoo : gialiem_vnpro
      -----------------------------------------------------------------------------------------------
      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

      Comment


      • #5
        Originally posted by hoanggialiem View Post
        Khi bạn ping trong PT thì bạn thấy gói tin nó đi trên 1 sợi dây (đèn nó chớp tắt).
        Bạn shutdown cổng đang chớp tắt thì nó chết luôn. Shutdown cổng còn lại thì chạy bình thường.

        Điều này khi cấu hình thiết bị thật bạn sẽ không gặp tình huống này. Khi bạn ping thì trên Sw thật cũng sẽ có 1 đèn nhấp nháy.Nếu bạn rút sợi này ra thì bạn chỉ mất 1 gói tin rồi sau đó chạy đi tiếp bằng đường còn lại.
        Ôi cảm ơn bạn nhiều lắm!

        Comment


        • #6
          Mình có tài liệu về etherchannel loadbalancing ngắn gọn. Gởi bạn tham khảo nhé.
          Phan Hoàng Gia Liêm - Instructor
          Email : gialiem@vnpro.org
          Yahoo : gialiem_vnpro
          -----------------------------------------------------------------------------------------------
          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

          Comment


          • #7
            hay day, thanks cac ban
            -----------------------------
            Tel: 0966266707 :100:
            Email:chicvs@gmail.com
            -----------------------------

            Comment


            • #8
              hay hay quá !

              Comment


              • #9
                Mình cũng đang thắc mắc cái này
                không chèn link quảng cáo ngoài thiết bị mạng

                Comment

                • Working...
                  X