Dell Networking SONiC 정적 및 LACP PortChannel

Summary: 이 문서에서는 Dell Networking SONiC OS를 실행하는 스위치의 정적 및 LACP PortChannel에 대해 설명합니다. 이 문서에서는 MC-LAG에 대해 다루지 않습니다. 이 문서에서는 Dell SONiC 4.1을 실행하는 스위치를 사용합니다.

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Instructions

문서의 사전 요구 사항

구성에서 표준 인터페이스 명명을 사용하고 있습니다. Dell SONiC의 다양한 인터페이스 명명 모드에 대한 자세한 내용은 Dell Networking S-Series를 참조하십시오. 기본 인터페이스 구성 - SONIC 4.0
 

이 문서에는 다음 토폴로지가 사용되어 있습니다.
image.png

PortChannel, Eth 1/1, 1/2 및 1/3에 추가할 인터페이스는 속도, 듀플렉스 및 MTU에 대해 동일하게 구성되어야 합니다.
 

 

인덱스

Portchannel이란 무엇입니까?
기억
해야 할 사항정적 PortChannel 또는 ON 모드
LACP PortChannel 또는 활성 모드
최소 링크
Mtu                        

 

Portchannel이란 무엇입니까?

포트 채널은 결합 채널(Link Aggregation Group 또는 LAG 또는 PortChannel)을 형성하기 위해 함께 집계할 수 있는 하나 이상의 링크 세트입니다.

PortChannel 생성의 이점

  • 이를 통해 이중화, 대역폭 증가 및 트래픽 로드 밸런싱 개선이 가능합니다.
  • 포트 채널은 구성원 링크의 대역폭을 집계합니다.
  • 구성원 포트에 장애가 발생하면 트래픽이 나머지 포트로 리디렉션됩니다.

포트 채널 유형

PortChannel은 다음 중 하나로 구성할 수 있습니다.

  • 정적 PortChannel 또는 ON 모드
  • LACP PortChannel 또는 활성 모드
 

염두에 두어야 할 부분

  • LLDP를 사용하여 피어 측이 LLDP를 지원하는 경우 링크 연결을 확인합니다.
  • PortChannel의 최대 인터페이스 수는 32개입니다.
  • PortChannel은 L2 Switchport 모드 및 L3 라우팅 포트 모드로 구성할 수 있습니다(Ipv4/IPV6 주소 할당).

다음은 포트 채널에 인터페이스를 추가할 때 기억해야 할 사항입니다.

  • 모든 구성원은 동일한 인터페이스 유형(예: 이더넷)이어야 합니다.
  • 모든 구성원 인터페이스에는 동일한 속도/듀플렉스/MTU가 있어야 합니다.
  • 인터페이스에 기본이 아닌 L2/L3 구성 설정이 포함되어서는 안됩니다. 설명 및 종료 또는 종료 명령만 지원되지 않습니다.
  • 구성원 인터페이스에 IP 주소 또는 정적 MAC 주소를 추가할 수 없습니다.
  • 하나의 포트 채널에만 인터페이스를 할당할 수 있습니다.
 

유용한 정보

인터페이스에서 기본 인터페이스를 기본 구성으로 사용할 수 있습니다. 이렇게 하면 PortChannel에 추가하기 전에 인터페이스의 모든 구성을 쉽게 정리할 수 있습니다.

샘플 구성

Lets Cleanup the configuration of Eth 1/1 before adding the interface to portchannel

DELLSONiC# show running-configuration interface Eth 1/1
!
interface Eth1/1
mtu 9100
speed 25000
shutdown
switchport trunk allowed Vlan 1-4094

Lets execute default interface Eth1/1

DELLSONiC# configure
DELLSONiC(config)# default interface Eth 1/1

We can see the interface configuration is defaulted

DELLSONiC(config)# do show running-configuration interface Eth 1/1
!
interface Eth1/1
mtu 9100
speed 25000
shutdown
DELLSONiC(config)#
 
 

정적 PortChannel 또는 ON 모드

