ตัวอย่างการกำหนดค่าพอร์ตตาม NOS: ความเร็ว, FEC, เบรกเอาต์ และการข้ามการตรวจสอบ · ความเข้ากันได้ของทรานซีฟเวอร์ · การ์ดเครือข่ายและสวิตช์ · เอกสารประกอบ · CodingBox
CodingBox เอกสารประกอบ

ตัวอย่างการกำหนดค่าพอร์ตตาม NOS: ความเร็ว, FEC, เบรกเอาต์ และการข้ามการตรวจสอบ

เมื่อโมดูลได้รับการยอมรับแล้ว พอร์ตยังต้องถูกบอกว่าจะทำอะไรกับมัน ได้แก่ ความเร็วใด, FEC แบบใด, จะเจรจาอัตโนมัติหรือไม่, จะเบรกเอาต์หรือไม่ และ — บนแพลตฟอร์มที่เข้มงวด — จะยอมรับข้อมูลระบุตัวตนของบุคคลที่สามหรือไม่ คำสั่งแตกต่างกันไปตาม NOS และมักแตกต่างกันตามแพลตฟอร์มและรุ่นด้วย เพจนี้ให้รูปแบบตัวอย่างของระบบทั่วไปไว้เทียบกัน ให้ใช้เป็นแผนที่ว่า อะไร ที่ต้องตั้งค่า แล้วไปยืนยันไวยากรณ์ที่แน่นอนในคู่มือของแพลตฟอร์มนั้น

สิ่งที่ต้องตรงกันทั้งสองปลาย

การตั้งค่าเหตุผลกับดักค่าเริ่มต้น
ความเร็วอัตราเลน SerDes กับอัตราของโมดูลต้องตรงกันพอร์ต 25G กับโมดูล 10G หรือโมดูลสองอัตราที่ถูกปล่อยไว้ผิดอัตรา (ความเร็วและอัตรา)
FECบังคับใช้บน PMD ส่วนใหญ่ที่ 25G ขึ้นไป; ทั้งสองปลายต้องใช้รหัสเดียวกันปลายหนึ่งใช้ RS-FEC อีกปลายไม่ใช้เลย: ระดับสัญญาณดีแต่ไม่มีลิงก์ (FEC และ AN)
การเจรจาอัตโนมัติ/การฝึกลิงก์จำเป็นบน DAC ที่ 25G ขึ้นไป, ห้ามใช้กับออปติกส่วนใหญ่เปิด AN ทิ้งไว้สำหรับออปติก หรือปิดไว้สำหรับ DAC
เบรกเอาต์พอร์ตแม่ถูกแยกออกเป็นพอร์ตลูกตั้งค่าไว้เพียงปลายเดียว หรือตั้งบนออปติก WDM
สื่อกลาง/โหมดพอร์ตคอมโบ, SGMII เทียบกับ 1000BASE-X บน SFP ทองแดงชนิดสื่อกลางที่เปิดใช้งานอยู่ผิด
โอเวอร์ไรด์สำหรับของบุคคลที่สามสวิตช์นโยบายบนแพลตฟอร์มที่เข้มงวดพอร์ต errdisabled ทั้งที่โมดูลใช้งานได้ปกติ (การล็อกผู้ผลิต)

สูตรแยกตาม 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 แสดงโมดูลเป็น supported (หรือที่ยอมให้ผ่าน) พร้อมค่า DDM (การตรวจสอบยืนยันออปติกบนสวิตช์)
  3. ตัวนับสะอาดหลังทราฟฟิกไหลผ่านไม่กี่นาที (ลิงก์กะพริบ)
  4. บันทึกคอนฟิกแล้ว; บนแพลตฟอร์มที่ต้องรีโหลดเมื่อเปลี่ยนเบรกเอาต์หรือโหมดพอร์ต ให้ตรวจว่าการเปลี่ยนแปลงยังอยู่หลังรีโหลด

ใน CodingBox

สูตรเหล่านี้บอกพอร์ตว่าต้องทำอะไร ส่วนโมดูลบอกพอร์ตว่าทำอะไรได้บ้าง ก่อนตั้งค่าความเร็วหรือเบรกเอาต์ ให้อ่านรหัสอัตราและ CMIS applications ของโมดูลบน Check transceiver ก่อน — พอร์ตไม่สามารถถูกตั้งค่าให้อยู่ในโหมดที่โมดูลไม่ได้ประกาศรองรับได้

ชุดเครื่องมือฝั่งเซิร์ฟเวอร์แบบเต็มที่อยู่เบื้องหลังสูตรของโฮสต์ Linux — ethtool, mlxlink, bnxtnvm, คำสั่งบน Windows และ ESXi, การอ่านค่า DDM จาก NIC: เครื่องมือและการวินิจฉัยของ NIC

การตั้งชื่ออินเทอร์เฟซที่อยู่เบื้องหลังแต่ละสูตร (Gi1/0/1, et-0/0/48:1, Ethernet0, swp1s0…): การตั้งชื่อพอร์ตและ LED; ฝั่ง LAG/MLAG ของการตั้งค่าอัปลิงก์: การทำสแตกและ MLAG


หากพบข้อมูลที่ไม่ถูกต้องหรือข้อผิดพลาดในบทความนี้ ให้เลือกข้อความส่วนนั้นแล้วกด Ctrl+Enter เพื่อ