Physical Interface management

Example model & SONiC version:

  • Aurora 615/715
  • Netberg SONiC: sonic-202012-nb-inno-211121

Configuring the interface speed

By CLI:

admin@sonic:~$ sudo config interface speed Ethernet48 40000
admin@sonic:~$ sudo config interface speed Ethernet52 40000
admin@sonic:~$ sudo config reload -y

Check the status:

admin@sonic:~$ show interface status | grep 'Ethernet28\|Ethernet60'
Ethernet28  101,102,103,104      40G   9100     rs   Ethernet28  routed    down       up              N/A         N/A
Ethernet60      69,70,71,72      40G   9100     rs   Ethernet60  routed    down       up              N/A         N/A

 

By editing /etc/sonic/config_db.json file:

    "PORT": {
....
        "Ethernet28": {
            "admin_status": "up",
            "alias": "Ethernet28",
            "autoneg": "1",
            "fec": "rs",
            "index": "7",
            "lanes": "101,102,103,104",
            "mtu": "9100",
            "speed": "100000"
....
}

And reload the config by “admin@sonic:~$ sudo config reload -y

 

Enabling FEC Mode

This section shows a sample port configuration to enable forward error correction (FEC) mode in SONiC.

In Netberg SONiC, FEC is enabled by default on the interfaces.

FEC mode support three options:

rs – Reed-Solomon
fc – FireCode
none – no FEC applied.

25G FEC recommendations

Media type

1m copper

2-3m copper

25G AOC

25G SR

25G LR

10G

FEC

no FEC

RS

RS

RS

RS

no FEC

 

100G FEC recommendations

Media type

1m copper

2-3m copper

100G AOC

100G SR4

100G LR4

FEC

no FEC

RS

RS

RS

no FEC*

* – sometimes cheap optic modules still require FEC.

Having FEC enabled allows using of less expensive optics without significantly impacting network performance.

admin@sonic:~$ sudo config interface fec Ethernet4 none
admin@sonic:~$ show interfaces status
  Interface            Lanes    Speed    MTU    FEC        Alias    Vlan    Oper    Admin             Type    Asym PFC
-----------  ---------------  -------  -----  -----  -----------  ------  ------  -------  ---------------  ----------
  Ethernet4  125,126,127,128     100G   9100   none    Ethernet4  routed    down       up              N/A         N/A

Or edit /etc/sonic/config_db.json file:

    "PORT": {
....
        "Ethernet28": {
            "admin_status": "up",
            "alias": "Ethernet28",
            "autoneg": "1",
            "fec": "rs",
            "index": "7",
            "lanes": "101,102,103,104",
            "mtu": "9100",
            "speed": "100000"
....
}
NEWS

Latest news