본문 바로가기
IT/네트워크

[스위치]이더채널 LACP, PAgP

by JGSHIN 2025. 2. 16.
SMALL

 

# 이더채널 링크를 동시에 사용할 있어 배의 속도를 얻는다.

 

 

## 이더채널 스테이틱 설정 ( LACP PAgP Negotiate 등의 기능을 제공하지 않는 대신 초기의 설정 지연을 줄인다. ) 의미없다..

 

SW1(config)# interface fastethernet 0/1                       # 해당 인터페이스 접속

SW1(config-if)# channel-group 1 mode on            # 채널 그룹 지정 // mode on

 

SW2(config)# interface fastethernet 0/2

SW2(config-if)# channel-group 1 mode on

 

# 이더채널 확인

SW1# show etherchannel summary

 

 

## 이더채널 LACP( Link Aggregation Contol Protocl ) IEEE 802.3ad에서 정의된 표준 프로토콜

 

SW1(config)# interface fastethernet 0/1                       # 해당 인터페이스 접속

SW1(config-if)# channel-protocol lacp                 # 채널 프로토콜 지정 ( LACP )

SW1(config-if)# channel-group 1 mode active              # 채널 그룹 지정 // mode { active / Passive }

 

SW2(config)# interface fastethernet 0/2

SW2(config-if)# channel-protocol lacp

SW2(config-if)# channel-group 1 mode active

 

 

## 채널 모드가 'active' 상대 스위치에게 먼저 물어보고 'passive' 때는 상대 스위치가 먼저 말을 걸기 전에 가만히 있는다.

## 스위치를 'passive' 구현하면 이더채널이 생성되지 않는다.

 

LACP 옵션 Passive Active
Passive No Yes
Active Yes Yes

 

## 이더채널 PAgP( Port Aggregation Protocol) 시스코 프로토콜이다.

 

SW1(config)# interface fastethernet 0/1                        #  해당 인터페이스 접속

SW1(config-if)# channel-protocol pagp                 # 채널 프로토콜 지정 ( PAgP )

SW1(config-if)# channel-group 1 mode desirable         #  채널 그룹 지정 // mode { desirable / auto }

 

SW2(config)# interface fastethernet 0/2

SW2(config-if)# channel-protocol pagp

SW2(config-if)# channel-group 1 mode desirable

 

## 채널 모드가 'desirable' 상대 스위치에게 먼저 물어보고 'auto' 때는 상대 스위치가 먼저 말을 걸기 전에 가만히 있는다.

## 스위치를 'auto' 구현하면 이더채널이 생성되지 않는다.

 

PAgp 옵션 auto desirable
auto No Yes
desirable Yes Yes

 

 

## LACP , PAgP 프라이어리터 설정 (port-priority 수치)

## LACP 프라이어리티가 낮은 포트들부터 이더채널로 묶인다.

## PAgP 프라이어리티가 높은 포트들부터 이더채널로 묶인다.

 

## LACP 예시

SW1(config)# interface fastethernet 0/1                      

SW1(config-if)# channel-protocol lacp

SW1(config-if)# channel-group 1 mode active

SW1(config-if)# lacp port-priority 80                                        # 프라이어리티 지정 ( lacp 낮은 액티브 ) Fa 0/1 Fa 0/2 액티브

 

SW1(config)# interface fastethernet 0/2

SW1(config-if)# channel-protocol lacp

SW1(config-if)# channel-group 1 mode active

SW1(config-if)# lacp port-priority 80

 

SW1(config)# interface fastethernet 0/3

SW1(config-if)# channel-protocol lacp

SW1(config-if)# channel-group 1 mode active

SW1(config-if)# lacp port-priority 100

 

SW2(config)# interface fastethernet 0/1                      

SW2(config-if)# channel-protocol lacp

SW2(config-if)# channel-group 1 mode active

SW2(config-if)# lacp port-priority 80

 

SW2(config)# interface fastethernet 0/2

SW2(config-if)# channel-protocol lacp

SW2(config-if)# channel-group 1 mode active

SW2(config-if)# lacp port-priority 80   

                  

SW2(config)# interface fastethernet 0/3

SW2(config-if)# channel-protocol lacp

SW2(config-if)# channel-group 1 mode active

SW2(config-if)# lacp port-priority 100                        # 프라이어리티 스탠바이 포트로 대기 ( 80 < 100 ) Fa 0/3 스탠바이 포트

 

 

LIST
📧 이메일 문의
by @ 2025 JGSHIN