Ricette di configurazione delle porte per NOS: velocità, FEC, breakout, override · Compatibilità dei ricetrasmettitori · Schede di rete e switch · Documentazione · CodingBox
CodingBox Documentazione

Ricette di configurazione delle porte per NOS: velocità, FEC, breakout, override

Una volta che un modulo è accettato, alla porta va comunque detto cosa farne: quale velocità, quale FEC, se fare auto-negoziazione, se fare breakout e — sulle piattaforme rigide — se tollerare un’identità di terze parti. I comandi differiscono per NOS e spesso per piattaforma e release. Questa pagina fornisce forme rappresentative per i sistemi più comuni messi a confronto; trattale come una mappa di cosa configurare, e conferma la sintassi esatta nella guida della piattaforma.

Cosa deve corrispondere su entrambe le estremità

ImpostazionePerchéTrappola predefinita
Velocitàil rate della lane SerDes e il rate del modulo devono coincidereporta 25G con un modulo 10G, oppure un modulo dual-rate lasciato al rate sbagliato (Velocità e rate)
FECobbligatorio sulla maggior parte dei PMD 25G+; entrambe le estremità devono usare lo stesso codiceun’estremità RS-FEC, l’altra nessuno: livelli buoni, nessun link (FEC e AN)
Auto-negoziazione / link trainingrichiesta sui DAC a 25G+, vietata sulla maggior parte degli otticiAN lasciata attiva per un ottico, o disattiva per un DAC
Breakoutporta padre suddivisa in figlieconfigurato su una sola estremità, oppure su un ottico WDM
Media / modalitàporte combo, SGMII contro 1000BASE-X sugli SFP in rametipo di media attivo sbagliato
Override di terze partiinterruttore di policy sulle piattaforme rigideporta in errdisable anche se il modulo è a posto (Blocco del produttore)

Ricette per NOS

Le parentesi angolari indicano i placeholder; … indica le parti specifiche della piattaforma.

Cisco IOS-XE (Catalyst)

interface TwentyFiveGigE1/0/1
 speed 10000                       ! or 25000 (where the platform allows per-port speed)
 fec cl74                          ! cl74 = BASE-R, cl91/cl108 = RS-FEC, off
 no negotiation auto               ! optics; DAC keeps auto
service unsupported-transceiver    ! global, hidden on many releases
no errdisable detect cause gbic-invalid
errdisable recovery cause gbic-invalid
show interfaces transceiver detail

Cisco NX-OS (Nexus)

interface Ethernet1/1
 speed 25000
 fec rs-fec                        ! rs-fec | fc-fec | off | auto
 no negotiate auto
interface breakout module 1 port 1-4 map 25g-4x     ! or: hw-module breakout … (older)
service unsupported-transceiver
show interface ethernet1/1 transceiver details

Cisco IOS-XR

controller Optics0/0/0/0
 breakout 4x25                     ! or: hw-module port-range 0 3 location … mode 4x25
interface HundredGigE0/0/0/0
 fec standard | none
show controllers optics 0/0/0/0

Arista EOS

interface Ethernet1
   speed forced 25gfull            ! forced 10000full, 40gfull, 100gfull …
   error-correction encoding reed-solomon    ! fire-code | disabled
   no negotiation
interface Ethernet33/1-4           ! breakout: configure speed on the /1-/4 children
   speed forced 25gfull
hardware port-group 1 select Et33/1-4        ! some platforms
transceiver qsfp default-mode 4x10G          ! platform default for QSFP+ ports
show interfaces transceiver dom

Juniper Junos (QFX/EX)

set chassis fpc 0 pic 0 port 0 channel-speed 25g       ! breakout 4x25G on QFX
set chassis fpc 0 pic 0 port 48 speed 10g               ! per-port speed on some models
set interfaces et-0/0/0 gigether-options fec fec91      ! fec74 | fec91 | none
set interfaces et-0/0/0 ether-options no-auto-negotiation
show interfaces diagnostics optics et-0/0/0
show chassis pic fpc-slot 0 pic-slot 0                  ! lists "unsupported" optics

