CCNP—PortChannel

Introduce

[PortChannel Mode]
1. PAgP(Port Aggregation Protocol):Cisco 專屬。  
    desirable(主動)  
    auto(被動)  

2. LACP(Link Aggregation Control Protocol):IEEE 802.3ad 標準。  
    active(主動)  
    passive(被動)  

3. on 模式:強制通道,不進行協商。  

以上除了(被動=被動)之外都可以形成PortChannel通道。

Configuration

en
conf t
    interface range giga e0/0-2
        switchport trunk encapsulation dot1q
        switchport mode trunk
        channel-group 10 mode active
        exit

    interface port channel 10
        switchport trunk encapsulation dot1q
        switchport mode trunk
        exit

    spanning-tree vlan 10,30 root primary
    end
wr

Check

### 顯示所有 EtherChannel 的狀態
show etherchannel summary

==================================================
Group  Port-channel  Protocol    Ports
------+-------------+----------+-------------------
1      Po1(SU)       LACP        Gi0/1(P) Gi0/2(P)
==================================================
(SU = Layer2, in use, P = LACP Active)


### 查看 LACP 對端資訊
show lacp neighbor

======================================================
Interface   Sys-ID                 Port     Port State
Gi0/1       32768,0012.ab34.cd56   1        Active
======================================================