개념 및 특징

여러 개의 물리적인 포트를 하나의 논리적인 포트로 만들어 사용하는 기술이다.

대역폭을 확장하여 병목 현상을 해결하고, 물리적인 포트를 다수 연결함으로써 발생하는 Loop 방지를 할 수 있다.

회선 다중화를 통해 하나의 링크가 Fail이 발생해도 나머지 링크를 통해 지속적인 서비스가 가능하며, Load-Balance 기능으로 효율적인 서비스가 가능함.

 

LACP(Link Aggregation Control Protocol)

802.3ad Standard 프로토콜로 LAG를 동적(Dynamic)으로 설정하기 위한 제어 프로토콜이다. 네트워크 스위치 간의 Link Aggregation 정보를 교환할 수 있다. LAG 정보는 LACPDU(Link Aggregation Control Protocol Data Units)에서 패킷으로 전달되며, LACP 동작 모드를 설정하여 LACPDU의 전송 방법을 정하고, 최대 16개의(8Backup) 포트를 지정할 수 있다.

 

 Temaing, Bonding -서버에서 인터페이스를 묶을 때 사용하는 용어
-windows 계열은 Teaming / Linux 계열은 Bonding
 Ether-Channel (Catylyst)
-네트워크에서 인터페이스를 묶을 때 사용하는 용어
-벤더에 따라서 용어를 조금씩 다르게 사용
 Port-Channel (NX-OS)
 Bundle-Ethernet (IOS-XR)
 Port-Truking

 

구성 조건

Speed, Duplex가 동일해야 한다.

Switch port mode가 동일해야 한다. (Access or Trunk)

Trunk portNative 또는 Allowed VLAN 정보가 동일해야 한다.

Access port에 대한 Access VLAN 구성이 동일해야 한다.

이더채널의 모든 포트는 SPAN(Switched Port Analyzer)이면 안 된다.

이더채널은 보안 설정이 되어 있는 Port는 구성 하지 않는다.

 

 구성 조건

Bandwidth 향상 : 여러 개의 물리적인 인터페이스를 하나의 논리적인 포트로 사용함으로써 대역폭을 늘릴 수 있다.

High Availability (고가용성) : 동일한 포트 그룹에 속한 링크 중 어느 하나가 단절 되더라도 나머지 링크를 통해서 지속적인 서비스가 가능하다.

 Load Balancing (부하분산)

 Loop 방지

 
※ 가용성(High Availability) 또는 부하분산(Load Balancing)을 위해 2개의 Link로 구성.
 

 

 

 가용성(high availability)과 부하분산(load balancing) 둘 다 가능하도록 2개의 link를 active-active 구성 및

- physical switch 2대를 logical switch 1대로 구성

   cisco : vPC

   juniper : VC

 

 

협상 방법

 [ LACP(802.3ad) Negotiation ]
 Active 내가 먼저 상대방에게 LACP message를 보내서 Channeling맺고자한다. (상대 portNegotiation을 주고받음)
 Passive 상대방이 나에게 LACP message를 보내면 그것에 대해 응답만 한다. (양쪽 모두 Passive이면 Ether-Channel이 구현되지 않는다.)
 On LACP로 동작하지 않는다. (채널링을 묶는데, 상대와 Negotiation을 하지 않는다)
 [ PAGP(cisco) Negotiation ]
 Auto 상대방이 나에게 PAGP message를 보내면 그것에 대해 응답만 한다. (양쪽 모두 Auto이면 Ether-Channel이 구현되지 않는다.)
 Desirable 내가 먼저 상대방에게 PAGP message를 보내서 Channeling 맺고자 한다. (상대 portNegotiation을 주고받음.)
 On PAGP로 동작하지 않는다. (채널링을 묶는데, 상대와 Negotiation을 하지 않는다)

 

◆ LACP Parameter

