EtherChannel - 개념 + LACP, PAgP, Static 설정 - (1)

Mola·2024년 11월 12일

L2

목록 보기
14/16

EtherChannel

이더채널, 보통 포트채널이라고 부름
다수의 물리적인 포트 -> 하나의 논리적인 포트

이더채널은 조회

설정은 채널그룹

설정모드 진입은 포트 채널

이중화 기능 (redundancy)

최대 8개 묶을 수 있음

passive(소극적), active(적극적)

양쪽 모두 passive이면 채널 미생성
ex) active - active (o)
passive - active (o)
active - passive (o)
passive - passive (x)

PAgP(Port Aggregation Protocol)

cisco에서만 사용

auto(소극적). desirable(적극적)

양쪽 모두 auto 이면 채널 미생성
ex) desirable - desirable (o)
auto - desirable (o)
desirable - auto (o)
auto - auto (x)

LACP,PAgp는 프로토콜을 사용하므로 상대 포트까지 협상이 되어야 하나의 포트로 동작

Static 설정

static 설정은 on 설정이며, 프로토콜을 사용하지 않는 방식, Mode on 방식이라고도 함
수동으로 설정

on으로 설정

juniper에서는 동작 방식을 설정하지 않으면 설정 가능, Lag 방식이라고 함

LACP,PAgp와 다르게 프로토콜을 사용하지 않으므로, 서로 회선만 Up이면 동작 가능

로드밸런싱 지정 방식

port-channel load-balance ?

?에서 주로 사용하는것은 다음과 같다

src-dst-mac: 소스 및 목적지 MAC 주소를 기반으로 로드 밸런싱

src-dst-ip: 소스 및 목적지 IP 주소를 기반으로 로드 밸런싱

기본값은 ipv4

실습 2계층 이더채널

LACP

SW1은 active, SW2는 passive

SW1

SW1(config)#int range g0/2,g0/1
SW1(config-if-range)#no sh
SW1(config-if-range)#switchport trunk encapsulation dot1q
SW1(config-if-range)#switchport mode trunk
SW1(config-if-range)#channel-group 1 mode active

SW2

SW2(config)#int range g0/2,g0/1
SW2(config-if-range)#no sh
SW2(config-if-range)#switchport trunk encapsulation dot1q
SW2(config-if-range)#switchport mode
SW2(config-if-range)#channel-group 1 mode passive

물리적인 인터페이스 g0/1,g0/2
논리적인 인터페이스 port-channel 1

PAgP

SW1은 desirable , SW2는 auto

SW1

SW1(config)#int range g0/0,g0/3
SW1(config-if-range)#switchport trunk encapsulation dot1q
SW1(config-if-range)#switchport mode trunk
SW1(config-if-range)#channel-group 2 mode desirable

SW3

SW3config)#int range g0/0,g0/3
SW3onfig-if-range)#switchport trunk encapsulation dot1q
SW3config-if-range)#switchport mode trunk
SW3config-if-range)#channel-group 2 mode auto

Static 설정

SW2

SW2(config)#int range g0/3,g0/0
SW2(config-if-range)#no sh
SW2(config-if-range)#switchport trunk encapsulation dot1q
SW2(config-if-range)#switchport mode trunk
SW2(config-if-range)#channel-group 3 mode on

SW3

SW3(config)#int range g0/1,g0/2
SW3(config-if-range)#no sh
SW3(config-if-range)#switchport trunk encapsulation dot1q
SW3(config-if-range)#switchport mode trunk
SW3(config-if-range)#channel-group 3 mode on

확인하기

SW1#sh etherchannel summary

SW2#sh etherchannel summary

SW3#sh etherchannel summary

static 설정은 - 로 표시

SW1#sh etherchannel port-channel

active 설정 확인

SW2#sh etherchannel port-channel

passive 설정 확인

SW3#sh etherchannel port-channel

auto 설정 확인

profile
모르는게 많아 작성시작

0개의 댓글