We have previously introduced How to configure switch interface FEC mode, but also introduced How to read optical module information on a network card on Linux systems , so today we will introduce the Linux system how to view and configure the network card interface FEC mode.
1. FEC mode view
        Execute the command "ethtool devname" to view the interface information; the output information under this command in addition to the interface status, there are some interface configuration information, such as such as FEC mode.
        Explanations: ① devname is the interface name, you can use the command " ifconfig " to view it.
        ② If the FEC mode in the output shows "Not reported", it means that the card automatically adapts to the FEC mode of the other end and does not support configuration/reading.
2. FEC mode configuration
        a. Execute the command "ethtool --set-fec devname encoding fecmode " to configure the FEC mode of the specific interface, and note that the FEC modes of the two ends of the link need to be saved consistently.
        Note: fecmode is the configurable FEC mode, use the help command " ethtool -h " to view the FEC mode parameters are: auto|off|rs|baser
        b. Execute the command "ethtool --show-fec devname" to view the FEC mode of the interface, the output contains the configured FEC mode of the interface and the actual running FEC mode of the interface.
        Moduletek Limited is at your service.
        If you have any questions about the above content, please contact us via email: sales@moduletek.com