- Bundle 내의 서로 다른 링크는 서로 다른 speed를 가질 수 있으며 가장 빠른 링크는 가장 느린 링크보다 최대 4배 빠를 수 있다.

- Bundle이 유지되는 데 필요한 minimum-active links 수는 2개 이다.

 

 

LAG Basic Configuration

 

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
interface Bundle-Ether 1
 ipv4 address 10.10.10.10/31
 ipv4 unreachables disable
 ipv6 address 1111:1111:1111:c:11:11:111:11/127
 ipv6 unreachables disable
 load-interval 30
!
interface Te0/1/0/1
 bundle id 1 mode active
 no shutdown
!
interface Te0/1/0/2
 bundle id 1 mode active
 no shutdown
!
interface Te0/2/0/1
 bundle id 1 mode active
 no shutdown
!
interface Te0/2/0/2
 bundle id 1 mode active
 no shutdown
 
cs

 

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
RP/0/RP0/CPU0:NCS-60087#show bundle bundle-ether 1
Thu Mar 16 02:30:59.178 KST
 
Bundle-Ether1
  Status:                                    Up
  Local links <active/standby/configured>:   4 / 0 / 4
  Local bandwidth <effective/available>:     40000000 (40000000) kbps
  MAC address (source):                      70ea.1aa8.fa03 (Chassis pool)
  Inter-chassis link:                        No
  Minimum active links / bandwidth:          1 / 1 kbps
  Maximum active links:                      64
  Wait while timer:                          2000 ms
  Load balancing:                            
    Link order signaling:                    Not configured
    Hash type:                               Default
    Locality threshold:                      None
  LACP:                                      Operational
    Flap suppression timer:                  Off
    Cisco extensions:                        Disabled
    Non-revertive:                           Disabled
  mLACP:                                     Not configured
  IPv4 BFD:                                  Not configured
  IPv6 BFD:                                  Not configured
 
  Port                  Device           State        Port ID         B/W, kbps
  --------------------  ---------------  -----------  --------------  ----------
  Te0/1/0/1            Local            Active       0x80000x0004    10000000
      Link is Active
  Te0/1/0/2            Local            Active       0x80000x0003    10000000
      Link is Active
  Te0/2/0/1            Local            Active       0x80000x0002    10000000
      Link is Active
  Te0/2/0/2            Local            Active       0x80000x0001    10000000
      Link is Active
cs

 

Minimum active links / bandwidth:          1(x) / 1(y) kbps
x - 번들이 작동하는 데 필요한 최소 활성 링크 수(1~번들에서 지원되는 최대 링크 수)입니다.
y - 번들이 작동하는 데 필요한 활성 링크의 최소 총 대역폭(kbps)입니다.
(파트너) - 피어 시스템의 값이 사용 중임을 나타냅니다.

 

Maximum active links:                      64

번들에서 활성화할 수 있는 최대 링크 수(1~번들에서 지원되는 최대값)

 

Wait while timer:
"protect" 또는 백업 링크를 Standby 상태로 이동하기 전에 시스템에서 LACP(Link Aggregation Control Protocol)가 "작동(working)" 링크를 협상하도록 허용하는 시간(miliseconds)입니다.

 

State

