[Edgecore SONiC] Switch Port Attributes Follow
How to configure port speed, set FEC to RS mode, and configure auto-negotiation.
- Configure 10G interface (SFP+) to be 1G interface
- Configure 100G interface (QSFP+) to be 40G interface
- Configure 25G interface to be 10G interface
- Configure 400G interface to 100G/40G(Support on Edgecore-SONiC_20210209_051110_ec202006_134 and above)
- Configure FEC (Forward Error Correction) to RS mode
- Configure the Etherner0 to auto-negotiation
Restriction
-
known issue: It does not return failed if configure wrong speed on interface.(This issue is fixed in SONiC.Edgecore-SONiC_20201229_070315_ec202006_101 and above)
e.g: configure1000Gon the interface - Please remember do "sudo config save", or all of settings won't be including to startup configuration.
- FEC is disabled in the default setting
- There's no SONiC command to set the auto-negotiation.
- The auto-negotiation is disabled in the default setting.
- In Current Edgecore SONiC of AS7326-54X, we don't support dump speed to 1G.
-
There's a hardware limitation on AS7326-56X, it will have port group design(Ethernet0~Ethernet48). When one of group members change speed, others of the same group member will be also modified. We can find the port group member information from Alias. For example, the alias "Eth5/" mean the port group name is "Ethernet5", it will have member about Ethernet0/Ethernet1/Ethernet2/Ethernet5.
admin@sonic:~$ show interface status
Interface Lanes Speed MTU FEC Alias Vlan Oper Admin Type Asym PFC
----------- --------------- ------- ----- ----- ------- ------ ------ ------- --------------- ----------
Ethernet0 3 25G 9100 none Eth5/3 routed down up SFP/SFP+/SFP28 N/A
Ethernet1 2 25G 9100 none Eth5/2 routed down up N/A N/A
Ethernet2 4 25G 9100 none Eth5/4 routed down up N/A N/A
Ethernet3 8 25G 9100 none Eth6/4 routed down up SFP/SFP+/SFP28 N/A
Ethernet4 7 25G 9100 none Eth6/3 routed down up N/A N/A
Ethernet5 1 25G 9100 none Eth5/1 routed down up N/A N/A
Configure 10G interface (SFP+) to be 1G interface
Support models:
- Switch model name: AS5835-54X
- Edgecore SONiC version: SONiC.Edgecore-SONiC_20201123_130028_ec202006_74 and above
Step1. Dump speed "Ethernet0" and "Ethernet1" to 1G
Caution: Before "SONiC.Edgecore-SONiC_20210209_051110_ec202006_134", make sure Tx_Disable is Disabled on 10G interface. Otherwise, the 10G port can NOT link UP even speed configuration is correct. (1: transmit power is disable, 0: transmit power is enable ,default is 1)
Method: use "accton_as5835_54x_util.py set sfp 1-48 {0|1}" to set sfp# tx_disable
For example: disable the tx_disable on Ethernet0 and Ethernet1
admin@sonic:~$ sudo accton_as5835_54x_util.py set sfp 1 0
admin@sonic:~$ sudo accton_as5835_54x_util.py set sfp 2 0
Check command
admin@sonic:~$ sudo accton_as5835_54x_util.py show
omitted...
============================================
SFP:
============================================
sfp1: module_present_1=1 module_tx_disable_1=0
----------------------------------------------------------------
sfp2: module_present_2=1 module_tx_disable_2=0
----------------------------------------------------------------
sfp3: module_present_3=0 module_tx_disable_3=1
omitted...
Step 2. Check the port status.
admin@sonic:~$ show interfaces status | head -4
Interface Lanes Speed MTU FEC Alias Vlan Oper Admin Type Asym PFC
----------- ----------- ------- ----- ----- ------- ------ ------ ------- -------------- ----------
Ethernet0 1 1G 9100 none Eth1/1 routed up up SFP/SFP+/SFP28 N/A
Ethernet1 2 1G 9100 none Eth2/1 routed up up SFP/SFP+/SFP28 N/A
Configure 100G interface (QSFP+) to be 40G interface
Support models
- Switch model name: All models, excluding AS9716-32D.
- Edgecore SONiC version: SONiC.Edgecore-SONiC_20201123_130028_ec202006_74 and above
Step1. Dump speed "Ethernet48" and "Ethernet52" from 100G to 40G
Steps 2. Check the port speed by SONiC command
admin@sonic:~$ show interface status | grep 'Ethernet48\|Ethernet52'
Ethernet48 37,38,39,40 40G 9100 N/A Eth49/1 routed down up QSFP+ or later N/A
Ethernet52 29,30,31,32 40G 9100 N/A Eth50/1 routed down up QSFP+ or later N/A
Configure 25G interface to be 10G interface
Support models
- Switch model name: AS7326-56X
- Edgecore SONiC version: SONiC.Edgecore-SONiC_20201123_130028_ec202006_74 and above
On "SONiC.Edgecore-SONiC_20201123_130028_ec202006_74" and early version, you can use following command to dump speed from 25G to 10G.Please be careful about "restriction 7" for port group.
admin@sonic:~$ sudo config interface speed Ethernet0 10000
On "SONiC.Edgecore-SONiC_20201229_070315_ec202006_101" and above, there's a warning message if you set the port speed with original command. Please follow bellowing way to dump speed from 25G to 10G.
admin@sonic:~$ sudo config interface speed Ethernet0 10000
Can't set the port speed.
Step 1. Check your port group.
admin@sonic:~$ show interfaces status
Interface Lanes Speed MTU FEC Alias Vlan Oper Admin Type Asym PFC
----------- --------------- ------- ----- ----- ------- ------ ------ ------- --------------- ----------
Ethernet0 3 25G 9100 none Eth5/3 routed down up SFP/SFP+/SFP28 N/A
Ethernet1 2 25G 9100 none Eth5/2 routed down up N/A N/A
Ethernet2 4 25G 9100 none Eth5/4 routed down up N/A N/A
Ethernet3 8 25G 9100 none Eth6/4 routed down up SFP/SFP+/SFP28 N/A
Ethernet4 7 25G 9100 none Eth6/3 routed down up N/A N/A
Ethernet5 1 25G 9100 none Eth5/1 routed down up N/A N/A
Step 2. Check breakout option availability and current breakout mode.
admin@sonic:~$ show interfaces breakout
{
"Ethernet5": {
"child port speeds": "25G,25G,25G,25G",
"index": "6,2,1,3",
"lanes": "1,2,3,4",
"child ports": "Ethernet0,Ethernet1,Ethernet2,Ethernet5",
"Current Breakout Mode": "4x25G",
"interface_ids": "5,1,0,2",
"default_brkout_mode": "4x25G",
"breakout_modes": "4x25G,4x10G",
"alias_at_lanes": "Eth5/1,Eth5/2,Eth5/3,Eth5/4"
...
omitted
Step 3. Configure the port group "Ethernet5" to 10G.
admin@sonic:~$ sudo config interface breakout Ethernet5 '4x10G'
Do you want to Breakout the port, continue? [y/N]: y
Running Breakout Mode : 4x25G
Target Breakout Mode : 4x10G
...
omitted
Step 4. Checking the status.
admin@sonic:~$ show interfaces status
Interface Lanes Speed MTU FEC Alias Vlan Oper Admin Type Asym PFC
----------- --------------- ------- ----- ----- ------- ------ ------ ------- --------------- ----------
Ethernet0 3 10G 9100 none Eth5/3 routed down down SFP/SFP+/SFP28 N/A
Ethernet1 2 10G 9100 none Eth5/2 routed down down N/A N/A
Ethernet2 4 10G 9100 none Eth5/4 routed down down N/A N/A
Ethernet3 8 25G 9100 none Eth6/4 routed down up SFP/SFP+/SFP28 N/A
Ethernet4 7 25G 9100 none Eth6/3 routed down up N/A N/A
Ethernet5 1 10G 9100 none Eth5/1 routed down down N/A N/A
Caution: Be carefully , before "SONiC.Edgecore-SONiC_20210209_051110_ec202006_134", after DPB command, the 'Admin' status will be down. On "SONiC.Edgecore-SONiC_20210209_051110_ec202006_134" and above, the 'Admin' status will be up for speed change about 25G to 10G or 10G to 25G.
Configure 400G interface to 100G/40G(Support on Edgecore-SONiC_20210209_051110_ec202006_134 and above)
Support models
- Switch model name: AS9716-32D
- Edgecore SONiC version: SONiC.Edgecore-SONiC_20210209_051110_ec202006_134
Step 1. Check breakout option availability and current breakout mode.
admin@sonic:~$ show interfaces breakout
{
"Ethernet0": {
"index": "0,0,0,0,0,0,0,0",
"default_brkout_mode": "1x400G",
"child ports": "Ethernet0",
"breakout_modes": "1x400G, 2x200G, 4x100G, 1x100G[40G](4), 2x50G(4), 4x25G[10G](4)",
"child port speeds": "400G",
"Current Breakout Mode": "1x400G",
"lanes": "73,74,75,76,77,78,79,80",
"alias_at_lanes": "Eth1/1, Eth1/2, Eth1/3, Eth1/4, Eth1/5, Eth1/6, Eth1/7, Eth1/8"
},
Step 2. Dump speed "Ethernet0" from 400G to 100G.
admin@sonic:~$ sudo config interface breakout Ethernet0 '1x100G[40G](4)'
Step 3. Undo the speed from 100G to 400G.
admin@sonic:~$ sudo config interface breakout Ethernet0 '1x400G'
Caution: Be carefully , because the dump speed from 400G to 100G control by DPB command, the "Admin" status will be down after modified. It will follow DPB rules.
Configure FEC (Forward Error Correction) to RS mode
Support models
- Switch model name: All
- Edgecore SONiC version: SONiC.Edgecore-SONiC_20201123_130028_ec202006_74 and above
Step 1: Configure FEC to RS mode.
admin@sonic:~$ sudo config interface fec Ethernet0 rs
Caution: FEC mode support three parameters, "rs", "fc" and "none"
Step 2: Checking the FEC status.
admin@sonic:~$ show interfaces status
Interface Lanes Speed MTU FEC Alias Vlan Oper Admin Type Asym PFC
----------- --------------- ------- ----- ----- ------- ------ ------ ------- --------------- ----------
Ethernet0 1,2,3,4 100G 9100 rs Eth1/1 routed down up N/A N/A
Ethernet4 5,6,7,8 100G 9100 none Eth2/1 routed down up N/A N/A
Ethernet8 9,10,11,12 100G 9100 none Eth3/1 routed down up N/A N/A
Ethernet12 13,14,15,16 100G 9100 none Eth4/1 routed down up N/A N/A
Configure the Etherner0 to auto-negotiation
Support models
- Switch model name: All
- Edgecore SONiC version: SONiC.Edgecore-SONiC_20201123_130028_ec202006_74 and above.
Step 1: Enable auto-negotiation on config_db.json
{
... omitted
"Ethernet0": {
"admin_status": "up",
"alias": "Eth5/3",
"index": "1",
"lanes": "3",
"mtu": "9100",
"autoneg": "1",
"parent_port": "Ethernet5",
"speed": "25000"
},
... omitted
}
Step 2: Reload config and check Ethernet0 status by Broadcom shell command.
admin@sonic:~$ sudo config reload -y
...omitted
admin@sonic:~$ bcmcmd 'ps'
ps
ena/ speed/ link auto STP lrn inter max cut loop
port link Lns duplex scan neg? state pause discrd ops face frame thru? back
xe0( 3) down 1 25G FD SW Yes Forward None FA CR 9122 No
xe1( 2) down 1 25G FD SW No Forward None FA CR 9122 No
xe2( 4) down 1 25G FD SW No Forward None FA CR 9122 No
Comments
0 comments
Please sign in to leave a comment.