system-priority LACP가 동작하는 각 라우터에 자동 또는 수동으로 생성되며, Master/Slave를 정하여 Master 기준으로 LACP가 동작할 수있도록 한다.(0~65535(default 127), Low Value = High Priority)
system-id 장비들의 Actor(자신) MAC address 정보이다.
system-priorityMAC 값이 조합되어 고유한 LACP system-id가 생성된다.
administrative key LACP를 맺으려는 장비 간에 같은 key 값을 사용하는지 확인하여 채널링을 맺을 때 사용.
port-priority LACP 포트 구성원에 할당 된 인터페이스의 우선순위 설정.
0~65535(default 127) , Low Value = High Priority
port-id 인터페이스의 Index ID
액터 또는 파트너가 포트에 할당 한 포트 번호
flag LACP Activity : Passive = 0 / Active = 1
ACP Timeout : Long = 0 / Short = 1
Aggregation : Individual = 0 / Aggregatable = 1
Synchronization : Not in sync = 0 / in sync = 1
Collecting : Disable = 0 / Enable = 1
Distributed : No = 0, Yes = 1
Defaulted : No = 0, Yes = 1
Expired : No = 0, Yes = 1

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

LAG - configuration  (0) 2023.04.29
[IOS-XR] NCS6008 LAG(Link Aggregation)  (0) 2023.03.21

ㆍfeature(HSRP) enable 해야 HSRP 설정 가능(enterprise services license 필요)

ㆍgroup number 하위에 구성(계층적)

ㆍBFD 지원(iso 미지원)

ㆍdefault HSRPv1 이며, interface 별로 HSRPv2 설정 가능

ㆍgroup 범위 : HSRPv1(0~255), HSRPv2(0~4095)

ㆍHSRP를 disable 시 HSRP 관련 전체 설정이 모두 삭제 됨

ㆍHSRPv1과 v2는 혼용해서 사용 불가(서로 다른 interface에서는 사용 가능)

ㆍsecondary ip도 primary ip로 설정 가능

ㆍ하나의 interface에 다수의 FHRP를 혼용해서 사용하는 것은 권고하지 않음

ㆍobject tracking을 지원하며, 하나의 interface에 다수의 track object 사용 가능 

ㆍHSRP가 구성되면 인터페이스에 대해 ICMP(Internet Control Message Protocol) 리디렉션 메시지가 자동으로 활성화 됨

ㆍHSRPv1을 실행시 source MAC 주소가 virtual MAC 주소이기 때문에 hello 패킷을 전송한 물리적 라우터를 식별할 수 없다.

ㆍHSRPv2는 HSRPv1과는 다른 패킷 형식을 가지고 있다. HSRPv2 패킷은 TLV(타입 길이 값) 형식을 사용하고 패킷을 전송한 물리적 라우터의 MAC 주소를 가진 6바이트 식별자 필드를 가지고 있다.

ㆍhello message v1(224.0.0.2), v2(224.0.0.102)

ㆍhello/dead interval : default 3s/10s (UDP port number 1985)

ㆍpriority : default 100

 

 

 

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
feature hsrp
feature interface-vlan
!
interface Vlan100
  no shutdown
  ip address 10.10.10.10/28
  ipv6 address 1111:1111:1111:c:11:11:111:10/127
  hsrp version 2
  hsrp 100
    preempt 
    priority 110
    ip 10.10.10.12
    timer 1 3
    track 1 decrement 30
  hsrp 100 ipv6
    preempt 
    priority 110
    ip 1111:1111:1111:c:11:11:111:12
    timer 1 3
    track 1 decrement 30
!
Track 1 interface Ethernet1/1 line-protocol
!
interface Ethernet1/2
  switchport access vlan 100
  spanning-tree port type edge
cs

 

 

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
feature hsrp
feature interface-vlan
!
interface Vlan100
  no shutdown
  ip address 10.10.10.11/28
  ipv6 address 1111:1111:1111:c:11:11:111:11/127
  hsrp version 2
  hsrp 100
    preempt 
    ip 10.10.10.12
    timer 1 3
  hsrp 100 ipv6
    preempt 
    ip 1111:1111:1111:c:11:11:111:12
    timer 1 3
!
interface Ethernet1/2
  switchport access vlan 100
  spanning-tree port type edge
cs

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

HSRP  (0) 2025.02.12

- 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