Active - Link는 트래픽을 보내고 받을 수 있습니다.
BFD Running - BFD가 다운되었거나 완전히 협상되지 않았기 때문에 링크가 비활성 상태입니다.
Configured - 구성 불일치로 인해 링크가 작동하지 않거나 다운된 상태로 유지됩니다. 활성 링크 장애 시 전환에 링크를 사용할 수 없습니다.
Hot Standby - 링크는 활성 링크에 장애가 발생하면 LACP PDU(프로토콜 데이터 장치)를 추가로 교환하지 않고 활성 상태로 즉시 전환할 수 있는 경우 인계할 준비가 되어 있습니다.
Negotiating(협상 중) - 링크가 LACP 협상 중이고 피어에 의해 더 낮은 LACP 상태로 유지되고 있습니다(예: 링크가 피어에서 대기 상태이기 때문에).
Standby - 링크가 트래픽을 보내거나 받고 있지 않지만 활성 링크 오류로 인한 전환에 사용할 수 있습니다.

 

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
RP/0/RP0/CPU0:NCS-6008#show interfaces bundle-ether 1
Thu Mar 16 02:31:08.539 KST
Bundle-Ether1 is up, line protocol is up 
  Interface state transitions: 1
  Hardware is Aggregated Ethernet interface(s), address is 70ea.1aa8.fa03
  Description: 
  Internet address is 10.10.10.10/31
  MTU 1514 bytes, BW 40000000 Kbit (Max: 40000000 Kbit)
     reliability 255/255, txload 0/255, rxload 0/255
  Encapsulation ARPA,
  Full-duplex, 40000Mb/s
  loopback not set,
  Last link flapped 00:00:24
  ARP type ARPA, ARP timeout 04:00:00
    No. of members in this bundle: 4
      TenGigE0/1/0/1              Full-duplex  10000Mb/s    Active          
      TenGigE0/1/0/2              Full-duplex  10000Mb/s    Active          
      TenGigE0/2/0/1              Full-duplex  10000Mb/s    Active          
      TenGigE0/2/0/2              Full-duplex  10000Mb/s    Active          
  Last input 00:00:16, output 00:00:00
  Last clearing of "show interface" counters never
  30 second input rate 2000 bits/sec, 2 packets/sec
  30 second output rate 1000 bits/sec, 2 packets/sec
     35 packets input, 4344 bytes, 0 total input drops
     0 drops for unrecognized upper-level protocol
     Received 1 broadcast packets, 34 multicast packets
              0 runts, 0 giants, 0 throttles, 0 parity
     0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
     36 packets output, 4106 bytes, 0 total output drops
     Output 1 broadcast packets, 35 multicast packets
     1 output errors, 0 underruns, 0 applique, 0 resets
     0 output buffer failures, 0 output buffers swapped out
     0 carrier transitions
cs

 


 

options

RP/0/RSP0/CPU0:PE2(config-if)# mtu 9216

RP/0/RSP0/CPU0:PE2(config-if)# bundle maximum-active links 2 

RP/0/RSP0/CPU0:PE2(config-if)# bundle minimum-active links 2

   : active 링크가 2개 미만이면 bundle down 또는 Bundle이 활성화 되는데 필요한 활성화된 링크 수

   : 번들에서 허용되는 minimum-active links 수의 범위 1~8

   : 기준 대역폭을 보장해야 하는 경우 max, min link 설정

RP/0/RSP0/CPU0:PE2(config-if)# load interval 30  -------  부하 계산 간격

RP/0/RSP0/CPU0:PE2(config-if)# bundle ?

   maximum-active    활성화할 수 있는 링크 수에 대한 제한 설정

   minimum-active     번들이 활성화되기 위한 최소 기준을 설정합니다.

   shutdown               번들의 모든 링크를 대기 상태로 만듭니다.

   wait-while               이 번들의 구성원에 대한 대기 시간 제한을 설정합니다

 

RP/0/RSP0/CPU0:PE2(config-if)# bundle port-priority <1~65535>

   : 번들 멤버 링크 에 대한 포트 우선 순위를 구성(기본값 32768)

RP/0/RSP0/CPU0:PE2(config-if)# bundle load-balancing hash ?

   dst-ip      대상 IP를 해시 함수로 사용

   src-ip      소스 IP를 해시 함수로 사용

 

 

show lacp  [interface]

show lacp bundle-ether : LACP 포트 및 해당 피어에 대한 자세한 정보를 표시

show lacp counters : LACP 통계 표시

show int bundle-ether [ ]
show bundle bundle-ether  [ ]

 

clear lacp counters

든 번들의 모든 구성원, 특정 번들의 모든 구성원 또는 특정 포트에 대한 LACP(Link Aggregation Control Protocol) 카운터를 지우려면 EXEC 모드에서 clear lacp counters 명령을 입력

