CodingBox ドキュメント

NOS 別ポート設定レシピ:速度、FEC、ブレークアウト、回避策

モジュールが受け入れられた後も、ポートにはそれをどう扱うか——どの速度か、どの FEC か、オートネゴシエーションするか、ブレークアウトするか、そして厳格なプラットフォームではサードパーティの識別情報を許容するか——を指示する必要があります。コマンドは NOS ごとに、しばしばプラットフォームやリリースごとにも異なります。このページでは主要なシステムの代表的な書式を並べて示します。これらは何を設定すべきかの地図として扱い、正確な構文はプラットフォームのガイドで確認してください。

両端で一致させる必要がある項目

設定項目理由デフォルトの落とし穴
速度SerDes のレーンレートとモジュールのレートを一致させる必要がある25G ポートに10G モジュール、またはデュアルレートモジュールが誤ったレートのまま(速度とレート
FECほとんどの25G以上の PMD で必須。両端が同じ方式で動作する必要がある片端が RS-FEC、もう片端がなし:レベルは良好なのにリンクなし(FEC と AN
オートネゴシエーション/リンクトレーニング25G以上の DAC では必須、大半の光モジュールでは禁止光モジュールで AN が有効なまま、または DAC で無効なまま
ブレークアウト親ポートを子ポートへ分割する片端だけに設定されている、または WDM 光モジュールに設定されている
メディア/モードコンボポート、銅 SFP での SGMII と1000BASE-X の違い誤ったメディアタイプが有効になっている
サードパーティのオーバーライド厳格なプラットフォームでのポリシー切り替えモジュールは正常なのにポートが errdisable(ベンダーロック

NOS ごとのレシピ

山括弧はプレースホルダーを示します。 はプラットフォーム固有の部分を示します。

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 ホスト(サーバー 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

結果を確認する

  1. 両端が意図した速度でリンクアップしていること。LOL や FEC 訂正不能カウンターがないこと(VDM と FEC メトリクス)。
  2. show … transceiver で、モジュールがサポート対象(または許容)として DDM 値とともに表示されること(スイッチでの光モジュールの検証)。
  3. 数分間のトラフィック後、カウンターがクリーンであること(リンクフラッピング)。
  4. 設定が保存されていること。ブレークアウトやポートモードの変更にリロードが必要なプラットフォームでは、変更がリロード後も残っていること。

CodingBox では

レシピはポートに何をすべきかを指示します。モジュールはポートに何ができるかを伝えます。速度やブレークアウトを設定する前に、Check transceiver でモジュールのレートコードと CMIS の application を確認してください——モジュールが広告していないモードにポートを設定することはできません。

Linux ホストのレシピの背後にあるサーバー側ツール一式——ethtool、mlxlink、 bnxtnvm、Windows と ESXi のコマンド、NIC からの DDM 読み取り:NIC のツールと診断

各レシピの背後にあるインターフェース命名(Gi1/0/1、et-0/0/48:1、Ethernet0、 swp1s0…):ポートの命名と LED。アップリンク設定の LAG/MLAG 側:スタッキングと MLAG


この記事に不正確な点や誤りを見つけた場合は、該当する箇所を選択して Ctrl+Enter を押すと、できます。