CCNA-Fundamental

2.4 Configure and verify (Layer 2/Layer 3) EtherChannel (LACP)

리리아나(Net Wiz) 2024. 2. 28. 14:27

2.4 Configure and verify (Layer 2/Layer 3) EtherChannel (LACP)

 

EtherChannel

EtherChannel

: 두 스위치간에 연결된 복수개의 포트를 하나의 포트처럼 동작시키는 것을 말한다.

이더채널을 구성할 때 사용되는 프로토콜은 LACP(Link Aggregation Control Protocol)이다.

이더채널은 Layer 2 또는 Layer 3 interface로 동작시킬 수 있으며, Access Port 및 Trunk Port로 사용할 수 있다.

 

이더채널 액세스 포트 구성 조건

: 구성하려는 Port Speed, Duplex Mode, VLAN Number가 같아야 한다.

 

이더채널 트렁크 포트 구성 조건

: 구성하려는 Encapsulation, Native VLAN, Allowed VLAN이 같아야 한다.

 

EtherChannel 설정 시 mode

 

- active

: 상대 스위치와 협상하여 이더채널 멤버 포트를 활성화시킨다.

상대 스위치와의 이더채널이 제대로 동작하지 않으면 각 멤버 포트들은 일반 단일 포트로 사용된다.

 

- passive

: 상대 스위치 포트가 LACP를 사용할 경우에만 LACP를 활성화시킨다.

 

- on

: 상대 스위치와의 협상없이 이더채널 멤버 포트를 모두 활성화시킨다.

상대 스위치도 on으로 설정해야 한다.

상대 스위치의 설정은 확인하지 않기 때문에 패킷손실이나 프레임 루프가 발생할 수 있다.

 

<Configuring Layer 2 EtherChannel>

 

Switch(config)#int range interface slot/port-port

Switch(config-if-range)#channel-protocol lacp

Switch(config-if-range)#channel-group number mode {active | passive | on}

 

<Configuring Layer 3 EtherChannel>

 

1. PortChannel Interface 생성 후 L3 Port로 변경 시키고 IP 주소를 할당

 

Switch(config)#interface port-channel port-channel-number

Switch(config-if)#no switchport

Switch(config-if)#ip address ip-address mask

 

2. EtherChannel의 개별적인 Interface Mode에 접근 후 각 Interface마다 L3 Port로 설정하고 LACP Mode를 설정

 

Switch(config)#int range interface slot/port

Switch(config-if)#no switchport

Switch(config-if)#channel-group number mode {active | passive | on}

 

#Comment : MLAG에서 서버단과 Etherchannel 묶을 때에는 

channel group "#넘버" mode on으로 구성해야 MLAG이 Active가 된다.