[Switch] 이더채널

이더채널; Etherchannel
두 Switch 사이에 여러 포트들을 하나의 포트처럼 동작하게 한다. STP는 이더채널을 하나의 포트로 간주한다.
이더채널을 생성하고나선 반드시 port-channel에서 설정을 변경해야 한다.

이더채널 Protocol Type

  1. 시스코에서 만든 PAgP(Port Aggregation Protocol)
    1개의 이더채널은 최대 8 포트로 구성할 수 있다.
    Desirable과 Auto Mode 사용.
  2. IEEE에서 만든 LACP(Link Aggregation Control Protocol)
    1개의 이더채널은 최대 16 포트로 구성할 수 있다.
    (8개 사용 + 8개 백업용)
    Active와 Passive Mode 사용.

이더채널 Mode

Active – 무조건 LACP 사용, 만일 상대 Switch와 이더채널이 안되면 일반 단일 포트로 사용됨.
Desirable – 무조건 PAgP 사용, 만일 상대 Switch와 이더채널이 안되면 일반 단일 포트로 사용됨.
Passive – 상대가 LACP 사용할 때만, LACP 활성화
Auto – 상대가 PAgP 사용할 때만, PAgP 활성화
on – 상대 Switch와 협상없이 이더채널 멤버포트를 모두 활성화, 상대 Switch도 on으로 설정해야함.


이더채널 설정

1. Routed 이더채널

Routed 포트로 동작하는 이더채널.

Switch(config)# interface range <port range>
Switch(config-if)# no switchport
Switch(config-if)# channel <channel_num> mode <mode>
Switch(config-if)# exit
Switch(config)#
Switch(config)# interface port-channel <channel_num>
Switch(config-if)# ip addr <ip> <subnet>
Switch(config-if)# exit
Switch(config)# exit
Switch# show etherchannel summary
Switch# show interface port-channel <num>

3: channel의 포트번호는 Switch 모델에 따라 다르다. ex) catalyst 3550: 1-64, 3560: 1-48.
mode는 active/desirable/passive/auto/on 중 하나를 선택한다.
6: 이더채널 포트로 접속 하여 IP를 설정한다.
10,11: 이더채널이 정상 설정되어있는지 확인한다.

2. SVI 이더채널

가상 VLAN 포트로 동작하는 이더채널.

Switch(config)# interface range <port range>
Switch(config-if)# switchport mode access
Switch(config-if)# switchport access vlan <vlan_num>
Switch(config-if)# channel <channel_num> mode <mode>
Switch(config-if)# exit
Switch(config)#
Switch(config)# interface vlan <vlan_num>
Switch(config-if)# ip addr <ip> <subnet>
Switch(config-if)# exit
Switch(config)# exit
Switch# show etherchannel summary
Switch# show ip interface brief

2,3: Access 포트로 설정하고 허용할 VLAN을 설정한다.

3. Access 포트 이더채널

Access포트로 동작하는 이더채널

Switch(config)# interface range <port range>
Switch(config-if)# switchport mode access
Switch(config-if)# switchport access vlan <vlan_num>
Switch(config-if)# channel <channel_num> mode <mode>
Switch(config-if)# exit
Switch(config)# exit
Switch# show etherchannel summary
Switch# show interface port-channel <num>

4. Trunk 포트 이더채널

Trunk 포트로 동작하는 이더채널.

Switch(config)# interface range <port range>
Switch(config-if)# switchport trunk encapsulation dot1q
Switch(config-if)# switchport mode trunk
Switch(config-if)# channel <channel_num> mode <mode>
Switch(config-if)# exit
Switch(config)# exit
Switch# show etherchannel summary
Switch# show interface port-channel <num>

2,3: Trunk 인캡슐레이션 및 Trunk 포트로 설정

답글 남기기

이메일 주소는 공개되지 않습니다.