Dell Networking SONiC:如何設定埠速度
概要: 如何在 Dell Networking SONiC 中設定埠速度。本文使用執行 Dell SONiC 4.1 的交換器。
この記事は次に適用されます:
この記事は次には適用されません:
この記事は、特定の製品に関連付けられていません。
すべての製品パージョンがこの記事に記載されているわけではありません。
手順
|
先決條件
我們使用標準介面命名來展示概念。請參閱Dell Networking S 系列202172文章:基本介面組態 – SONIC 4.0, 以取得介面命名的詳細資訊 |
指數
確認連結速度和自動交貨狀態。如何在介面
上設定埠速度如何在 PortChannel
中設定埠速度如何在埠群組上設定埠速度 (適用于 S5248F-ON 和 S5296F-ON)
確認連結速度和自動交貨狀態。
命令語法
| 命令 | 說明 |
|---|---|
admin@DELLSONiC:~$ sonic-cli |
輸入 Dell 管理命令列介面 |
DELLSONiC# show interface status |
檢查所有介面狀態。 |
DELLSONiC# show interface Eth <slot/port> |
查看特定介面的詳細資料。 |
DELLSONiC# show interface PortChannel <number> |
檢查 PortChannel |
DELLSONiC# show interface advertise [Ethslot/port] |
檢視已廣告化的埠速度和自動交貨設定 |
範例輸出 (針對簡易性剪裁的輸出)
DELLSONiC# show interface status -------------------------------------------------------------------------------------------------------------------------------------- Name Description Oper Reason AutoNeg Speed MTU Alternate Name -------------------------------------------------------------------------------------------------------------------------------------- Eth1/1 - up oper-up off 25000 9100 Ethernet0 Eth1/2 - up oper-up off 25000 9100 Ethernet1 Eth1/3 - up oper-up off 25000 9100 Ethernet2 Eth1/4 - up oper-up off 25000 9100 |
DELLSONiC# show interface Eth 1/1 Eth1/1 is up, line protocol is up, reason oper-up Hardware is Eth, address is XX.XX.XX.XX.XX Mode of IPV4 address assignment: not-set Mode of IPV6 address assignment: not-set Interface IPv6 oper status: Disabled IP MTU 9100 bytes LineSpeed 25GB, Auto-negotiation off Link-training: off Unreliable-LOS: off FEC: DISABLED Events: initialized at 2023-10-14T11:11:47.61798+09:00 admin-up at 2023-10-14T11:12:04.289966+09:00 port-enabled at 2023-10-14T11:12:04.291712+09:00 phy-link-up at 2023-10-14T11:12:31.328101+09:00 |
DELLSONiC# show interface advertise Eth 1/1
Name: Eth1/1
Admin State: UP
Link Status: UP
Auto Negotiation: OFF
Operational Link Training: OFF
Standalone Link Training: OFF
400G 200G 100G 50G 40G 25G 10G 5G 2.5G 1G 100f 100h 10f 10h
---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ----
Admin Local Advertisement - - - - - - - - - - - - - -
Oper Local Advertisement - - - - - - - - - - - - - -
Oper Remote Advertisement - - - - - - - - - - - - - -
DELLSONiC# |
如何在介面上設定埠速度
組態語法
| 命令 | 說明 |
|---|---|
admin@DELLSONiC:~$ sonic-cli |
輸入 Dell 管理命令列介面 |
DELLSONiC# configure terminal |
進入組態模式 |
DELLSONiC(config)# interface Eth slot/port |
設定介面 |
DELLSONiC(conf-if-Ethslot/port)# Speed <Speed> |
設定速度 |
DELLSONiC(conf-if-Ethslot/port)# speed auto <Speed> |
啟用自動交由速度,然後自動輸入速度。若要廣告特定速度,以便與連接裝置自動交商 |
DELLSONiC(conf-if-Ethslot/port)#no speed |
還原預設埠速度: |
DELLSONiC(conf-if-Ethslot/port)#no speed auto |
停用自動交貨並還原預設埠速度。 |
DELLSONiC(conf-if-Ethslot/port)#no speed auto <Speed> |
停用自動交貨並設定指定的埠速度。 |
Sample
Configuration Lets configure Eth 1/1 with speed 10000:
admin@DELLSONiC:~$ sonic-cli DELLSONiC# configure terminal DELLSONiC(config)# interface Eth 1/1 DELLSONiC(conf-if-Eth1/30)# speed 10000 |
讓我們來確認速度:
範例輸出
DELLSONiC# show interface status -------------------------------------------------------------------------------------------------------------------------------------- Name Description Oper Reason AutoNeg Speed MTU Alternate Name -------------------------------------------------------------------------------------------------------------------------------------- Eth1/1 - up oper-up off 10000 9100 Ethernet0 |
如何在 PortChannel 中設定埠速度
注意:埠通道必須包含相同速度的介面。
若要將速度變更為 PortChannel,請變更其所有成員介面的速度。例如,假設 Eh 1/1 和 1/2 是 PortChannel 介面的一部分。
範例輸出
admin@DELLSONiC:~$ sonic-cli DELLSONiC# configure DELLSONiC(config)# interface range Eth 1/1-1/2 DELLSONiC(config)#Speed 25000 |
DELLSONiC# show interface status | grep Po PortChannel1 - up oper-up - 50000 9100 - |
DELLSONiC# show interface PortChannel 1 PortChannel1 is up, line protocol is up, reason oper-up, mode Static Hardware is PortChannel, address is 0c:2c:1e:b9:00:0a 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 50.0GB Events: |
如何在埠群組上設定埠速度 (僅適用于 S5248F-ON 和 S5296F-ON)
注意:S5248F-ON 和 S5296F-ON 交換器支援埠群組。
埠群組可讓您根據其硬體特性,在埠套用萬用群組態。
- 10G 執行的埠群組介面可個別設定為以 1G 執行。
- 如果埠群組設定為以 25G 執行,您就無法設定以 1G 執行的介面。
使用命令:
show port-group
範例輸出
DELLSONiC# show port-group ------------------------------------------------------------------------------------- Port-group Interface range Valid speeds Default Speed Current Speed ------------------------------------------------------------------------------------- 1 Eth1/1 - Eth1/4 10G, 25G 25G 10G 2 Eth1/5 - Eth1/8 10G, 25G 25G 25G 3 Eth1/9 - Eth1/12 10G, 25G 25G 25G 4 Eth1/13 - Eth1/16 10G, 25G 25G 25G 5 Eth1/17 - Eth1/20 10G, 25G 25G 25G 6 Eth1/21 - Eth1/24 10G, 25G 25G 25G 7 Eth1/25 - Eth1/28 10G, 25G 25G 25G 8 Eth1/29 - Eth1/32 10G, 25G 25G 25G 9 Eth1/33 - Eth1/36 10G, 25G 25G 10G 10 Eth1/37 - Eth1/40 10G, 25G 25G 25G 11 Eth1/41 - Eth1/44 10G, 25G 25G 25G 12 Eth1/45 - Eth1/48 10G, 25G 25G 25G |
設定埠群組速度
若要設定埠群組速度,請使用以下命令來變更埠群組中的介面速度。埠速度為每秒百萬位 (Mbps)。
port-group speed
組態語法
admin@DELLSONiC:~$ sonic-cli
DELLSONiC# configure terminal
DELLSONiC(config)# port-group number speed {10000 | 25000} |
注意:雖然埠群組速度命令提供各種埠速度選項,但唯一支援的埠群組速度為 10000 和 25000。如果您設定不支援的埠速度,則會顯示錯誤訊息:%錯誤:不支援的速度
若要取消設定埠群組的速度並設定預設群組速度,請輸入以下命令:
no port-group speed
組態語法
admin@DELLSONiC:~$ sonic-cli DELLSONiC# configure terminal DELLSONiC(config)#no port-group number speed |
範例組態
admin@DELLSONiC:~$ sonic-cli DELLSONiC# configure DELLSONiC(config)# port-group 1 speed 10000 DELLSONiC(config)# end DELLSONiC# |
若要驗證,請使用以下命令:
how port-group
範例輸出
DELLSONiC# show port-group ------------------------------------------------------------------------------------- Port-group Interface range Valid speeds Default Speed Current Speed ------------------------------------------------------------------------------------- 1 Eth1/1 - Eth1/4 10G, 25G 25G 10G 2 Eth1/5 - Eth1/8 10G, 25G 25G 25G 3 Eth1/9 - Eth1/12 10G, 25G 25G 25G 4 Eth1/13 - Eth1/16 10G, 25G 25G 25G 5 Eth1/17 - Eth1/20 10G, 25G 25G 25G 6 Eth1/21 - Eth1/24 10G, 25G 25G 25G 7 Eth1/25 - Eth1/28 10G, 25G 25G 25G 8 Eth1/29 - Eth1/32 10G, 25G 25G 25G 9 Eth1/33 - Eth1/36 10G, 25G 25G 10G 10 Eth1/37 - Eth1/40 10G, 25G 25G 25G 11 Eth1/41 - Eth1/44 10G, 25G 25G 25G 12 Eth1/45 - Eth1/48 10G, 25G 25G 25G |
対象製品
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
...
文書のプロパティ
文書番号: 000218554
文書の種類: How To
最終更新: 19 10月 2023
バージョン: 3
質問に対する他のDellユーザーからの回答を見つける
サポート サービス
お使いのデバイスがサポート サービスの対象かどうかを確認してください。