인접한 두 시스템의 forwarding plane 간에 양방향 전송을 통해서 빠르게 장애를 감지하기 위한 프로토콜이다.

지정된 간격으로 Hello packet을 주고 받으며, 지정된 시간 동안 Neighbor로 부터 Hello packet을 수신하지 못하면 장애로 판단한다.

 

* 인터페이스에 BFD 적용 전 인터페이스 모드에서 no ip redirects 명령 또는 no ipv6 redirects 명령을 적용

* SVI, Ethernet, Port-channel 인터페이스에서 구성할 수 있다.
* 포트 채널 인터페이스에서 실행되는 경우 BFD에는 250 * 3밀리초의 타이머 값 제한이 있다.
* 인터페이스 구성 모드에서 bfd interval 명령을 구성하면 bfd echo 모드가 기본적으로 활성화된다.

* 인터페이스 구성 모드에서 no ip redirect(BFD echo가 필요한 경우) 및 no bfd echo를 권장한다.
* BFD echo 모드를 사용하기 전에 높은 CPU 사용률을 방지하기 위해 no ip redirect 명령을 입력하여 ICMP redirect message 전송을 비활성화해야 한다

 

BFD를 맺고자하는 장비간에 default bfd 설정 시 두 장비 모두 next-hop이 서로를 바라보도록 디폴트 라우트 설정이 되어야 bfd 네이버를 맺고 routing table에도 Entry가 등록된다. (서로 바라보는 디폴트가 다르면 다이렉트 연결로 인해 핑은 될 수 있으나 bfd 네이버를 맺지 못하고 라우팅 테이블에 디폴트 경로도 올라오지 않는다.)

 

 

-

1
2
3
4
5
6
7
8
9
10
11
12
sW1(config)#do sh run int gi1/1
interface GigabitEthernet1/1
 no switchport
 ip address 10.10.10.1 255.255.255.0
 negotiation auto
 bfd interval 555 min_rx 555 multiplier 5
 no ip redirects
 no bfd echo
!
sW1(config)#do sh run | se ip route                   
ip route static bfd GigabitEthernet1/1 10.10.10.2
ip route 2.2.0.0 255.255.0.0 GigabitEthernet1/1 10.10.10.2
cs
 
1
2
3
4
5
6
7
8
9
10
11
12
sW2(config)#do sh run int gi1/1
interface GigabitEthernet1/1
 no switchport
 ip address 10.10.10.2 255.255.255.0
 negotiation auto
 bfd interval 999 min_rx 777 multiplier 8
 no ip redirects
 no bfd echo
!
SW2(config)#do sh run | se ip route                   
ip route static bfd GigabitEthernet1/1 10.10.10.1
ip route 1.1.0.0 255.255.0.0 GigabitEthernet1/1 10.10.10.1
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
sW1#sh bfd ne det
 
IPv4 Sessions
NeighAddr                              LD/RD         RH/RS     State     Int
10.10.10.2                              1/1          Up        Up        Gi1/1
Session state is UP and not using echo function.
Session Host: Software
OurAddr: 10.10.10.1     
Handle: 1
Local Diag: 0, Demand mode: 0, Poll bit: 0
MinTxInt: 555000, MinRxInt: 555000, Multiplier: 5
Received MinRxInt: 777000, Received Multiplier: 8
Holddown (hits): 7401(0), Hello (hits): 777(363)
Rx Count: 25, Rx Interval (ms) min/max/avg: 1/980/739 last591 ms ago
Tx Count: 30, Tx Interval (ms) min/max/avg: 1/772/615 last486 ms ago
Elapsed time watermarks: 0 0 (last0)
Registered protocols: IPv4 Static CEF 
Uptime: 00:03:06
Last packet: Version: 1                  - Diagnostic: 0
             State bit: Up               - Demand bit: 0
             Poll bit: 0                 - Final bit: 0
             C bit: 0                                   
             Multiplier: 8               - Length: 24
             My Discr.: 1                - Your Discr.: 1
             Min tx interval: 999000     - Min rx interval: 777000
             Min Echo interval: 0   
 
SW2#sh bfd ne det
 
