Contents

Etherchannel

   Feb 15, 2023     4 min read

STP protocol

Untitled

두 개의 포트가 열리는 것이 아니다.

Untitled (1)

  • 프로토콜은 PAgp(Cisco장비간), LACP(IEEE표준) 두 가지로 나뉜다.

LACP 명령어

int range fa0/1 - 10
channel-protocol lacp
channel-group 1 mode (active, passive)

PAgP 명령어

int range fa0/1 - 10
channel-protocol PAgP
channel-group 1 mode (desirable, auto)

Ex. LACP, PAgP 명령어

int range fa1/1 - 4
channel-protocol lacp
channel-group 2 mode active



Ex 01.

Untitled (2)

방법

Switch 0)

vlan 100

interface vlan 100
ip address 1.1.12.1 255.255.255.0

interface range fa0/1 - fa0/2
channel-protocol lacp
channel-group 1 mode active

interface port-channel 1
switchport mode access
switchport access vlan 100

show etherchannel summary



Switch 1)

vlan 100

interface vlan 100
ip address 1.1.12.2 255.255.255.0

interface range fa0/1 - fa0/2
channel-protocol lacp
channel-group 1 mode passive

interface port-channel 1
switchport mode access
switchport access vlan 100

show etherchannel summary



결과

Untitled (3)

Untitled (4)
Fa0/1, Fa0/2 뒤에 P가 나오는 것을 확인할 수 있다.

Untitled (5)
Fa0/1, Fa0/2 뒤에 P가 나오는 것을 확인할 수 있다.

Untitled (6)
ping도 다 가는 것을 확인할 수 있다.

참고

  • Flangs는 Port의 상태를 의미함
  • R : no switchport
  • S : switchport

  • show etherchannel summary

Ex 02.

Untitled (7)

방법 : RU + RU

S1)

int range Gi0/0 - 1
no switchport
channel-protocol lacp
channel-group 1 mode active

int port-channel 1
no switchport
ip add 1.1.1.1 255.0.0.0
no shutdown



S2)

int range Gi0/0 - 1
no switchport
channel-protocol lacp
channel-group 1 mode passive

int port-channel 1
no switchport
ip add 1.1.1.2 255.0.0.0
no shutdown



결과 # show etehrchannel summary

Untitled (8)

Untitled (9)

방법 : SU + SU

S1)

vlan 10

int vlan 10
ip add 1.1.1.1 255.0.0.0
no shutdown

int range Gi0/0 - 1
switchport mode access
switchport access vlan 10
channel-protocol lacp
channel-group 1 mode active

int port-channel 1
switchport mode access
switchport access vlan 10



S2)

vlan 10

int vlan 10
ip add 1.1.1.2 255.0.0.0
no shutdown

int range Gi0/0 - 1
switchport mode access
switchport access vlan 10
channel-protocol lacp
channel-group 1 mode passive

int port-channel 1
switchport mode access
swtichport access vlan 10



결과

Untitled (10)

Untitled (11)

방법 : SU + SU

S1)

vlan 10

int vlan 10
ip add 1.1.1.1 255.0.0.0
no shutdown

int range Gi0/0 - 1
switchport trunk encapsulation dot1Q
switchport mode trunk
channel-protocol lacp
channel-group 1 mode active

int port-channel 1
switchport trunk encapsulation dot1Q
switchport mode trunk



S2)

vlan 10

int vlan 10
ip add 1.1.1.2 255.0.0.0
no shutdown

int range Gi0/0 - 1
switchport trunk encapsulation dot1Q
switchport mode trunk
channel-protocol lacp
channel-group 1 mode passive

int port-channel 1
switchport trunk encapsulation dot1Q
switchport mode trunk



결과

Untitled (12)

Untitled (13)

Ex. Etherchannel

Untitled (14)

결과

PC끼리 ping이 되면 된다.