Lacp là gì
Bạn đang xem: Lacp là gì




Xem thêm: Nhà Tuyển Dụng Cần Gì Ở Lập Trình Viên Php Developer Là Gì ? Khái Niệm Php
2.1. Điều kiện thông số kỹ thuật EtherChannel:
Các Switch yêu cầu phần đông đề nghị cung ứng nghệ thuật EtherChannel và đề nghị được thông số kỹ thuật EtherChannel đồng nhất giữa các Port liên kết cùng nhau.Các Port kết nối EtherChannel giữa 2 Switch cần tương đương cùng với nhau:Cấu hình (Configuration)Tốc độ (Speed)Băng thông (Bandwidth)Duplex (Full Duplex)Native sầu VLAN và các VLANsSwitchport Mode (Trunking, Access)2.2. Phân păn năn traffic vào EtherChannel - Load Balancing:
Switch lựa chọn con đường link nào vào EtherChannel nhằm forward frame phụ thuộc vào công dụng của thuật toán hash. Thuật tân oán hoàn toàn có thể áp dụng source IPhường, destination IP (hoặc cả hai), source MAC, destination MAC (hoặc cả hai), TCP/UDP port number. Thuật tân oán hash sẽ cho ra một chuỗi số nhị phân (0 & 1).Nếu chỉ có source hoặc destination được hash (IP.., MAC, port number) thì switch đã thực hiện một hoặc những low-oder bits của quý hiếm hash để triển khai index lựa chọn links vào EtherChannel. Nếu cả source cùng destination được hash, switch đã triển khai phxay tân oán exclusive-OR (XOR) bên trên một hoặc nhiều low-order bits để gia công index.2.3. Bảng phân các loại EtherChannel Load Balancing:

2.4. Bảng cực hiếm Load Balancing:

2.5. Phân các loại EtherChannel:
Có 2 các loại giao thức EtherChannel:
* LACP (Link Aggregation Control Protocol):
Là giao thức cấu hình EtherChannel chuẩn chỉnh thế giới IEEE 802.3ad với rất có thể cần sử dụng được mang đến hầu như các đồ vật ở trong những hãng sản xuất khác biệt, LACP hỗ trợ ghép buổi tối đa 16 Link đồ lý thành một Link luận lý (8 Port Active sầu – 8 Port Passive).LACPhường có 3 chế độ:On: Chế độ thông số kỹ thuật EtherChannel tĩnh, cơ chế này thường ko được dùng vị những Switch thông số kỹ thuật EtherChannel rất có thể vận động được với cũng hoàn toàn có thể ko hoạt động được vì chưng các Switch được cầu hình thủ công phục ở trong vào con fan buộc phải trọn vẹn không có bước trao đổi điều đình cơ chế giừa mặt dẫn cho tài năng Loop cao cùng bị STPhường Bloông xã.Active: Chế độ auto – Tự đụng hội đàm với đối tácPassive: Chế độ bị động – Chờ được thương thơm lượng
* PAgP.. (Port Aggregation Protocol):
Là giao thức thông số kỹ thuật EtherChannel độc quyền của các lắp thêm hãng sản xuất Cisco và chỉ hỗ trợ ghnghiền tối nhiều 8 Link trang bị lý thành một Link luận lý.
PAgPhường cũng có thể có 3 chính sách tương tự LACP:
OnActivePassive

