Dell Networking SONiC: How to Configure Port Speed

概要: How to configure Port Speed in Dell Networking SONiC. This article uses a switch running Dell SONiC 4.1.

この記事は次に適用されます: この記事は次には適用されません: この記事は、特定の製品に関連付けられていません。 すべての製品パージョンがこの記事に記載されているわけではありません。

手順

Prerequisites
We are using standard interface naming to demonstrate the Concepts. See article 202172 Dell Networking S-Series: Basic Interface Configuration – SONIC 4.0 for more information regarding interface naming
 

Index

Verify Link Speed and autonegotiation status.
How to Configure Port Speed on an Interface
How to configure Port Speed in a PortChannel
How to configure Port speed on a Port group (Applicable to S5248F-ON and S5296F-ON)
 

Verify Link Speed and autonegotiation status.


Command Syntax
Command Explanation
admin@DELLSONiC:~$ sonic-cli
Enter Dell Management Command Line Interface
DELLSONiC# show interface status
Check all interface status.
DELLSONiC# show interface Eth <slot/port>
Check details of a specific interface.
DELLSONiC# show interface PortChannel <number>
Check PortChannel 
DELLSONiC# show interface advertise [Ethslot/port]
View advertised port speeds and autonegotiated settings

Sample Output (output trimmed for brevity)
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#
 

How to Configure Port Speed on an Interface


Configuration Syntax
Command Explanation
admin@DELLSONiC:~$ sonic-cli
Enter Dell Management Command Line Interface
DELLSONiC# configure terminal
Enter Configuration Mode
DELLSONiC(config)# interface Eth slot/port
Configure Interface
DELLSONiC(conf-if-Ethslot/port)# Speed <Speed>
Configure speed
DELLSONiC(conf-if-Ethslot/port)# speed auto <Speed>
Enable autonegotiated speed, enter speed auto. To advertise a specific speed to autonegotiate with connecting devices
DELLSONiC(conf-if-Ethslot/port)#no speed
Restore the default port speed:
DELLSONiC(conf-if-Ethslot/port)#no speed auto
Disable autonegotiation and restore the default port speed.
DELLSONiC(conf-if-Ethslot/port)#no speed auto <Speed>
Disable autonegotiation and set a specified port speed.
 * Possible Speed combinations 10/100/1000/10000/25000/40000/50000/100000/400000/Auto 

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

Lets verify the speed:
Sample Output
DELLSONiC# show interface status
--------------------------------------------------------------------------------------------------------------------------------------
Name                Description                   Oper           Reason         AutoNeg   Speed          MTU            Alternate Name
--------------------------------------------------------------------------------------------------------------------------------------
Eth1/1              -                             up             oper-up        off       10000          9100           Ethernet0
 

How to configure Port Speed in a PortChannel 

NOTE: A port channel must contain interfaces of the same speed.

To change the speed to PortChannel, change the speed of all its member interfaces. For example, Consider Eh 1/1 and 1/2 is part of the PortChannel interface. 
Sample Output
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:
The speed of PortChannel 1 is 50.0 GB since its two member ports Eth 1/1 and 1/2 is 25 GB each (25G + 25G = 50G)
 

How to configure Port speed on a Port group (Applicable to only the S5248F-ON and S5296F-ON)

NOTE: S5248F-ON and S5296F-ON switches support port groups.

Port groups allow you to apply common configurations on ports according to their hardware characteristics. 
  • Port group interfaces that run at 10G can be individually configured to run at 1G. 
  • If a port group is configured to run at 25G, you cannot configure an interface to run at 1G.
View Port Group
Use command: 
show port-group

Sample Output
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 

Configure port group speed
To configure port group speed Use the below command to change the speed of the interfaces in a port group. The port speeds are in Megabits per second (Mbps).
port-group speed

Configuration Syntax
admin@DELLSONiC:~$ sonic-cli
DELLSONiC# configure terminal
DELLSONiC(config)# port-group number speed {10000 | 25000}
 
NOTE: Although the port group speed command offers various port speed options, the only port group speeds that are supported are 10000 and 25000. If you configure an unsupported port speed, an error message displays: %Error: Unsupported speed

To unconfigure a port group's speed and set the default group speed, enter the below command:
no port-group speed 

Configuration Syntax
admin@DELLSONiC:~$ sonic-cli
DELLSONiC# configure terminal
DELLSONiC(config)#no port-group number speed

Sample Configuration
admin@DELLSONiC:~$ sonic-cli
DELLSONiC# configure
DELLSONiC(config)# port-group 1 speed 10000
DELLSONiC(config)# end
DELLSONiC# 

To verify, use the below command:
how port-group

Sample Output
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ユーザーからの回答を見つける
サポート サービス
お使いのデバイスがサポート サービスの対象かどうかを確認してください。