● Trunk 구성
switch(config)# feature lacp
switch(config-if)# interface ethernet 1/1-2
switch(config-if-range)# switchport mode trunk
switch(config-if-range)# channel-group 100
● Access 구성
switch(config)# feature lacp
switch(config-if)# interface ethernet 1/1-2
switch(config-if-range)# switchport access vlan 100
switch(config-if-range)# channel-group 100
● L3 구성
switch(config)# feature lacp
switch(config)# interface ethernet 1/1-2
switch(config-if-range)# channel-group 1 mode active
switch(config)# interface port-channel 1
switch(config-if)# no switchport --------------> routed(admin down)
switch(config-if)# ip address 10.1.1.1/24
or
switch(config)# interface eth1/1-2
switch(config-if-range)# no switchport --------------> access(up) >> routed(admin down)
switch(config-if-range)# channel-group 1 mode active
switch(config)# interface port-channel1
switch(config-if)# ip address 10.1.1.1/24
==========================================
** L3(routed mode) 설정된 port-channel에 물리 인터페이스(access mode)를 할당 하는 경우, 'port not compatible' Error 메시지 발생
물리 인터페이스를 port-channel 인터페이스와 Mode를 맞춰야 함.
no switchport 후 channel-group 설정 또는 channel-group 1 force mode active 적용.
switch(config)# int po9
switch(config-if)# no swi
switch(config-if)# ip add 1.1.12.1/30
switch(config)# int eth1/1-2
switch(config-if-range)# ch 9 mo ac
command failed: port not compatible [Ethernet Layer]
** You can use force option to override the port's parameters
** (e.g. "channel-group X force")
** Use "show port-channel compatibility-parameters" to get more information on failure
※ L3(routed mode) 설정된 port-channel에 물리 인터페이스를 할당하는 2가지 방법
1. switch(config-if)# channel-group 9 force mode active (force 옵션 사용)
2. switch(config-if)# no switchport 후 channel-group 설정
==========================================
* IOS
interface range gigabitEthernet 1/1-2
channel-group 1 mode active
no shutdown
interface Port-channel1
no switchport
ip address 1.1.12.2 255.255.255.252
● LACP 구성 확인
switch# show port-channel summary
Flags: D - Down P - Up in port-channel (members)
I - Individual H - Hot-standby (LACP only)
s - Suspended r - Module-removed
b - BFD Session Wait
S - Switched R - Routed
U - Up (port-channel)
p - Up in delay-lacp mode (member)
M - Not in use. Min-links not met
--------------------------------------------------------------------------------
Group Port- Type Protocol Member Ports
Channel
--------------------------------------------------------------------------------
1 Po1(SD) Eth LACP Eth1/1(D)
2 Po2(SU) Eth LACP Eth1/2(P)
999 Po999(SD) Eth LACP Eth1/5(s) Eth1/6(s)
Port-channel(SD) : 현재 port-channel 상태가 Down 된 경우 / Eth1/1(D)는 해당 인터페이스 Down을 의미
Port-channel(SU) : 현재 port-channel 상태가 UP으로 Port-channel이 정상적으로 구성이 된 상태 / Eth1/2(P)는 해당 인터페이스 UP을 의미
Port-channel(SD) : 현재 port-channel 상태가 Donw 된 경우 / Eth1/5(s)는 대기중으로 대국의 장비 인터페이스 UP 상태이기는 하나 LACP
구성이 안되었을 경우 발생
switch# show port-channel database interface port-channel 1
port-channel1
Last membership update is successful
2 ports in total, 2 ports up
First operational port is Ethernet1/1
Age of the port-channel is 0d:00h:38m:20s
Time since last bundle is 0d:00h:35m:05s
Last bundled member is Ethernet1/2
Ports: Ethernet1/1 [active ] [up] *
Ethernet1/2 [active ] [up]
switch# show lacp neighbor interface port-channel 1
Flags: S - Device is sending Slow LACPDUs F - Device is sending Fast LACPDUs
A - Device is in Active mode P - Device is in Passive mode
port-channel1 neighbors
Partner's information
Partner Partner Partner
Port System ID Port Number Age Flags
Eth1/1 32768,50-0-0-2-0-7 0x101 2004 SA
LACP Partner Partner Partner
Port Priority Oper Key Port State
32768 0x8000 0x3d
Partner's information
Partner Partner Partner
Port System ID Port Number Age Flags
Eth1/1 32768,50-0-0-2-0-7 0x102 2004 FA
LACP Partner Partner Partner
Port Priority Oper Key Port State
32768 0x8000 0x3f
SW-1# show lacp counters interface port-channel 1
NOTE: Clear lacp counters to get accurate statistics
------------------------------------------------------------------------------
LACPDUs Markers/Resp LACPDUs
Port Sent Recv Recv Sent Pkts Err
------------------------------------------------------------------------------
port-channel1
Ethernet1/1 86 73 0 0 0
Ethernet1/2 308 81 0 0 0
SW-2# show lacp counters interface port-channel 1
NOTE: Clear lacp counters to get accurate statistics
------------------------------------------------------------------------------
LACPDUs Markers/Resp LACPDUs
Port Sent Recv Recv Sent Pkts Err
------------------------------------------------------------------------------
port-channel1
Ethernet1/1 74 76 0 0 0
Ethernet1/2 85 297 0 0 0
switch# show vlan brief
: interface를 port-channel에 할당하면 VLAN에서 해당 interface는 보이지 않음
● 출처
https://blog.naver.com/91nomatter/222606525000
'네트워크 > LAG' 카테고리의 다른 글
LAG(LACP) - 개념 (0) | 2023.04.29 |
---|---|
[IOS-XR] NCS6008 LAG(Link Aggregation) (0) | 2023.03.21 |