Huawei VRP (CloudEngine)

interface 25GE1/0/1
 port mode 10GE                    ! or: speed 10000 on S-series
 fec-mode rs-fec                   ! base-r | rs-fec | none (per platform)
 negotiation auto disable
port split dimension interface 100GE1/0/1 split-type 4*25GE     ! breakout, then commit/reboot on some
transceiver phony-alarm-disable    ! system view: suppress non-Huawei optics alarms
display transceiver interface 25GE1/0/1 verbose

H3C Comware

interface Twenty-FiveGigE1/0/1
 using tengige                     ! change port mode
 port fec mode rs-fec              ! (syntax varies)
transceiver phony-alarm-disable
display transceiver interface Twenty-FiveGigE1/0/1

HPE Aruba AOS-CX / AOS-S

! AOS-CX
interface 1/1/49
    speed 25000-full
    error-control rs-fec           ! or: fec … per platform
allow-unsupported-transceiver
show interface 1/1/49 transceiver detail
! AOS-S (ProCurve)
allow-unsupported-transceiver
show interfaces transceiver detail

Dell OS10

interface breakout 1/1/1 map 25g-4x
interface ethernet1/1/1:1
 speed 25000
 fec CL91                          ! CL74 | CL91 | CL108 | off
 no negotiation
show interface ethernet 1/1/1:1 transceiver

SONiC

config interface speed Ethernet0 25000
config interface fec Ethernet0 rs           ! rs | fc | none
config interface autoneg Ethernet0 disabled
config interface breakout Ethernet0 4x25G   ! dynamic port breakout (platform support)
show interfaces transceiver eeprom -d Ethernet0
show interfaces status

Nvidia Cumulus (NVUE)

nv set interface swp1 link speed 25G
nv set interface swp1 link fec rs
nv set interface swp1 link auto-negotiate off
nv set interface swp1 link breakout 4x25G
nv config apply
l1-show swp1

MikroTik RouterOS

/interface ethernet set sfp-sfpplus1 auto-negotiation=no speed=10G-baseSR-LR
/interface ethernet set sfp28-1 fec-mode=fec91          ! fec74 | fec91 | off | auto
/interface ethernet monitor sfp-sfpplus1

Linux host (server NIC)

ethtool -s eth0 speed 25000 duplex full autoneg off
ethtool --set-fec eth0 encoding rs             # rs | baser | off | auto
ethtool -m eth0                                # identity and DDM
# Intel ixgbe/i40e: allow non-Intel SFPs (module parameter; check the driver's docs)
modprobe ixgbe allow_unsupported_sfp=1

Verificare il risultato

  1. Link up su entrambe le estremità alla velocità prevista; nessun contatore LOL o FEC non correggibile (Metriche VDM e FEC).
  2. show … transceiver mostra il modulo come supported (o tollerato) con i valori DDM (Verifica degli ottici su uno switch).
  3. Contatori puliti dopo pochi minuti di traffico (Flapping del collegamento).
  4. Configurazione salvata; sulle piattaforme che richiedono un reload per le modifiche di breakout o di modalità porta, la modifica vi sopravvive.

In CodingBox

Le ricette dicono alla porta cosa fare; il modulo dice alla porta cosa può fare. Prima di configurare una velocità o un breakout, leggi i codici di rate e le CMIS applications del modulo su Check transceiver — una porta non può essere configurata in una modalità che il modulo non annuncia.

L’intera cassetta degli attrezzi lato server dietro la ricetta per l’host Linux — ethtool, mlxlink, bnxtnvm, comandi Windows ed ESXi, lettura del DDM da una NIC: Strumenti e diagnostica per NIC.

La denominazione delle interfacce dietro ogni ricetta (Gi1/0/1, et-0/0/48:1, Ethernet0, swp1s0…): Nomi delle porte e LED; il lato LAG/MLAG della configurazione degli uplink: Stacking e MLAG.


Se trovi un’imprecisione o un errore in questo articolo, seleziona il passaggio corrispondente e premi Ctrl+Enter per .