νƒœκ·Έ 보관물: Etherchannel

[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 포트둜 μ„€μ •