IPv4 Sessions
NeighAddr                              LD/RD         RH/RS     State     Int
10.10.10.1                              1/1          Up        Up        Gi1/1
Session state is UP and not using echo function.
Session Host: Software
OurAddr: 10.10.10.2     
Handle: 1
Local Diag: 0, Demand mode: 0, Poll bit: 0
MinTxInt: 999000, MinRxInt: 777000, Multiplier: 8
Received MinRxInt: 555000, Received Multiplier: 5
Holddown (hits): 3593(0), Hello (hits): 999(221)
Rx Count: 43, Rx Interval (ms) min/max/avg: 1/772/639 last292 ms ago
Tx Count: 36, Tx Interval (ms) min/max/avg: 1/988/759 last557 ms ago
Elapsed time watermarks: 0 0 (last0)
Registered protocols: IPv4 Static CEF 
Uptime: 00:03:14
Last packet: Version: 1                  - Diagnostic: 0
             State bit: Up               - Demand bit: 0
             Poll bit: 0                 - Final bit: 0
             C bit: 0                                   
             Multiplier: 5               - Length: 24
             My Discr.: 1                - Your Discr.: 1
             Min tx interval: 555000     - Min rx interval: 555000
             Min Echo interval: 0  
cs

 

-

bfd interval 300 min_rx 300 multiplier 3
   - interval : BFD 제어 패킷이 BFD 피어로 전송되는 속도(밀리초)를 지정합니다. 범위는 50 ~ 999 (default 50)
   - min_rx : BFD 제어 패킷이 BFD 피어로부터 수신될 것으로 예상되는 속도(밀리초)를 지정합니다. 범위는 50 ~ 999 (default 50)
   - multiplier : BFD가 피어를 사용할 수 없다고 선언하고 Layer3 BFD 피어에 실패를 알리기 전에 BFD 피어에서 누락되어야 하는 연속 BFD 제어 패킷의 수를 지정한다.

                  범위는 1 ~ 50 (default 3)
   - 와이어샤크 BFD 패킷 확인 시 mix_rx는 Echo Interval 값이 되고, Multiplier는 Detect Time Multiplier가 된다.

 

bfd echo
   - BFD echo 모드는 인터페이스 구성 모드에서 bfd interval 명령을 사용하여 BFD를 구성한 경우 기본적으로 활성화됨.
   - 키워드 없이 no bfd echo 명령을 입력하면 에코 패킷 전송이 꺼지고, 스위치가 BFD 인접 스위치에서 수신한 에코 패킷을 전달하지 않으려는 것을 나타낸다.
   - 활성화되면 원하는 최소 에코 전송 간격과 필요한 최소 전송 간격 값은 각각 bfd interval milliseconds min_rx parameters에서 가져온다.

 

SVI 인터페이스에서 구성시 다음 단계를 수행

* SVI의 BFD static session은 해당 SVI에서 bfd interval [ms] min_rx [ms] Multiplier [multiplier-value] 명령이 비활성화되고 활성화된 후에만 설정

 

1. SVI에서 BFD 타이머를 활성화합니다.
bfd interval <milliseconds> min_rx <milliseconds> multiplier <multiplier-value>

2. 스태틱 라우트 IP 경로에 대해 BFD 활성화
ip route static bfd <interface-type interface-number ip-address>

3. SVI에서 BFD 타이머를 비활성화했다가 다시 활성화합니다.
no bfd interval <milliseconds> min_rx <milliseconds> multiplier <multiplier-value>
bfd interval <milliseconds> min_rx <milliseconds> multiplier <multiplier-value>

* 모델 : C93180YC-EX

* 기존OS : nxos.9.3.7.bin

* 변경OS : nxos.7.0.3.I7.3.bin

 

* 9.3.5 -----> 7.0.3.I7.3 OS 다운그레이드 시 OS install fail

 : install deactivate icam  설정 후 OS 재설치  (9.3.5 버전 부터 ICAM 기능이 활성화되어있으며 '7.'버전에서는 ICAM을 지원하지 않는다. 이로인해 다운그레이드 전 ICAM 비활성가 선행되어야 한다.)

 

ICAM 관련 링크

