EtherChannel (LACP/PAgP): รวม Link เพิ่ม Bandwidth และ Redundancy

EtherChannel (LACP/PAgP): รวม Link เพิ่ม Bandwidth และ Redundancy

EtherChannel คือเทคโนโลยีที่รวม physical links หลายเส้นเข้าด้วยกันเป็น logical link เดียว เพิ่ม bandwidth (เช่น 4 × 1G = 4G logical) และ redundancy (ถ้า link หนึ่งเสีย ที่เหลือยังทำงาน) โดยไม่ต้อง upgrade ไป 10G switch ใช้กันแพร่หลายสำหรับ uplinks ระหว่าง switches, เชื่อมต่อ servers และ storage

หลายองค์กร มี bandwidth ไม่พอ ระหว่าง access switch กับ distribution/core switch แต่ไม่อยาก upgrade เป็น 10G เพราะต้องเปลี่ยนทั้ง switch และ optics EtherChannel ช่วยเพิ่ม bandwidth โดยใช้ ports ที่มีอยู่แล้ว และยังเพิ่ม redundancy ให้ด้วย บทความนี้จะสอนวิธี configure EtherChannel

EtherChannel Protocols

Protocol มาตรฐาน Negotiation Vendor
LACP (Link Aggregation Control Protocol) IEEE 802.3ad Active/Passive Multi-vendor (แนะนำ)
PAgP (Port Aggregation Protocol) Cisco proprietary Desirable/Auto Cisco only
Static (On) ไม่มี (manual) ไม่มี negotiation ทุก vendor

LACP vs PAgP

คุณสมบัติ LACP PAgP
มาตรฐาน IEEE 802.3ad (open) Cisco proprietary
Max Links 16 (8 active + 8 standby) 8
Modes Active / Passive Desirable / Auto
Multi-vendor ใช่ Cisco เท่านั้น
แนะนำ ใช่ (best practice) ใช้ได้ใน Cisco-only environment

LACP Modes

Switch A Switch B EtherChannel Form?
Active Active ได้
Active Passive ได้
Passive Passive ไม่ได้ (ไม่มีฝ่ายเริ่ม)

Configuration (Cisco IOS)

LACP EtherChannel

Switch A: interface range GigabitEthernet0/1-4 → channel-group 1 mode active → channel-protocol lacp

Switch B: interface range GigabitEthernet0/1-4 → channel-group 1 mode active → channel-protocol lacp

Port-Channel Interface: interface Port-channel1 → switchport mode trunk → switchport trunk allowed vlan 10,20,30

สิ่งที่ต้องตรง (Prerequisites)

Parameter ต้องตรงกัน
Speed ทุก port ต้อง speed เท่ากัน (เช่น 1G ทั้งหมด)
Duplex ทุก port ต้อง full-duplex
VLAN / Trunk ทุก port ต้อง VLAN เดียวกัน หรือ trunk allowed VLANs เหมือนกัน
STP ทุก port ต้อง STP settings เหมือนกัน
Native VLAN ทุก port ต้อง native VLAN เหมือนกัน (trunk mode)

Load Balancing

วิธีกระจาย Traffic

Method Hash Based On เหมาะกับ
src-mac Source MAC address L2 environment
dst-mac Destination MAC address L2 environment
src-dst-mac Source + Destination MAC L2 environment (แนะนำ)
src-ip Source IP address L3 environment
dst-ip Destination IP address L3 environment
src-dst-ip Source + Destination IP L3 environment (แนะนำ)
src-port Source L4 port L4 environment
src-dst-port Source + Dest L4 port L4 environment (best distribution)

ตั้งค่า: port-channel load-balance src-dst-ip (global config)

Use Cases

Use Case Links ผลลัพธ์
Access → Distribution uplink 2 × 1G 2G bandwidth + redundancy
Distribution → Core uplink 4 × 1G หรือ 2 × 10G 4G/20G + redundancy
Server NIC Teaming 2-4 × 1G เพิ่ม bandwidth สำหรับ busy servers
Storage (iSCSI/NFS) 2-4 × 10G High bandwidth + redundancy สำหรับ storage traffic
Switch Stacking uplink 2 × 10G (cross-stack) Redundancy ข้าม stack members

MLAG (Multi-Chassis Link Aggregation)

EtherChannel ข้าม 2 Switches

Vendor Technology
Cisco (Nexus) vPC (Virtual Port Channel)
Cisco (Catalyst) VSS (Virtual Switching System) / StackWise
Arista MLAG
Juniper MC-LAG
HP/Aruba IRF (Intelligent Resilient Framework)

ข้อดี: Server/switch เชื่อมกับ 2 upstream switches พร้อมกัน ถ้า switch ตัวหนึ่งเสีย อีกตัวยังทำงาน active-active (ใช้ bandwidth ทั้ง 2 links)

Troubleshooting

ปัญหา สาเหตุ วิธีแก้
EtherChannel ไม่ form Settings ไม่ตรง (speed, VLAN, trunk) show interfaces + เปรียบเทียบทุก port
Port อยู่ใน suspended state LACP negotiation fail ตรวจ mode (active/passive) ทั้ง 2 ฝั่ง
STP block port-channel Loop detection ตรวจ STP topology, root bridge
Traffic ไม่ balance Load-balance method ไม่เหมาะ เปลี่ยน load-balance algorithm
Single link ใน bundle down Cable/port เสีย ตรวจ physical layer, เปลี่ยน cable/port

Verification Commands

Command แสดงอะไร
show etherchannel summary สรุป EtherChannel ทั้งหมด (status, ports)
show etherchannel detail รายละเอียดแต่ละ channel (LACP state)
show lacp neighbor LACP neighbor information
show interfaces port-channel 1 Port-channel interface status
show etherchannel load-balance Load-balance algorithm ที่ใช้

ทิ้งท้าย: EtherChannel = เพิ่ม Bandwidth + Redundancy ง่ายๆ

EtherChannel เพิ่ม bandwidth + redundancy โดยไม่ต้อง upgrade hardware ใช้ LACP เป็นมาตรฐาน (multi-vendor) ทุก port ใน bundle ต้อง settings ตรงกัน เลือก load-balance algorithm ที่เหมาะกับ traffic pattern พิจารณา MLAG (vPC/MLAG) สำหรับ redundancy ข้าม switches

อ่านเพิ่มเติมเกี่ยวกับ Spanning Tree Protocol และ Network Redundancy HSRP VRRP ที่ siamlancard.com หรือจาก icafeforex.com และ siam2r.com

จัดส่งรวดเร็วส่งด่วนทั่วประเทศ
รับประกันสินค้าเคลมง่าย มีใบรับประกัน
ผ่อนชำระได้บัตรเครดิต 0% สูงสุด 10 เดือน
สะสมแต้ม รับส่วนลดส่วนลดและคะแนนสะสม

© 2026 SiamLancard — จำหน่ายการ์ดแลน อุปกรณ์ Server และเครื่องพิมพ์ใบเสร็จ

SiamLancard
Logo
Free Forex EA Download — XM Signal · EA Forex ฟรี
iCafeForex.com - สอนเทรด Forex | SiamCafe.net
Shopping cart