- SW1 - VLAN10: 192.168.10.11/24- SW2 - VLAN10: 192.168.10.12/24- SW3 - VLAN10: 192.168.10.13/24Cấu hình cơ bản: SW1#vlan 10 SW1#interface Vlan10 SW1#ip address 192.168.10.11 255.255.255.0 SW2#vlan 10 SW2#interface Vlan10 SW2#ip address 192.168.10.12 255.255.255.0 SW1#vlan 10 SW1#interface Vlan10 SW1#ip address 192.168.10.13 255.255.255.0Cấu hình PAgP:
Cấu hình PAgPhường trên SW1:SW1(config)#interface FastEthernet0/3SW1(config-if)#switchport trunk native vlan 10SW1(config-if)#switchport mode trunkSW1(config-if)#channel-group 1 mode desirableSW1(config)#interface FastEthernet0/4SW1(config-if)#switchport trunk native vlan 10SW1(config-if)#switchport mode trunkSW1(config-if)#channel-group 1 mode desirableSW1(config)#interface FastEthernet0/5SW1(config-if)#switchport trunk native sầu vlan 10SW1(config-if)#switchport mode trunkSW1(config-if)#channel-group 1 mode desirableSW1(config)#interface FastEthernet0/7SW1(config-if)#switchport trunk native sầu vlan 10SW1(config-if)#switchport mode trunkSW1(config-if)#channel-group 1 mode desirableSW1(config)#interface Port-channel1SW1(config-if)#switchport trunk native vlan 10SW1(config-if)#switchport mode trunkCấu hình PAgPhường trên SW3:SW3(config)#interface FastEthernet0/3SW3(config-if)#switchport trunk native sầu vlan 10SW3(config-if)#switchport mode trunkSW3(config-if)#channel-group 1 mode autoSW3(config)#interface FastEthernet0/4SW3(config-if)#switchport trunk native vlan 10SW3(config-if)#switchport mode trunkSW3(config-if)#channel-group 1 mode autoSW3(config)#interface FastEthernet0/5SW3(config-if)#switchport trunk native vlan 10SW3(config-if)#switchport mode trunkSW3(config-if)#channel-group 1 mode autoSW3(config)#interface FastEthernet0/7SW3(config-if)#switchport trunk native vlan 10SW3(config-if)#switchport mode trunkSW3(config-if)#channel-group 1 mode autoSW3(config)#interface Port-channel1SW3(config-if)#switchport trunk native vlan 10SW3(config-if)#switchport mode trunkCấu hình LACP:
Cấu hình LACPhường bên trên SW1:SW1(config)#interface FastEthernet0/1SW1(config-if)#switchport trunk native sầu vlan 10SW1(config-if)#switchport mode trunkSW1(config-if)#channel-group 2 mode activeSW1(config)#interface FastEthernet0/2SW1(config-if)#switchport trunk native vlan 10SW1(config-if)#switchport mode trunkSW1(config-if)#channel-group 2 mode activeSW1(config)#interface Port-channel2SW1(config-if)#switchport trunk native sầu vlan 10SW1(config-if)#switchport mode trunkCấu hình LACP. trên SW2:SW2(config)#interface FastEthernet0/1SW2(config-if)#switchport trunk native sầu vlan 10SW2(config-if)#switchport mode trunkSW2(config-if)#channel-group 2 mode passiveSW2(config)#interface FastEthernet0/2SW2(config-if)#switchport trunk native vlan 10SW2(config-if)#switchport mode trunkSW2(config-if)#channel-group 2 mode passiveSW2(config)#interface Port-channel2SW2(config-if)#switchport trunk native sầu vlan 10SW2(config-if)#switchport mode trunk SW2(config)#interface FastEthernet0/3SW2(config-if)#switchport trunk native sầu vlan 10SW2(config-if)#switchport mode trunkSW2(config-if)#channel-group 3 mode activeSW2(config)#interface FastEthernet0/4SW2(config-if)#switchport trunk native vlan 10SW2(config-if)#switchport mode trunkSW2(config-if)#channel-group 3 mode activeSW2(config)#interface Port-channel3SW2(config-if)#switchport trunk native vlan 10SW2(config-if)#switchport mode trunkCấu hình LACPhường. trên SW3:SW3(config)#interface FastEthernet0/1SW3(config-if)#switchport trunk native vlan 10SW3(config-if)#switchport mode trunkSW3(config-if)#channel-group 3 mode passiveSW3(config)#interface FastEthernet0/2SW3(config-if)#switchport trunk native vlan 10SW3(config-if)#switchport mode trunkSW3(config-if)#channel-group 3 mode passiveSW3(config)#interface Port-channel3SW3(config-if)#switchport trunk native sầu vlan 10SW3(config-if)#switchport mode trunkKiểm tra:
Trên SW1:SW1#show etherchannel summary Flags: D - down P.. - in port-channel I - stand-alone s - suspended H - Hot-standby (LACP only) R - Layer3 S - Layer2 U - in use f - failed to allocate aggregator u - unsuitable for bundling w - waiting khổng lồ be aggregated d - mặc định portNumber of channel-groups in use: 2Number of aggregators: 2Group Port-channel Protocol Ports------+-------------+-----------+----------------------------------------------1 Po1(SU) PAgPhường Fa0/3(P) Fa0/4(P) Fa0/5(P) Fa0/7(P) 2 Po2(SU) LACPhường. Fa0/1(P) Fa0/2(P) Trên SW2:SW2#show etherchannel summary Flags: D - down P - in port-channel I - stand-alone s - suspended H - Hot-standby (LACPhường only) R - Layer3 S - Layer2 U - in use f - failed khổng lồ allocate aggregator u - unsuitable for bundling w - waiting to lớn be aggregated d - default portNumber of channel-groups in use: 2Number of aggregators: 2Group Port-channel Protocol Ports------+-------------+-----------+----------------------------------------------2 Po2(SU) LACPhường Fa0/1(P) Fa0/2(P) 3 Po3(SU) LACP. Fa0/3(P) Fa0/4(P) Trên SW3:SW3#show etherchannel summary Flags: D - down Phường - in port-channel I - stand-alone s - suspended H - Hot-standby (LACP only) R - Layer3 S - Layer2 U - in use f - failed to lớn allocate aggregator u - unsuitable for bundling w - waiting to lớn be aggregated d - default portNumber of channel-groups in use: 2Number of aggregators: 2Group Port-channel Protocol Ports------+-------------+-----------+----------------------------------------------1 Po1(SU) PAgP Fa0/3(P) Fa0/4(P) Fa0/5(P) Fa0/7(P) 3 Po3(SU) LACP. Fa0/1(P) Fa0/2(P) Ta thấy các interface đồ vật lý đã có gộp lại thành Port Channel và được Up-liên kết.
Ping tự SW1 quý phái SW2:SW1#ping 192.168.10.12Type escape sequence to lớn abort.Sending 5, 100-byte ICMP. Echos to 192.168.10.12, timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 0/0/2 msPing từ SW1 thanh lịch SW3:SW1#ping 192.168.10.13Type escape sequence khổng lồ abort.Sending 5, 100-byte ICMPhường Echos lớn 192.168.10.13, timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 0/0/1 msPing tự SW2 sang SW1:SW2#ping 192.168.10.11Type escape sequence to abort.Sending 5, 100-byte ICMP.. Echos khổng lồ 192.168.10.11, timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 0/0/1 msPing trường đoản cú SW2 lịch sự SW3:SW2#ping 192.168.10.13Type escape sequence lớn abort.Sending 5, 100-byte ICMPhường Echos lớn 192.168.10.13, timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 0/0/1 msPing tự SW3 thanh lịch SW1:SW3#ping 192.168.10.11Type escape sequence lớn abort.Sending 5, 100-byte ICMP Echos khổng lồ 192.168.10.11, timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 0/0/0 msPing trường đoản cú SW3 lịch sự SW2:SW3#ping 192.168.10.12Type escape sequence to lớn abort.Sending 5, 100-byte ICMP Echos to lớn 192.168.10.12, timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 0/0/1 msVậy là vào bài viết lần này, chúng ta sẽ cùng nhau tò mò về technology EtherChannel cùng ứng dụng vào câu hỏi thông số kỹ thuật bên trên những vật dụng thuần Cisteo.Ở những bài viết tiếp theo, chúng ta đang bên nhau tò mò tiếp về những technology của Cisteo.