본문으로 바로가기

EtherChannel 개념 및 구성방법

category Network/Switch 2019. 10. 8. 13:43
반응형

EtherChannel 

 

-   다수의 Port를 하나의 논리적 Port로 묶어서 사용하는 기술을 의미한다.

 

-   EtherChannel은 Cisco 사용하는 용어이고, 다른 벤더는 Link-Aggregation 혹은 Trunk라고 표현한다.
  (다수의 VLAN 트래픽이 통과할 수 있는 포트를 Cisco에서는 Trunk라고 표현하지만 다른 벤더에서는 Tagged 포트라고 표현한다.)

-   2개 이상의 Switch를 다수의 L2 포트로 연결했을 경우 Ring 구조가 되고 STP에 의해서 하나의 Link를 제외하고 나머지 Link는 Blocking 상태가 된다.

-   이 경우 EtherChannel을 구성하게 되면 다수의 포트가 하나의 논리적인 포트로 인식되기 때문에 Blocking 상태의 포트가 선출되지 않고, 모든 포트로 트래픽을 전송할 수 있다.
-   만약 2개의 FastEthernet(100 Mbps) 포트를 묶어서 사용할 경우 200 Mbps의 논리적 포트 하나로 사용이 가능하다.

- EtherChannel은 Uplink 포트의 대역폭이 부족한 경우 다수의 포트를 묶어서 대역폭을 확장하는 경우 혹은 다수의 NIC를 사용하는 서버와 Switch를 연결하는 경우(ex.본딩)에 사용이 가능하다.


EtherChannel의 협상 Protocol 종류

 

1. PAgP(Port Aggregation Protocol)


-   Cisco 전용 Protocol. 최대 8개의 물리적 포트를 하나의 논리적인 포트로 묶어서 사용이 가능하다.
-   PAgP 협상 모드에는 Desirable(능동)과 Auto(수동)가 있다.

-   수동 - 수동 방식으로는 연결이 되지 않는다.


2. LACP(Link Aggregaciton Control Protocol)


-   표준(IEEE) 방식 Protocol. 최대 16개의 물리적 포트를 하나의 논리적인 포트로 묶을 수 있다. 하지만 실제 전송에 사용되는 포트는 8개이고, 나머지 8개는 Backup 으로 사용된다.

-   LACP 협상 모드에는 Active(능동)와 Passive(수동)가 있다.

-   L2 포트인 Switchport(Access/Trunk)와 L3 포트인 Routed 포트 모두 Ether Channel로 묶어서 사용이 가능하다.

-   주의점은 하나의 논리적인 포트로 묶이는 물리적 포트들의 상태가 서로 동일해야 한다.

-   Access 포트의 경우 할당 VLAN / Duplex / Speed 등의 정보가 서로 일치해야 묶이는 것이 가능하다.

-   Trunk 포트의 경우 Encapsulation 방식(dot1q/ISL) / Native VLAN / Allowed VLAN 정보 등이 서로 일치해야 한다.

 

Ether Channel Port 구성


-   EtherChannel 구성 후 Port 설정 내용을 변경하는 경우에는 실제 물리적 Port가 아닌 논리적 포트인 Port-Channel에서 설정을 변경해야 한다!

-   EtherChannel 구성 전에 물리적 Port에 설정된 내용은 EtherChannel 구성 후 Port-Channel로 상속된다.

-  하지만 EtherChannel 구성 후 반대로 Port-Channel에서 명령어를 변경한 경우 해당 내용이 물리적 포트로 적용된다. ( 차이점 구분! )

  (만약 물리적 Port의 설정을 변경할 경우 Port-Channel의 상태가 Down으로  변경된다!) 

 

Ether Channel Load-Balancing