https://www.cisco.com/c/en/us/td/docs/switches/datacenter/nexus9000/sw/93x/icam/b-cisco-nexus-9000-series-nx-os-icam-configuration-guide-93x/b-cisco-nexus-9000-series-nx-os-icam-configuration-guide-93x_chapter_010.html

 


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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
switch# install all nxos bootflash:nxos.7.0.3.I7.3.bin
Installer will perform compatibility check first. Please wait. 
Installer is forced disruptive
 
Verifying image bootflash:/nxos.7.0.3.I7.3.bin for boot variable "nxos".
[####################] 100-- SUCCESS
 
Verifying image type.
[####################] 100-- SUCCESS
 
Preparing "nxos" version info using image bootflash:/nxos.7.0.3.I7.3.bin.
[####################] 100-- SUCCESS
 
Preparing "bios" version info using image bootflash:/nxos.7.0.3.I7.3.bin.
[####################] 100-- SUCCESS
 
 
"Running-config contains configuration that is incompatible with the new image (strict incompatibility). 
 Please run 'show incompatibility-all nxos <image>' command to find out which feature needs to be disabled.".
 
Performing module support checks.
[####################] 100-- SUCCESS
 
Notifying services about system upgrade.
[#                   ]   0-- FAIL.
Return code 0x437F0001 ((null)).
 
"Running-config contains configuration that is incompatible with the new image (strict incompatibility). 
 Please run 'show incompatibility-all nxos <image>' command to find out which feature needs to be disabled."
Service "icam" in vdc 1: iCAM service downgrade to the target version is not supported.
Please deactivate iCAM using 'install deactivate icam' before proceeding with downgrade.
 
Pre-upgrade check failed. Return code 0x437F0001 ((null)).
switch
switch#  
switch# show incompatibility-all nxos bootflash:nxos.7.0.3.I7.3.bin
Checking incompatible configuration(s) for vdc 'switch':
--------------------------------------------------------
The following configurations on active are incompatible with the system image 
1) Service : icam , Capability : CAP_FEATURE_ICAM
Description : iCAM service is running.
Capability requirement : STRICT
Enable/Disable command : Deactivate iCAM using 'install deactivate icam'
2) Service : bootvar , Capability : CAP_FEATURE_IMAGE_SIGNATURE_VERIFY
Description : feature signature-verification enabled
Capability requirement : LOOSE
Enable/Disable command : Disable image signature verification by using no feature signature-verification
 
 
Checking dynamic incompatibilities:
-----------------------------------
No incompatible configurations
switch
switch# sh feature
Feature Name          Instance  State   
--------------------  --------  --------
icam                   1          enabled
 
###########################################################################################
###########################################################################################
###########################################################################################
###########################################################################################
 
switch
switch# install deactivate icam
 
=================================================================================
 WARNING!!
 This operation will remove 'icam-2.0.0.0-9.3.7.lib32_n9000' related configuration from running-configuration
 on successful completion. Update startup-configuration accordingly.
==================================================================================
 
[####################] 100%
Install operation 1 completed successfully at Thu Feb  2 17:39:38 2023
 
switch
switch# sh install all impact nxos bootflash:nxos.7.0.3.I7.3.bin
Installer will perform impact only check. Please wait. 
 
Verifying image bootflash:/nxos.7.0.3.I7.3.bin for boot variable "nxos".
[####################] 100-- SUCCESS
 
Verifying image type.
[####################] 100-- SUCCESS
 
Preparing "nxos" version info using image bootflash:/nxos.7.0.3.I7.3.bin.
[####################] 100-- SUCCESS
 
Preparing "bios" version info using image bootflash:/nxos.7.0.3.I7.3.bin.
[####################] 100-- SUCCESS
 
Warning: the running-config contains configuration that is incompatible with the new image and will be lost (loose incompatibility).
Please run 'show incompatibility-all nxos <image>' command for more details .
[####################] 100-- SUCCESS
 
Performing module support checks.
[####################] 100-- SUCCESS
 
Notifying services about system upgrade.
[####################] 100-- SUCCESS
 
 
 
Compatibility check is done:
Module  bootable          Impact  Install-type  Reason
------  --------  --------------  ------------  ------
     1       yes      disruptive         reset  Incompatible image for ISSU
 
 
 
Images will be upgraded according to following table:
Module       Image                  Running-Version(pri:alt)           New-Version  Upg-Required
------  ----------  ----------------------------------------  --------------------  ------------
     1        nxos                                    9.3(7)           7.0(3)I7(3)           yes
     1        bios     v07.69(04/07/2021):v07.69(04/07/2021)    v07.61(04/06/2017)            no
 
 
switch
cs

 

 

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

ACI OS USB install (NXOS --> ACI OS)  (0) 2024.02.26
ACI OS USB install (ACI --> ACI)  (0) 2023.06.11
[NXOS] Nexus C93180YC-EX - OS install (USB)  (0) 2023.02.02

1. USB 장착

2. username admin password anne123!

3. copy running-config startup-config

4. dir bootflash:

    dir usb1:

5. copy usb1:<nxos.7.0.3.I7.3.bin> bootflash:

6. [선택] show file bootflash://sup-1/nxos.7.0.3.I2.1.bin sha256sum

7. [선택] show install all impact nxos bootflash:nxos.7.0.3.I7.3.bin

8. install all nxos bootflash:nxos.7.0.3.I7.3.bin

9. reload

 

9.3.5 버전 이후 부터는 다운그레이드 시 ICAM 비활성화 한 이후 진행해주셔야 다운그레이드 가능

install deactivate icam

 

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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
switch2023 Feb  2 05:50:40 switch %$ VDC-1 %$  %USER-2-SYSTEM_MSG: &lt;&lt;%USBHSD-2-USB_SWAP&gt;&gt; USB insertion or removal detected - usbhsd
2023 Feb  2 05:50:40 switch %$ VDC-1 %$  %USER-2-SYSTEM_MSG: &lt;&lt;%USBHSD-2-MOUNT&gt;&gt; USB1: online  - usbhsd
switch#  
switch
switch(config)# username admin password anne123!     //admin password 설정 
WARNING: DES is a weak encryption algorithm and currently the default. This will be deprecated and AES128 will be made default in an upcoming release. 
switch#  
switch
switch# copy running-config startup-config     //running-config > startup-config 저장
[########################################] 100%
Copy complete, now saving to disk (please wait)...
switch#  
switch#  
switch
switch# dir bootflash:?     //boot directory 확인
  bootflash:///            
  bootflash://module-1/    
  bootflash://sup-1/       
  bootflash://sup-active/  
  bootflash://sup-local/   
 
switch# dir bootflash:
 1777998029    Sep 24 08:18:36 2022  aci-n9000-dk9.14.1.2g.bin
       4096    Sep 24 08:12:47 2022  eem_snapshots/
       4096    Sep 24 08:24:39 2022  home/
       4096    Sep 24 08:20:55 2022  lost+found/
 
switch#  
switch
switch# copy usb1:nxos.7.0.3.I7.3.bin bootflash:     //usb1의 OS --> bootflash에 복사
Copy progress 100% 962771KB
Copy complete, now saving to disk (please wait)...
Copy complete.
switch#  
switch
switch# dir bootflash:
 1777998029    Sep 24 08:18:36 2022  aci-n9000-dk9.14.1.2g.bin
       4096    Sep 24 08:12:47 2022  eem_snapshots/
       4096    Sep 24 08:24:39 2022  home/
       4096    Sep 24 08:20:55 2022  lost+found/
  962771456    Feb 02 05:53:29 2023  nxos.7.0.3.I7.3.bin
 
switch#  
switch
switch# show file bootflash://sup-1/nxos.7.0.3.I2.1.bin sha256sum     //sha256 무결성 검증
switch#  
switch
switch# show install all impact nxos bootflash:nxos.7.0.3.I7.3.bin     //업그레이드 수행 전 소프트웨어 업그레이드의 영향을 확인
Installer will perform impact only check. Please wait. 
 
Verifying image bootflash:/nxos.7.0.3.I7.3.bin for boot variable "nxos".
[####################] 100-- SUCCESS
 
Verifying image type.
[####################] 100-- SUCCESS
 
Preparing "nxos" version info using image bootflash:/nxos.7.0.3.I7.3.bin.
[####################] 100-- SUCCESS
 
Preparing "bios" version info using image bootflash:/nxos.7.0.3.I7.3.bin.
[####################] 100-- SUCCESS
 
Warning: the running-config contains configuration that is incompatible with the new image and will be lost (loose incompatibility).
Please run 'show incompatibility-all nxos &lt;image&gt;' command for more details .
[####################] 100-- SUCCESS
 
Performing module support checks.
[####################] 100-- SUCCESS
 
Notifying services about system upgrade.
[####################] 100-- SUCCESS
 
 
 
Compatibility check is done:
Module  bootable          Impact  Install-type  Reason
------  --------  --------------  ------------  ------
     1       yes      disruptive         reset  Incompatible image for ISSU
 
 
 
Images will be upgraded according to following table:
Module       Image                  Running-Version(pri:alt)           New-Version  Upg-Required
------  ----------  ----------------------------------------  --------------------  ------------
     1        nxos                                    9.3(3)           7.0(3)I7(3)           yes
     1        bios     v05.47(04/28/2022):v05.47(04/28/2022)    v05.28(01/18/2018)            no
switch
switch
switch# install all nxos bootflash:nxos.7.0.3.I7.3.bin     //OS install
Installer will perform compatibility check first. Please wait. 
Installer is forced disruptive
 
Verifying image bootflash:/nxos.7.0.3.I7.3.bin for boot variable "nxos".
[####################] 100-- SUCCESS
 
Verifying image type.
[####################] 100-- SUCCESS
 
Preparing "nxos" version info using image bootflash:/nxos.7.0.3.I7.3.bin.
[####################] 100-- SUCCESS
 
Preparing "bios" version info using image bootflash:/nxos.7.0.3.I7.3.bin.
[####################] 100-- SUCCESS
 
Warning: the running-config contains configuration that is incompatible with the new image and will be lost (loose incompatibility).
Please run 'show incompatibility-all nxos &lt;image&gt;' command for more details .
[####################] 100-- SUCCESS
 
Performing module support checks.
[####################] 100-- SUCCESS
 
Notifying services about system upgrade.
[####################] 100-- SUCCESS
 
 
 
Compatibility check is done:
Module  bootable          Impact  Install-type  Reason
------  --------  --------------  ------------  ------
     1       yes      disruptive         reset  Incompatible image for ISSU
 
 
 
Images will be upgraded according to following table:
Module       Image                  Running-Version(pri:alt)           New-Version  Upg-Required
------  ----------  ----------------------------------------  --------------------  ------------
     1        nxos                                    9.3(3)           7.0(3)I7(3)           yes
     1        bios     v05.47(04/28/2022):v05.47(04/28/2022)    v05.28(01/18/2018)            no
 
 
Switch will be reloaded for disruptive upgrade.
Do you want to continue with the installation (y/n)?  [n] y
 
 
Install is in progress, please wait.
 
Performing runtime checks.
[####################] 100-- SUCCESS
 
Setting boot variables.
[####################] 100-- SUCCESS
 
Performing configuration copy.
[####################] 100-- SUCCESS
 
Module 1: Refreshing compact flash and upgrading bios/loader/bootrom.
Warning: please do not remove or power off the module at this time.
[####################] 100-- SUCCESS
 
Converting startup config.
[####################] 100-- SUCCESS
2023 Feb  2 06:32:30 switch %$ VDC-1 %$ %VMAN-2-ACTIVATION_STATE: Successfully deactivated virtual service 'guestshell+'  
 
 
Finishing the upgrade, switch will reboot in 10 seconds.     //OS install 완료, 10초 후 자동 reboot
switch
cs

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

ACI OS USB install (NXOS --> ACI OS)  (0) 2024.02.26
ACI OS USB install (ACI --> ACI)  (0) 2023.06.11
[NXOS] Nexus OS install (ICAM serivce 관련)  (0) 2023.02.03

+ Recent posts