정적 PortChannel 또는 ON 모드는 PortChannel을 구성하는 간단한 방법입니다. 연결된 디바이스가 LACP를 지원하지 않는 경우 이 모드를 사용할 수 있습니다. 정적 LAG에는 LACP와 같은 집계 정보를 교환할 수 있는 메커니즘이 없으므로 링크 중 하나가 나타나면 패킷 전달이 시작됩니다.

PortChannel


에 인터페이스 추가를 구성합니다.

구성 구문

구성

설명

DELLSONiC(config)# interface Ethernet 

인터페이스를 구성합니다.

DELLSONiC(config)# interface range Ethernet 

*선택 사항: 다양한 인터페이스를 구성합니다.

DELLSONiC(conf-if-EthernetX)# channel-group 

인터페이스에서 PortChannel을 정의합니다.

DELLSONiC(conf-if-EthernetX)# no channel-group 

포트 채널에서 인터페이스를 제거합니다.

DELLSONiC(conf-if-EthernetX)# no shutdown

인터페이스를 활성화합니다.

 

샘플 구성
 
Lets Configure Portchannel 1

admin@DELLSONiC:~$ sonic-cli
DELLSONiC# configure
DELLSONiC(config)# interface PortChannel 1 mode on
DELLSONiC(config-if-po1)# no shutdown
DELLSONiC(config-if-po1)# exit

Lets add interface Eth 1/1 as part of Portchannel 1

DELLSONiC(config)# interface Eth 1/1
DELLSONiC(config-if-Eth1/1)# channel-group 1
DELLSONiC(config-if-Eth1/1)# no shutdown
DELLSONiC(config-if-Eth1/1)# exit

Lets use interface range command to add interface Eth 1/2 and Eth 1/3 as part of Portchannel 1

DELLSONiC(config)# interface range Eth 1/2-1/3
%Info: Configuring only existing interfaces in range
DELLSONiC(config-if-range-eth**)# channel-group 1
DELLSONiC(config-if-range-eth**)# no shutdown
DELLSONiC(config-if-range-eth**)# end
DELLSONiC#
  

명령 표시 인터페이스 PortChannel 를 사용하고 PortChannel 요약을 표시 하여 PortChannel의 상태를 확인합니다.

샘플 출력

DELLSONiC# show interface PortChannel 1
PortChannel1 is up, line protocol is up, reason oper-up, mode Static
Hardware is PortChannel, address is XX:XX:XX:XX:XX:XX
Minimum number of links to bring PortChannel up is 1
Mode of IPV4 address assignment: not-set
Mode of IPV6 address assignment: not-set
Graceful shutdown: Disabled
MTU 9100
LineSpeed 75.0GB
Events:
all-links-down at 2023-09-19T17:24:05.257874Z
lacp-fail at 2023-09-19T17:25:15.406803Z
portchannel-up at 2023-09-19T17:25:15.417415Z
Members in this channel: Eth1/1
Members in this channel: Eth1/2
Members in this channel: Eth1/3
Last clearing of "show interface" counters: never
10 seconds input rate 2 packets/sec, 2968 bits/sec, 371 Bytes/sec
10 seconds output rate 0 packets/sec, 0 bits/sec, 0 Bytes/sec
Input statistics:
          1320 packets, 243306 octets
          0 Multicasts, 0 Broadcasts, 1320 Unicasts
          0 error, 28 discarded
Output statistics:
          818 packets, 190127 octets
          0 Multicasts, 0 Broadcasts, 818 Unicasts
          0 error, 0 discarded
Time since last interface status change: 00:03:23
 
DELLSONiC# show PortChannel summary
Flags(oper-status):  D - Down U - Up (portchannel) P - Up in portchannel (members)
----------------------------------------------------------------------------------------------------------------------------
Group               PortChannel                   Type                Protocol          Member Ports
----------------------------------------------------------------------------------------------------------------------------
1                   PortChannel1   (U)            Eth                 NONE                 Eth1/1(P)
                                                                                           Eth1/2(P)
                                                                                           Eth1/3(P)

 

