1. Link Aggregation Set Configuration
set chassis aggregated-devices ethernet device-count 2
- Chassis에서 지원하는 Aggregation Aggregated Ethernet(ae) Interface의 수를 지정
set interfaces ge-0/0/0 ether-options 802.3ad ae0
- Physical Interface를 Link Aggregation Interface에 Binding
set interfaces ae0 unit 0 family bridge interface-mode trunk
set interfaces ae0 unit 0 family bridge vlan-id-list 10
- Link Aggregation Interface(ae0)에 VLAN 설정
set interfaces irb unit 10 family inet address 1.1.2.1/24
- Link Aggregation Interface(ae0)에 IRB 설정
- Link Aggregation Interface(ae0)를 Routed Interface로 사용하고 싶다면 bridge → inet으로 변경
set interfaces ae0 aggregated-ether-options link-speed 10g
- Link Aggregation Interface(ae) Link Speed 설정
set interfaces ae0 aggregated-ether-options minimum-bandwidth bw-unit [bps/kbps/mbps/gbps]
- Link Aggregation Interface(ae) Bundle에 대한 최소 Bandwidth 단위 설정
set interfaces ae0 aggregated-ether-options minimum-bandwidth bw-value [value]
- 최소 Bandwidth 값을 1~128,000 사이로 설정
set interfaces ae0 aggregated-ether-options minimum-links 8
- Link Aggregation Interface(ae)에 구성될 최소 Link 수를 설정
- Link Aggregation Interface(ae)에 구성된 Link 수가 minimum-links에 구성된 수보다 작은 경우, commit Failure
set chassis aggregated-devices maximum-links [16/32/64]
- Link Aggregation Interface(ae)에 구성될 최대 Link 수를 지정
set forwarding-options enhanced-hash-key hash-mode [layer2-header/leyer2-payload]
- Load Balancing Algorithm 변경
2. LACP Set Configuration
set interfaces ae0 aggregated-ether-options lacp [active/passive/force-up]
→ LACP 활성화 및 LACP Mode 지정
→ Force-up : On Mode
- LACP 활성화 및 LACP Mode 지정
- Force-up : On Mode
set interface ae0 aggregated-ether-options lacp periodic [fast/slow]
→ LACP Timeout 설정
- LACP Timeout 설정
set interfaces ae0 aggregated-ether-options lacp system-priority 32768
→ LACP System Priority 설정
- LACP System Priority 설정
set interfaces ae0 aggregated-ether-options lacp system-id 2c:6b:f5:4f:06:c0
→ LACP System-ID 설정
- LACP System-ID 설정
set interfaces ge-0/0/0 ether-options 802.3ad ae0 lacp port-priority 32768
→ LACP Port Priority 설정
- LACP Port Priority 설정
set interfaces ae0 aggregated-ether-options lacp admin-key 32768
→ LACP admin key 설정
- LACP admin key 설정
3. Link Aggregation show Configuration
root@R1> show interfaces terse ae0
Interface Admin Link Proto Local Remote
ae0 up up
ae0.0 up up bridge
- Link Aggregation Interface(ae) State 확인
root@R1> show interfaces terse | match ae0
ge-0/0/1.0 up up aenet --> ae0.0
ge-0/0/2.0 up up aenet --> ae0.0
ae0 up up
ae0.0 up up bridge
- Link Aggregation Interface(ae) State 확인 및 Binding Physical Interface 확인
root@R1> show interfaces ge-0/0/1 | match pps
Input rate : 0 bps (0 pps)
Output rate : 1032 bps (0 pps)
- 'match pps' 명령어를 이용하여 Input/Output Count를 쉽게 확인 가능
root@R1> show interfaces ae0
Physical interface: ae0, Enabled, Physical link is Up
Interface index: 159, SNMP ifIndex: 540
Link-level type: Ethernet, MTU: 1514, Speed: 2Gbps, BPDU Error: None, MAC-REWRITE Error: None, Loopback: Disabled, Source filtering: Disabled, Flow control: Disabled
Pad to minimum frame size: Disabled
Minimum links needed: 1, Minimum bandwidth needed: 1bps
Device flags : Present Running
Interface flags: SNMP-Traps Internal: 0x4000
Current address: 2c:6b:f5:4f:06:c3, Hardware address: 2c:6b:f5:4f:06:c3
Last flapped : 2024-10-24 15:45:43 UTC (08:18:40 ago)
Input rate : 0 bps (0 pps)
Output rate : 2072 bps (1 pps)
Logical interface ae0.0 (Index 337) (SNMP ifIndex 541)
Flags: Up SNMP-Traps 0x24024000 Encapsulation: Ethernet-Bridge
Statistics Packets pps Bytes bps
Bundle:
Input : 0 0 0 0
Output: 0 0 0 0
Adaptive Statistics:
Adaptive Adjusts: 0
Adaptive Scans : 0
Adaptive Updates: 0
Protocol bridge, MTU: 1514
Flags: Is-Primary, Trunk-Mode
- Link Aggregation Interface(ae)에 대한 Link State, MTU, Speed, Input/Output Count 등 정보 확인
root@R1> show interfaces ae0 extensive
Physical interface: ae0, Enabled, Physical link is Up
Interface index: 159, SNMP ifIndex: 540, Generation: 164
Link-level type: Ethernet, MTU: 1514, Speed: 2Gbps, BPDU Error: None, MAC-REWRITE Error: None, Loopback: Disabled, Source filtering: Disabled, Flow control: Disabled
Pad to minimum frame size: Disabled
Minimum links needed: 1, Minimum bandwidth needed: 1bps
Device flags : Present Running
Interface flags: SNMP-Traps Internal: 0x4000
Current address: 2c:6b:f5:4f:06:c3, Hardware address: 2c:6b:f5:4f:06:c3
Last flapped : 2024-10-24 15:45:43 UTC (08:19:28 ago)
Statistics last cleared: Never
Traffic statistics:
Input bytes : 558 0 bps
Output bytes : 15564146 2072 bps
Input packets: 10 0 pps
Output packets: 119732 1 pps
IPv6 transit statistics:
Input bytes : 0
Output bytes : 0
Input packets: 0
Output packets: 0
Dropped traffic statistics due to STP State:
Input bytes : 0
Output bytes : 0
Input packets: 0
Output packets: 0
MAC statistics: Receive Transmit
Broadcast packets 0 0
Multicast packets 0 0
Input errors:
Errors: 0, Drops: 0, Framing errors: 0, Runts: 0, Giants: 0, Policed discards: 0, Resource errors: 0
Output errors:
Carrier transitions: 2, Errors: 0, Drops: 0, MTU errors: 0, Resource errors: 0
Ingress queues: 8 supported, 4 in use
Queue counters: Queued packets Transmitted packets Dropped packets
0 0 0 0
1 0 0 0
2 0 0 0
3 0 0 0
Egress queues: 8 supported, 4 in use
Queue counters: Queued packets Transmitted packets Dropped packets
0 0 0 0
1 0 0 0
2 0 0 0
3 0 0 0
Queue number: Mapped forwarding classes
0 best-effort
1 expedited-forwarding
2 assured-forwarding
3 network-control
Logical interface ae0.0 (Index 337) (SNMP ifIndex 541) (Generation 157)
Flags: Up SNMP-Traps 0x24024000 Encapsulation: Ethernet-Bridge
Statistics Packets pps Bytes bps
Bundle:
Input : 0 0 0 0
Output: 0 0 0 0
Adaptive Statistics:
Adaptive Adjusts: 0
Adaptive Scans : 0
Adaptive Updates: 0
Link:
ge-0/0/1.0
Input : 0 0 0 0
Output: 10 0 460 0
ge-0/0/2.0
Input : 0 0 0 0
Output: 0 0 0 0
Aggregate member links: 2
LACP info: Role System System Port Port Port
priority identifier priority number key
ge-0/0/1.0 Actor 127 2c:6b:f5:4f:06:c0 127 1 1
ge-0/0/1.0 Partner 127 2c:6b:f5:6e:9f:c0 127 1 1
ge-0/0/2.0 Actor 127 2c:6b:f5:4f:06:c0 127 2 1
ge-0/0/2.0 Partner 127 2c:6b:f5:6e:9f:c0 127 2 1
LACP Statistics: LACP Rx LACP Tx Unknown Rx Illegal Rx
ge-0/0/1.0 0 0 0 0
ge-0/0/2.0 0 0 0 0
Marker Statistics: Marker Rx Resp Tx Unknown Rx Illegal Rx
ge-0/0/1.0 0 0 0 0
ge-0/0/2.0 0 0 0 0
List-Type Status
Primary Active
Interfaces:
ge-0/0/1 Up
ge-0/0/2 Up
List-Type Status
Backup Down
Standby Down
Protocol bridge, MTU: 1514, Generation: 175, Route table: 3, Mesh Group: __all_ces__
Flags: Is-Primary, Trunk-Mode
4. LACP show Configuration
root@R1> show lacp interfaces
Aggregated interface: ae0
LACP state: Role Exp Def Dist Col Syn Aggr Timeout Activity
ge-0/0/1 Actor No No Yes Yes Yes Yes Fast Active
ge-0/0/1 Partner No No Yes Yes Yes Yes Fast Passive
ge-0/0/2 Actor No No Yes Yes Yes Yes Fast Active
ge-0/0/2 Partner No No Yes Yes Yes Yes Fast Passive
LACP protocol: Receive State Transmit State Mux State
ge-0/0/1 Current Fast periodic Collecting distributing
ge-0/0/2 Current Fast periodic Collecting distributing
- 정상인 상태 확인
- 'Expired & Defaulted' Flag는 'No'
- 'Distributed & Collecting & Synchronization & Aggregation' Flag는 'Yes'
- 'Receive State' Flag는 'Current'
- 'Transmit State' Flag는 'Fast/Slow Periodic'
- 'Mux State' Flag는 'Collecting Distributing'
Receive State | |
Current | ∘ LACP PDU를 정상적으로 수신 |
Defaulted | ∘ Timeout이 두 번 만료될 때까지 LACP PDU가 수신되지 않을 경우 |
Expired | ∘ Timeout이 한 번 만료될 때까지 LACP PDU가 수신되지 않을 경우 |
Initialize | ∘ 물리적 연결이 변경되거나 Start Event가 발생한 경우 |
LACP Disabled | ∘ 포트가 Half Duplex로 동작하는 경우 |
Port Disabled | ∘ Start Event가 없는 경우 |
Transmit State | |
Fast Periodic | ∘ Transmissions Periodic는 Fast Timer로 Active |
Slow Periodic | ∘ Transmissions Periodic는 Slow Timer로 Active |
Periodic Timer | ∘ Periodic Timer가 Expire되면 보이는 잠깐의 일시적인 상태 |
No Periodic | ∘ Transmissions Periodic이 Disable |
Mux State | |
Attached | ∘ Aggregator에 포트를 연결하는 프로세스를 시작 |
Collecting | ∘ 해당 링크의 수신 기능이 Aggregation과 관련하여 Enable되어 있음을 표시 ∘ 수신된 Frame은 Collection을 위해 Aggregator로 전달 |
Distributing | ∘ 해당 링크의 전송 기능이 Aggregation과 관련하여 Enable되어 있음을 표시 ∘ Frame은 전송을 위해 Aggregator의 Distribution에서 Transmission이 가능 |
Collecting Distributing | ∘ Collecting and Distributing state가 결합된 상태 |
Detached | ∘ 포트를 Aggregator에서 분리하는 프로세스 진행 |
Waiting | ∘ 결과를 기다리고 있는 상태 |
root@R1> show lacp interfaces extensive
Aggregated interface: ae0
LACP state: Role Exp Def Dist Col Syn Aggr Timeout Activity
ge-0/0/1 Actor No No Yes Yes Yes Yes Fast Active
ge-0/0/1 Partner No No Yes Yes Yes Yes Fast Passive
ge-0/0/2 Actor No No Yes Yes Yes Yes Fast Active
ge-0/0/2 Partner No No Yes Yes Yes Yes Fast Passive
LACP protocol: Receive State Transmit State Mux State
ge-0/0/1 Current Fast periodic Collecting distributing
ge-0/0/2 Current Fast periodic Collecting distributing
LACP info: Role System System Port Port Port
priority identifier priority number key
ge-0/0/1 Actor 127 2c:6b:f5:4f:06:c0 127 1 1
ge-0/0/1 Partner 127 2c:6b:f5:6e:9f:c0 127 1 1
ge-0/0/2 Actor 127 2c:6b:f5:4f:06:c0 127 2 1
ge-0/0/2 Partner 127 2c:6b:f5:6e:9f:c0 127 2 1
- LACP System Priority, System ID, Port Priority, Port ID, Key 등을 추가적으로 확인 가능
root@QFX5100-48S_R1> show lacp interfaces extensive
Aggregated interface: ae0
LACP state: Role Exp Def Dist Col Syn Aggr Timeout Activity
ge-0/0/6 FUP Actor Yes No Yes Yes Yes Yes Fast Passive
ge-0/0/6 FUP Partner No Yes No No Yes Yes Fast Passive
ge-0/0/7 Actor No Yes No No No Yes Fast Passive
ge-0/0/7 Partner No Yes No No No Yes Fast Passive
LACP protocol: Receive State Transmit State Mux State
ge-0/0/6 FUP Current No periodic Collecting distributing
ge-0/0/7 Defaulted No periodic Detached
LACP info: Role System System Port Port Port
priority identifier priority number key
ge-0/0/6 Actor 127 5c:45:27:15:7d:00 127 5 1
ge-0/0/6 Partner 1 00:00:00:00:00:00 1 5 1
ge-0/0/7 Actor 127 5c:45:27:15:7d:00 127 6 1
ge-0/0/7 Partner 1 00:00:00:00:00:00 1 6 1
- 'force-up'으로 구성된 경우, LACP State는 Interface Name과 함께 'FUP'을 표시
- 위 로그는 실장비에서 양단의 장비에 'force-up'으로 구성한 결과
- 개인적으로 모든 Physical Interface가 아닌, 하나의 Physical Interface에만 'FUP'이 표시되는 것은 문제가 있다고 판단
- Ping Test를 진행하여 실제로 Link Aggregation이 동작하는 것은 확인
root@R1> show lacp statistics interfaces ae0
Aggregated interface: ae0
LACP Statistics: LACP Rx LACP Tx Unknown Rx Illegal Rx
ge-0/0/1 33038 33072 0 0
ge-0/0/2 33038 33071 0 0
- Link Aggregation Interface(ae)에 연관된 각 Physical Interface에 대한 LACP 통계 확인
'Network > Link Aggregation' 카테고리의 다른 글
LACP Configuration(Juniper vMX) (0) | 2025.04.29 |
---|---|
Link Aggregation Configuration(Juniper vMX) (0) | 2025.04.27 |
LACP 동작 과정 (0) | 2025.04.23 |
Introduction to LACP (0) | 2025.04.21 |
LACP Header (0) | 2025.04.19 |
Introduction to PAGP (0) | 2025.04.17 |
PAGP Header (0) | 2025.04.15 |
Link Aggregation Load Balancing (0) | 2025.04.13 |