Dell Networking SONiC:如何配置端口速度
概要: 如何在 Dell Networking SONiC 中配置端口速度。本文使用运行 Dell SONiC 4.1 的交换机。
この記事は次に適用されます:
この記事は次には適用されません:
この記事は、特定の製品に関連付けられていません。
すべての製品パージョンがこの記事に記載されているわけではありません。
手順
|
前提条件
我们使用标准接口命名来演示概念。请参阅文章 202172 Dell Networking S 系列:基本接口配置 — SONIC 4.0 ,了解有关接口命名的更多信息 |
指数
验证链路速度和自动协商状态。如何在接口
上配置端口速度如何在 PortChannel
中配置端口速度如何在端口组上配置端口速度(适用于 S5248F-ON 和 S5296F-ON)
验证链路速度和自动协商状态。
命令语法
| 命令 | 说明 |
|---|---|
admin@DELLSONiC:~$ sonic-cli |
输入 Dell Management 命令行界面 |
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 Management 命令行界面 |
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> |
禁用自动协商并设置指定的端口速度。 |
示例配置
允许配置速度为 10000 的 Eth 1/1:
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 运行。
- 如果端口组配置为在第 25 代运行,则无法将接口配置为在 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。如果您配置不受支持的端口速度,将显示一条错误消息:%Error:不支持的速度
要取消配置端口组的速度并设置默认组速度,请输入以下命令:
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ユーザーからの回答を見つける
サポート サービス
お使いのデバイスがサポート サービスの対象かどうかを確認してください。