LACP PortChannel 또는 활성 모드

포트 채널은 결합 채널(Link Aggregation Group 또는 LAG 또는 포트 채널)을 형성하기 위해 함께 집계할 수 있는 하나 이상의 링크 세트입니다.
LACP(Link Aggregate Control Protocol)는 여러 링크에서 LACPDU(Peer Exchange)를 사용하여 지속적으로 다양한 링크의 집계 기능을 확인하고 지정된 시스템 쌍 간에 달성 가능한 최대 수준의 집선 기능을 지속적으로 제공합니다. 

PortChannel

구성 구문 구성

구성

설명

admin@DELLSONiC:~$ sonic-cli

DELL MF-CLI에 로그인

DELLSONiC# configure terminal

구성 모드로 들어갑니다.

DELLSONiC(config)# interface PortChannel  

PortChannel을 LACP 활성 포트 채널로 구성합니다.

sonic(config)# interface PortChannel  mode active

(선택 사항) PORTChannel을 LACP 활성 PortChannel로 구성합니다. 활성 모드를 지정할 수 있습니다. (기본값)

DELLSONiC(conf-if-poX)# no shutdown

PortChannel을 해제합니다.

DELLSONiC(conf-if-poX)#exit

PortChannel에서 종료합니다.


포트 채널에 인터페이스를 추가합니다.

구성 구문

구성

설명

DELLSONiC(config)# interface Ethernet 

인터페이스를 구성합니다.

DELLSONiC(config)# interface range Ethernet 

*선택 사항: 다양한 인터페이스를 구성합니다.

DELLSONiC(conf-if-EthernetX)# channel-group 

인터페이스에서 PortChannel을 정의합니다.

DELLSONiC(conf-if-EthernetX)# no channel-group 

포트 채널에서 인터페이스를 제거합니다.

DELLSONiC(conf-if-EthernetX)# no shutdown

인터페이스를 활성화합니다.


샘플 구성

Lets Configure Portchannel 1

admin@DELLSONiC:~$ sonic-cli
DELLSONiC# configure
DELLSONiC(config)# interface PortChannel 1
DELLSONiC(config-if-po1)# no shutdown
DELLSONiC(config-if-po1)# exit

Lets add interface Eth 1/1 as part of Portchannel 1

DELLSONiC(config)# interface Eth 1/1
DELLSONiC(config-if-Eth1/1)# channel-group 1
DELLSONiC(config-if-Eth1/1)# no shutdown
DELLSONiC(config-if-Eth1/1)# exit

Lets use interface range command to add interface Eth 1/2 and Eth 1/3 as part of Portchannel 1

DELLSONiC(config)# interface range Eth 1/2-1/3
%Info: Configuring only existing interfaces in range
DELLSONiC(config-if-range-eth**)# channel-group 1
DELLSONiC(config-if-range-eth**)# no shutdown
DELLSONiC(config-if-range-eth**)# end
DELLSONiC#


명령 표시 인터페이스 PortChannel 를 사용하고 PortChannel 요약을 표시 하여 PortChannel의 상태를 확인합니다.

샘플 출력

DELLSONiC# show interface PortChannel 1
PortChannel1 is up, line protocol is up, reason oper-up, mode LACP
Hardware is PortChannel, address is XX:XX:XX:XX:XX:XX
Minimum number of links to bring PortChannel up is 1
Mode of IPV4 address assignment: not-set
Mode of IPV6 address assignment: not-set
Fallback: Disabled
Graceful shutdown: Disabled
MTU 9100
LineSpeed 75.0GB
Events:
all-links-down at 2023-09-19T16:19:23.406682Z
lacp-fail at 2023-09-19T16:37:02.782825Z
portchannel-up at 2023-09-19T16:37:42.564118Z
LACP mode ACTIVE interval SLOW priority 65535 address XX:XX:XX:XX:XX:XX
Members in this channel: Eth1/1(Selected)
LACP Actor port 1  address XX:XX:XX:XX:XX:XX key 1
LACP Partner port 1  address XX:XX:XX:XX:XX:XX key 1
Members in this channel: Eth1/2(Selected)
LACP Actor port 2  address XX:XX:XX:XX:XX:XX key 1
LACP Partner port 2  address XX:XX:XX:XX:XX:XX key 1
Members in this channel: Eth1/3(Selected)
LACP Actor port 3  address XX:XX:XX:XX:XX:XX key 1
LACP Partner port 3  address XX:XX:XX:XX:XX:XX key 1
Last clearing of "show interface" counters: never
10 seconds input rate 0 packets/sec, 0 bits/sec, 0 Bytes/sec
10 seconds output rate 0 packets/sec, 0 bits/sec, 0 Bytes/sec
Input statistics:
          107 packets, 20173 octets
          0 Multicasts, 0 Broadcasts, 107 Unicasts
          0 error, 16 discarded