clear lacp counters bundle Bundle-Ether bundle-id | Bundle-POS bundle-id } | port GigabitEthernet interface-path-id | TenGigE interface-path-id | POS interface-path-id } ]

 

lacp packet-capture

LACP 패킷을 캡처하려면 EXEC 모드에서 lacp packet-capture

LACP 패킷 캡처를 중지하거나 캡처된 LACP 패킷을 지우려면 EXEC 모드에서 lacp packet-capture <interface> clear | stop

기본값(no parameters)은 라인 카드의 모든 인터페이스에 대해 전역적으로 실행됨.

lacp packet-capture 명령으로 송,수신된 LACP 패킷은 show lacp packet-capture로 확인 할 수 있다. 

lacp packet-capture 명령은 해당 포트 또는 해당 번들에 대해 stop 키워드가 실행될 때까지 LACP 패킷 캡처를 계속한다.

캡처된 패킷은 해당 포트 또는 번들에 대해 clear 키워드가 발행될 때까지 저장되고 계속 표시된다.

LACP 패킷은 한 번에 라인 카드의 한 포트에 대해서만 캡처할 수 있습니다. 포트에서 패킷 캡처를 시작하면 해당 라인 카드의 다른 모든 포트에서 모든 패킷 캡처가 암시적으로 중지되고 지워진다.

 

인터페이스에서 LACP 패킷을 캡처

RP/0/0/CPU0:router# lacp packet-capture gigabitethernet 0/2/0/0 100

인터페이스에서 LACP 패킷을 캡처를 중지

RP/0/0/CPU0:router# lacp packet-capture gigabitethernet 0/2/0/0 stop

인터페이스에서 캡처된 모든 LACP 패킷을 지우기

RP/0/0/CPU0:router# lacp packet-capture gigabitethernet 0/2/0/0 clear

 

lacp period short

lacp period short receive interval ] transmit interval ]

LACP 패킷을 수신하기 위한 시간 간격(ms). 범위는 100~1000이며 100, 200, 300 등과 같이 100의 배수여야 함 (default 1000)

lacp period short 설정 시 장비 간 transmit 구성 후 receive를 구성한다. (경로 플래핑 발생 방지(경로가 지속적으로 위아래로 이동)

lacp period short 제거 시 역순으로 receive 먼저 제거 후 transmit를 제거한다.

 

RP/0/0/CPU0:router# config 
RP/0/0/CPU0:router(config)# interface gigabitethernet 0/1/0/0 
RP/0/0/CPU0:router(config-if)# lacp period short
RP/0/0/CPU0:router(config-if)# 
RP/0/0/CPU0:router(config-if)# interface gigabitethernet 0/1/0/0 
RP/0/0/CPU0:router(config-if)# lacp period short transmit 500 
RP/0/0/CPU0:router(config-if)# 
RP/0/0/CPU0:router(config-if)# interface gigabitethernet 0/1/0/0 
RP/0/0/CPU0:router(config-if)# lacp period short transmit 500 
RP/0/0/CPU0:router(config-if)# commit
RP/0/0/CPU0:router# config 
RP/0/0/CPU0:router(config)# interface gigabitethernet 0/1/0/0 
RP/0/0/CPU0:router(config-if)# lacp period short 
RP/0/0/CPU0:router(config-if)# 
RP/0/0/CPU0:router(config)# interface gigabitethernet 0/1/0/0 
RP/0/0/CPU0:router(config-if)# lacp period short receive 500
RP/0/0/CPU0:router(config-if)# 
RP/0/0/CPU0:router(config)# interface gigabitethernet 0/1/0/0 
RP/0/0/CPU0:router(config-if)# lacp period short receive 500 
RP/0/0/CPU0:router(config-if)# commit

show lacp io

show lacp packet-capture

lacp packet-capture

'네트워크 > LAG' 카테고리의 다른 글

LAG - configuration  (0) 2023.04.29
LAG(LACP) - 개념  (0) 2023.04.29

+ Recent posts