-   EtherChannel은 다양한 방식의 Load-Balancing을 지원한다.  [show etherchannel load-balance] 명령어로 현재 사용하는 Load-balancing 방식을 확인할 수 있다.
-   만약 관리자가 EtherChannel의 Load-Balancing 방식을 변경하기를 원하는 경우 port-channel load-balance ? 명령어를 사용하여 선택하는 것이 가능하다.
    (장비 모델과 IOS 버전에 따라 지원되는 방식이 다를 수 있다.)

 

 

Ehter Channel 구성 (3가지)

 

 

Ehter Channel LAB

 

-   IOU1 Switch와 IOU2 Switch를 Ehter Channel을 이용하여 하나의 Port로 구성하려고 한다.

 

1. Access Port를 EtherChannel로 구성

 

 IOU1 Switch VLAN10 설정 및 Access Mode 설정

 

IOU1(config)#vlan 10

IOU1(config-vlan)#exit

IOU1(config)#int range e 0/0 - 1

IOU1(config-if-range)#switchport mode access

IOU1(config-if-range)#switchport access vlan 10 

 

IOU1 Switch Channel Group 설정 (능동)

 

IOU1(config-if-range)#channel-group 1 mode desirable

Creating a port-channel interface Port-channel 1

 

IOU2 Switch Switch VLAN10 설정 및 Access Mode 설정

 

IOU2(config)#vlan 10

IOU2(config-vlan)#exit

IOU2(config)#int range e 0/0 - 1

IOU2(config-if-range)#switchport mode access

IOU2(config-if-range)#switchport access vlan 10

 

IOU1 Switch Channel Group 설정 (수동)

 

IOU2(config-if-range)#channel-group 1 mode auto

Creating a port-channel interface Port-channel 1

 

두 Switch 간 협상이 잘 되었는지 확인

 

IOU1#show etherchannel summary 
Flags:  D - down        P - bundled in port-channel
        I - stand-alone s - suspended
        H - Hot-standby (LACP only)
        R - Layer3      S - Layer2
        U - in use      N - not in use, no aggregation
        f - failed to allocate aggregator

        M - not in use, minimum links not met
        m - not in use, port not aggregated due to minimum links not met
        u - unsuitable for bundling
        w - waiting to be aggregated
        d - default port

        A - formed by Auto LAG


Number of channel-groups in use: 1
Number of aggregators:           1

Group  Port-channel  Protocol    Ports
------+-------------+-----------+-----------------------------------------------
1      Po1(SU)         PAgP      Et0/0(P)    Et0/1(P)    

IOU1#show running-config

 

interface Port-channel1
 switchport access vlan 10
 switchport mode access
!         
interface Ethernet0/0
 switchport access vlan 10
 switchport mode access
 channel-group 1 mode desirable
!         
interface Ethernet0/1
 switchport access vlan 10
 switchport mode access
 channel-group 1 mode desirable
!  

 

IOU1#show vlan brief 

VLAN Name                             Status    Ports
---- -------------------------------- --------- -------------------------------
1    default                          active    Et0/2, Et0/3, Et1/0, Et1/1
                                                Et1/2, Et1/3, Et2/0, Et2/1
                                                Et2/2, Et2/3, Et3/0, Et3/1
                                                Et3/2, Et3/3
10   VLAN0010                         active    Po1
1002 fddi-default                     act/unsup 
1003 token-ring-default               act/unsup 
1004 fddinet-default                  act/unsup 
1005 trnet-default                    act/unsup 

 

IOU1#show interfaces port-channel 1
Port-channel1 is up, line protocol is up (connected) 
  Hardware is EtherChannel, address is aabb.cc00.0100 (bia aabb.cc00.0100)
  MTU 1500 bytes, BW 20000 Kbit/sec, DLY 1000 usec, 
     reliability 255/255, txload 1/255, rxload 1/255
  Encapsulation ARPA, loopback not set

 

-   show etherchannel summary: ether channel 정보 확인 (SU: 사용 가능 상태 / SD: 오류)

-  show vlan brief: Port를 묶었기 때문에 VLAN에서 사라져 있다.

