Etherchannel은 대역폭을 한계를 논리적으로 높여주게 되는 매우 유용한 기술이다.
최대 8개의 포트를 모아서 하나의 포트의 bandwidth에 8배의 bandwidth를 적용할 수 있는 기술이다.
각각의 포트수에 따른 부하 분산은 아래와 같다.
Number of Ports | Load Balancing |
---|---|
8 | 1:1:1:1:1:1:1:1 |
7 | 2:1:1:1:1:1:1 |
6 | 2:2:1:1:1:1 |
5 | 2:2:2:1:1 |
4 | 2:2:2:2 |
3 | 3:3:2 |
2 | 4:4 |
위에서 보이는대로 가장 이상적인 포트 수는 2,4,8이다. 이유는 Load Balancing이 똑같은 비율로 되기 때문이다.
또한 스위치에서의 기본 프로토콜인 Spanning Tree Protocol 역시 이더넷 포트에서 돌아간다.
이를 다른 말로 채널링이라고도 부른다.
lacp - 채널링의 표준
pagp - Cisco에서 지원하는 채널링
- Etherchannel (Port Channel)
- pagp - Cisco에서 지원하는 채널링 encapsulation
- Port Aggregation Protocol (PAgP)
- auto - Enable PAgP only if a PAgP device is detected
- desirable - Enable PAgP unconditionally
- lacp - 채널링의 표준 protocol
- Link Aggregation Control Protocol (LACP)
- active - Enable LACP unconditionally
- passive - Enable LACP only if a LACP device is detected
- on - 프로토콜을 사용하지 않음.
- 타 vendor와 연결시에 잘 붙지 않을 경우 , 이 모드로 하면 대부분 붙는다.
Etherchannel 구성
Switch(config)# interface range fa0/1 - 8
Switch(config-if-range)#channel-protocol ?
lacp Prepare interface for LACP protocol
pagp Prepare interface for PAgP protocol
Switch(config-if-range)#channel-protocol
channel-protocol 명령어를 통해서 미리 사용할 protocol을 명시해줄 수 있다.
Switch(config-if-range)#channel-group ?
<1-6> Channel group number
Switch(config-if-range)#channel-group 1 ?
mode Etherchannel Mode of the interface
Switch(config-if-range)#channel-group 1 mode ?
active Enable LACP unconditionally
auto Enable PAgP only if a PAgP device is detected
desirable Enable PAgP unconditionally
on Enable Etherchannel only
passive Enable LACP only if a LACP device is detected
Switch(config-if-range)#channel-group 1 mode
위와 같이 Channel-group을 통해서 포트들을 묶어 줄 수 있다.
Switch(config)#int port-channel 1
Switch(config-if)#
포트를 묶고 난 다음에는 Port-channel 에서 이에 대한 설정을 해 줄 수 있다.
기존의 물리적인 포트에서 설정을 하는 것이 아니라 논리적인 포트해서 설정을 해야한다.
DLS# show etherchannel summary
그리고 이와 같은 명령어로 Etherchannel을 확인해 볼 수 있다.
Switch#sh etherchannel summary
Flags: D - down P - in port-channel
I - stand-alone s - suspended
H - Hot-standby (LACP only)
R - Layer3 S - Layer2
U - in use f - failed to allocate aggregator
u - unsuitable for bundling
w - waiting to be aggregated
d - default port
Number of channel-groups in use: 2
Number of aggregators: 2
Group Port-channel Protocol Ports
------+-------------+-----------+----------------------------------------------
1 Po1(SU) LACP Fa0/1(P) Fa0/2(P) Fa0/3(P) Fa0/4(P) Fa0/5(P) Fa0/6(P) Fa0/7(P) Fa0/8(P)
3 Po3(SU) PAgP Fa0/9(P) Fa0/10(P)
Switch#
그렇다면 8개의 포트로 묶인 etherchannel에서 2개의 포트를 shutdown 시키면 어떻게 되는지 한번 보자
Switch#sh etherchannel summary
Flags: D - down P - in port-channel
I - stand-alone s - suspended
H - Hot-standby (LACP only)
R - Layer3 S - Layer2
U - in use f - failed to allocate aggregator
u - unsuitable for bundling
w - waiting to be aggregated
d - default port
Number of channel-groups in use: 2
Number of aggregators: 2
Group Port-channel Protocol Ports
------+-------------+-----------+----------------------------------------------
1 Po1(SU) LACP Fa0/1(D) Fa0/2(D) Fa0/3(P) Fa0/4(P) Fa0/5(P) Fa0/6(P) Fa0/7(P) Fa0/8(P)
3 Po3(SU) PAgP Fa0/9(P) Fa0/10(P)
Switch#
이와 같이 Etherchannel은 2개의 포트를 down 시키자 6개의 포트로도 계속해서 Etherchanneling을 하는 것을 볼 수 있다.
마지막으로 L3 Switch ( Multilayer Switch ) 에서는 etherchannel에 IP를 할당할 수 도 있는데 이는,
Port-channel을 생성하기 전에 각각의 포트에서 no switchport 명령을 통해서 ip를 할당 가능한 상태로 channel-group을 사용하면 된다.
아래는 위의 공부한 것을 Packet Tracer로 제작한 것이다.