Output statistics:
          209 packets, 34421 octets
         0 Multicasts, 0 Broadcasts, 209 Unicasts
          0 error, 0 discarded
Time since last interface status change: 00:02:04
DELLSONiC# show PortChannel summary
Flags(oper-status):  D - Down U - Up (portchannel) P - Up in portchannel (members)
----------------------------------------------------------------------------------------------------------------------------
Group               PortChannel                   Type                Protocol          Member Ports
----------------------------------------------------------------------------------------------------------------------------
1                   PortChannel1   (U)            Eth                 LACP                 Eth1/1(P)
                                                                                           Eth1/2(P)
                                                                                           Eth1/3(P)


 

최소 링크

최소 링크를 사용하여 포트 채널을 가동하도록 최소 링크 수를 구성할 수 있습니다. 기본값은 0입니다.

샘플 구성

admin@DELLSONiC:~$ sonic-cli
DELLSONiC# configure
DELLSONiC(config)# interface PortChannel 1
DELLSONiC(config-if-po1)# min-links 2
DELLSONiC(config-if-po1)# end
DELLSONiC#

샘플 출력
DELLSONiC# show PortChannel summary
Flags(oper-status):  D - Down U - Up (portchannel) P - Up in portchannel (members)
----------------------------------------------------------------------------------------------------------------------------
Group               PortChannel                   Type                Protocol          Member Ports
----------------------------------------------------------------------------------------------------------------------------
1                   PortChannel1   (U)            Eth                 LACP                 Eth1/1(P)
                                                                                           Eth1/2(P)
                                                                                           Eth1/3(P


포트 Eth 1/2 및 Eth 1/3 링크가 다운된 것을 고려하십시오. Eth 1/1은 UP입니다. 하나의 링크만 작동 중이고 최소 링크는 2이므로 PortChannel 1이 다운됩니다.

Portchannel 1이 다운되고 최소 링크인 이유를 확인할 수 있습니다.

샘플 출력

DELLSONiC# show interface status (Output grepped for brevity)
--------------------------------------------------------------------------------------------------------------------------------------
Name                Description                   Oper           Reason         AutoNeg   Speed          MTU            Alternate Name
--------------------------------------------------------------------------------------------------------------------------------------
Eth1/1              -                             up             oper-up        off       25000          9100           Ethernet0
Eth1/2              -                             down           admin-down     off       25000          9100           Ethernet1
Eth1/3              -                             down           admin-down     off       25000          9100           Ethernet2

PortChannel1        -                             down           min-links      -         75000          9100           -             


 

Mtu

포트 채널 인터페이스에서 MTU를 구성할 수 있습니다. Bellow는 PortChannel에서 MTU를 구성하기 전에 알아야 할 핵심 사항입니다. 

  • 포트 채널 MTU를 구성하기 전에 포트 채널에 할당된 인터페이스에서 MTU를 구성합니다.
  • PortChannel의 기본 MTU는 9100입니다.
  • 포트 채널의 모든 구성원은 MTU 값이 동일해야 합니다.
  • 태그가 지정된 VLAN이 있는 구성원 인터페이스에는 태그가 지정되지 않은 구성원보다 4바이트 더 높은 링크 MTU가 있어야 패킷 태그를 계산할 수 있습니다.
  • 포트 채널 구성원 인터페이스의 MTU가 포트 채널 MTU보다 크거나 같은지 확인합니다.
  • 시스템은 포트 채널 또는 포트 채널 구성원에 구성된 가장 낮은 MTU 값을 포트 채널 MTU로 선택합니다.

예제

포트 채널에는 Link MTU가 1522이고 IP MTU가 1500이고 Link MTU가 1518이고 IP MTU가 1500인 태그가 없는 구성원이 포함된 포트 채널이 포함되어 있습니다.
포트 채널의 Link MTU는 1518바이트보다 높을 수 없으며 IP MTU는 1500바이트를 초과할 수 없습니다.

참고: 

  • 인터페이스의 MTU 구성은 인터페이스의 IP 트래픽에 대한 MTU(Maximum Transmission Unit) 프레임 크기를 구성합니다.
  • show interface 에는 IP MTU가 표시됩니다.
  • 포트 채널 MTU를 구성한 후 포트 채널 구성원에 MTU를 구성하는 경우 포트 채널 MTU가 업데이트되지 않을 수 있습니다.


샘플 출력

PortChannel의 MTU를 1500으로 변경해 보겠습니다(기본값은 9100).

DELLSONiC# configure
DELLSONiC(config)# interface PortChannel 1
DELLSONiC(config-if-po1)# mtu 1500
DELLSONiC(config-if-po1)# end
DELLSONiC#

샘플 출력
DELLSONiC# show interface PortChannel 1
PortChannel1 is up, line protocol is up, reason oper-up, mode LACP
Hardware is PortChannel, address is XX:XX:XX:XX:XX:XX
Minimum number of links to bring PortChannel up is 1
Mode of IPV4 address assignment: not-set
Mode of IPV6 address assignment: not-set
Fallback: Disabled
Graceful shutdown: Disabled
MTU 1500                                                     
LineSpeed 75.0GB
Events:
all-links-down at 2023-09-19T16:50:29.006155Z
lacp-fail at 2023-09-19T16:50:30.833807Z
portchannel-up at 2023-09-19T16:50:30.83887Z
LACP mode ACTIVE interval SLOW priority 65535 address XX:XX:XX:XX:XX:XX
Members in this channel: Eth1/1(Selected)
LACP Actor port 1  address XX:XX:XX:XX:XX:XX key 1
LACP Partner port 1  address XX:XX:XX:XX:XX:XX key 1
Members in this channel: Eth1/2(Selected)
LACP Actor port 2  address XX:XX:XX:XX:XX:XX key 1
LACP Partner port 2  address XX:XX:XX:XX:XX:XX key 1
Members in this channel: Eth1/3(Selected)
LACP Actor port 3  address XX:XX:XX:XX:XX:XX key 1
LACP Partner port 3  address XX:XX:XX:XX:XX:XX key 1
Last clearing of "show interface" counters: never
10 seconds input rate 0 packets/sec, 0 bits/sec, 0 Bytes/sec
10 seconds output rate 0 packets/sec, 0 bits/sec, 0 Bytes/sec
Input statistics:
          274 packets, 59031 octets
          0 Multicasts, 0 Broadcasts, 274 Unicasts
          0 error, 19 discarded
Output statistics:
          385 packets, 78115 octets
          0 Multicasts, 0 Broadcasts, 385 Unicasts
          0 error, 0 discarded
Time since last interface status change: 00:01:18 

Affected Products

Enterprise SONiC Distribution, PowerSwitch E3200-ON Series, Dell EMC Networking N3200-ON, PowerSwitch S5212F-ON, PowerSwitch S5224F-ON, PowerSwitch S5232F-ON, PowerSwitch S5248F-ON, PowerSwitch S5296F-ON, PowerSwitch Z9264F-ON, PowerSwitch Z9332F-ON , PowerSwitch Z9432F-ON ...
Article Properties
Article Number: 000217739
Article Type: How To
Last Modified: 28 Sep 2023
Version:  3
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.