show interfaces port-channel 1: 두 개의 포트가 논리적으로 묶였기 때문에 속도가 20 mbp로 상승하였다.

 

VLAN 번호를 수정하고 싶을 경우

 

정상적인 방법

IOU1(config-if)# int port-channel 1

IOU1(config-if)# switchport access vlan 20

 

비정상적인 방법

 

IOU2(config)#vlan 20

IOU2(config-vlan)#exit

IOU2(config)#int range e 0/0 - 1

IOU2(config-if-range)#switchport mode access

IOU2(config-if-range)#switchport access vlan 20

 

-  Port-Channel이 아닌 물리적 포트에서 설정을 변경한 경우 Port-Channel 상태가 SD(Down) 상태로 변경되고 정상 동작을 수행할 수 없다.

 

2. Trunk Port를 EtherChannel로 구성

 

LACP 협상 Protocol을 사용하여 EtherChannel을 구성한다. (PAgP를 사용해도 된다.)

 

Switch 가상 포트 채널 및 물리 포트 기록 내역 제거

 

IOU1(config)#no int port-channel 1

IOU1(config)#default int range e0/0-1

 

 

IOU1 Switch Trunk 설정

 

IOU1(config)#int range e 0/0-1

IOU1(config-if-range)#switchport trunk encapsulation dot1q

IOU1(config-if-range)#switchport trunk allow vlan 10,20

IOU1(config-if-range)#switchport trunk native vlan 10

IOU1(config-if-range)#switchport mode trunk

IOU1(config-if-range)#switchport nonegotiate

 

IOU1 EtherChannel 구성

IOU1(config-if-range)#channel-group 2 mode active 

Creating a port-channel interface Port-channel 2

IOU1(config-if-range)#no shutdown

 

IOU2 Switch Trunk 설정

 

IOU2(config)#int range e 0/0-1

IOU2(config-if-range)#switchport trunk encapsulation dot1q

IOU2(config-if-range)#switchport trunk allow vlan 10,20

IOU2(config-if-range)#switchport trunk native vlan 10

IOU2(config-if-range)#switchport mode trunk

IOU2(config-if-range)#switchport nonegotiate

 

IOU1 EtherChannel 구성

 

IOU2(config-if-range)#channel-group 2 mode passive

Creating a port-channel interface Port-channel 2

IOU2(config-if-range)#no shutdown

 

아래의 명령어를 통해 잘 연결되었는지 확인 가능

 

show running-config

chow etherchannel summary

show interfaces trunk 

 

 

3. Routed Port를 EtherChannel로 구성

 

-   On Mode를 사용하여 Ehterchannel 구성. ( LACP / PAgP를 사용해도 된다.)

 

 

IOU1 Switch On Mode 설정

 

IOU1(config)#int range e0/0 - 1

IOU1(config-if-range)#no switchport

IOU1(config-if-range)#channel-group 1 mode on

Creating a port-channel interface Port-channel 1

IOU1(config-if-range)#no shutdown

channel-group 1 mode on: 채널 그룹 1번을 일단 묶도록 설정

 

IOU2 Switch On Mode 설정

 

IOU2(config)#int range e0/0 - 1

IOU2(config-if-range)#no switchport

IOU2(config-if-range)#channel-group 1 mode on

Creating a port-channel interface Port-channel 1

IOU2(config-if-range)#no shutdown

 

IOU1 Switch IP 할당

 

IOU1(config)#int port-channel 1

IOU1(config-if)#ip add 1.1.1.1 255.255.255.0

 

IOU2 Switch IP 할당

 

IOU2(config)#int port-channel 1

IOU2(config-if)#ip add 1.1.1.2 255.255.255.0

 

int port-channel 1: 설정한 port-channel 1번에 접속 (두 스위치 간 번호가 달라도 상관없다.)

 

 

Ping Test

IOU2(config)#do ping 1.1.1.1

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:

!!!!!

** IOU 오류로 인해 Ping이 안 나갈 수도 있다. **

 

 

반응형

10-02 09:03