Port Channel – один логический интерфейс объединяющий в себе группу физических портов и обладающий большей пропускной способностью равной сумме пропускных способностей портов в группе.
Максимальное количество портов в группе: 8
Максимальное количество групп: 128
Два режима работы:
- статический
- динамический (LACP – Link Aggregation Control Protocol)
Требования по объединения портов в порт-группу.
Создать port-group 1:
S1(config)#port-group 1 S1(config)#%Jan 10 01:44:05 2023 %LINK-3-UPDOWN: Interface Port-Channel1, changed state to administratively DOWN |
Добавить порты 1/0/1 и 1/0/2 статически в группу 1:
S1(config)#interface ethernet 1/0/1 S1(config-if-ethernet1/0/1)#port-group 1 mode on S1(config-if-ethernet1/0/1)#interface ethernet 1/0/2 S1(config-if-ethernet1/0/2)#port-group 1 mode on S1(config-if-ethernet1/0/2)#exit |
Аналогично настроить S2:
S2(config)#port-group 1 S2(config)#%Jan 10 01:48:19 2023 %LINK-3-UPDOWN: Interface Port-Channel1, changed state to administratively DOWN S2(config)#interface ethernet 1/0/1 S2(config-if-ethernet1/0/1)#port-group 1 mode on S2(config-if-ethernet1/0/1)#interface ethernet 1/0/2 S2(config-if-ethernet1/0/2)#port-group 1 mode on |
Просмотр информации о Port-Channel:
S2(config)#show port-group detail Flags: A -- LACP_Activity, B -- LACP_timeout, C -- Aggregation, D -- Synchronisation, E -- Collecting, F -- Distributing, G -- Defaulted, H -- Expired Port-group number: 1, Mode: on, Load-balance: src-mac S2(config)#show port-group brief ID: port group number; Mode: port group mode such as on active or passive; Ports: different types of port number of a port group, the first is selected ports number, the second is standby ports number, and the third is unselected ports number. ID Mode Partner ID Ports Load-balance ------------------------------------------------------------------ 1 on 2.0.0 src-mac S2(config)#show interface port-channel1 Interface brief: Port-Channel1 is up, line protocol is up Port-Channel1 is layer 2 port, alias name is (null), index is 65 Port-Channel1 is LAG port, member is : Ethernet1/0/1 Ethernet1/0/2 Hardware is EtherChannel, address is 8c-1f-64-41-93-7d PVID is 1 MTU 1500 bytes, BW 2000000 Kbit Time since last status change:0w-0d-0h-2m-22s (142 seconds) Encapsulation ARPA, Loopback not set Auto-duplex: Negotiation full-duplex, Auto-speed: Negotiation 2G bits FlowControl is off, MDI type is auto |
Создать port-group 1:
S1(config)#port-group 1 S1(config)#%Jan 10 01:44:05 2023 %LINK-3-UPDOWN: Interface Port-Channel1, changed state to administratively DOWN |
Добавить порты 1/0/1 и 1/0/2 коммутатора S1 в группу 1 в режиме LACP-active:
S1(config)#interface ethernet 1/0/1 S1(config-if-ethernet1/0/1)#port-group 1 mode active S1(config-if-ethernet1/0/1)#interface ethernet 1/0/2 S1(config-if-ethernet1/0/2)#port-group 1 mode active |
Добавить порты 1/0/1 и 1/0/2 коммутатора s2 в группу 1 в режиме passive:
S2(config)#port-group 1 S2(config)#%Jan 10 02:17:40 2023 %LINK-3-UPDOWN: Interface Port-Channel1, changed state to administratively DOWN S2(config)#interface ethernet 1/0/1 S2(config-if-ethernet1/0/1)#port-group 1 mode passive S2(config-if-ethernet1/0/1)#interface ethernet 1/0/2 S2(config-if-ethernet1/0/2)#port-group 1 mode passive |
Информация о LACP:
S1#show port-group detail
Flags: A -- LACP_Activity, B -- LACP_timeout, C -- Aggregation,
D -- Synchronisation, E -- Collecting, F -- Distributing,
G -- Defaulted, H -- Expired
Port-group number: 1, Mode: active, Load-balance: src-mac
Port-group detail information:
System ID: 0x8000,8c-1f-64-63-06-7a
Local:
Port Status Priority Oper-Key Flag
-----------------------------------------------------------
Ethernet1/0/1 Selected 32768 1 {ACDEF}
Ethernet1/0/2 Selected 32768 1 {ACDEF}
Remote:
Actor Partner Priority Oper-Key SystemID Flag
------------------------------------------------------------------
Ethernet1/0/1 1 32768 1 0x8000,8c-1f-64-41-93-7d {CDEF}
Ethernet1/0/2 2 32768 1 0x8000,8c-1f-64-41-93-7d {CDEF} |