Auteur Sujet: La fibre Orange à 2Gbps, sur un routeur MikroTik 10Gbps CCR2004, via un ONT SFP+  (Lu 943012 fois)

0 Membres et 2 Invités sur ce sujet

Mackila

  • Abonné Bbox fibre
  • *
  • Messages: 354
  • 33
La fibre Orange à 2Gbps, sur un routeur MikroTik 10Gbps CCR2004, via un ONT SFP+
« Réponse #2484 le: 02 novembre 2021 à 17:43:15 »
Linux :
[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd081]
[    0.000000] Linux version 5.4.154 (builder@buildhost) (gcc version 8.4.0 (OpenWrt GCC 8.4.0 r16325-88151b8303)) #0 SMP Sun Oct 24 09:01:35 2021
[    0.000000] Machine model: Marvell 8040 MACCHIATOBin Single-shot
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv1.1 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: MIGRATE_INFO_TYPE not supported.
[    0.000000] psci: SMC Calling Convention v1.0
[    0.000000] percpu: Embedded 16 pages/cpu s26648 r8192 d30696 u65536
[    0.000000] Detected PIPT I-cache on CPU0
[    0.000000] CPU features: detected: EL2 vector hardening
[    0.000000] ARM_SMCCC_ARCH_WORKAROUND_1 missing from firmware
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 1031688
[    0.000000] Kernel command line: console=ttyS0,115200 root=/dev/mmcblk1p2 rw rootwait
[    0.000000] Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes, linear)
[    0.000000] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] software IO TLB: mapped [mem 0xbc000000-0xc0000000] (64MB)
[    0.000000] Memory: 4036316K/4192256K available (7294K kernel code, 428K rwdata, 1172K rodata, 448K init, 279K bss, 155940K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu:     CONFIG_RCU_FANOUT set to non-default value of 32.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] GIC: Adjusting CPU interface base to 0x00000000f022f000
[    0.000000] GIC: Using split EOI/Deactivate mode
[    0.000000] GICv2m: DT overriding V2M MSI_TYPER (base:160, num:32)
[    0.000000] GICv2m: range[mem 0xf0280000-0xf0280fff], SPI[160:191]
[    0.000000] GICv2m: DT overriding V2M MSI_TYPER (base:192, num:32)
[    0.000000] GICv2m: range[mem 0xf0290000-0xf0290fff], SPI[192:223]
[    0.000000] GICv2m: DT overriding V2M MSI_TYPER (base:224, num:32)
[    0.000000] GICv2m: range[mem 0xf02a0000-0xf02a0fff], SPI[224:255]
[    0.000000] GICv2m: DT overriding V2M MSI_TYPER (base:256, num:32)
[    0.000000] GICv2m: range[mem 0xf02b0000-0xf02b0fff], SPI[256:287]
[    0.000000] random: get_random_bytes called from 0xffffffc0108d0bf8 with crng_init=0
[    0.000000] arch_timer: cp15 timer(s) running at 25.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x5c40939b5, max_idle_ns: 440795202646 ns
[    0.000002] sched_clock: 56 bits at 25MHz, resolution 40ns, wraps every 4398046511100ns
[    0.000082] Calibrating delay loop (skipped), value calculated using timer frequency.. 50.00 BogoMIPS (lpj=250000)
[    0.000087] pid_max: default: 32768 minimum: 301
[    0.000149] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.000167] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.000687] ASID allocator initialised with 32768 entries
[    0.000717] rcu: Hierarchical SRCU implementation.
[    0.000922] smp: Bringing up secondary CPUs ...
[    0.001200] Detected PIPT I-cache on CPU1
[    0.001225] CPU1: Booted secondary processor 0x0000000001 [0x410fd081]
[    0.001526] Detected PIPT I-cache on CPU2
[    0.001547] CPU2: Booted secondary processor 0x0000000100 [0x410fd081]
[    0.001843] Detected PIPT I-cache on CPU3
[    0.001858] CPU3: Booted secondary processor 0x0000000101 [0x410fd081]
[    0.001890] smp: Brought up 1 node, 4 CPUs
[    0.001899] SMP: Total of 4 processors activated.
[    0.001903] CPU features: detected: 32-bit EL0 Support
[    0.001906] CPU features: detected: CRC32 instructions
[    0.001932] CPU features: emulated: Privileged Access Never (PAN) using TTBR0_EL1 switching
[    0.001934] CPU: All CPU(s) started at EL2
[    0.001947] alternatives: patching kernel code
[    0.004068] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.004077] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.004122] pinctrl core: initialized pinctrl subsystem
[    0.004425] NET: Registered protocol family 16
[    0.004777] DMA: preallocated 256 KiB pool for atomic allocations
[    0.005009] cpuidle: using governor ladder
[    0.010931] cryptd: max_cpu_qlen set to 1000
[    0.011971] SCSI subsystem initialized
[    0.012118] usbcore: registered new interface driver usbfs
[    0.012134] usbcore: registered new interface driver hub
[    0.012150] usbcore: registered new device driver usb
[    0.012299] workqueue: max_active 576 requested for napi_workq is out of range, clamping between 1 and 512
[    0.012636] clocksource: Switched to clocksource arch_sys_counter
[    0.012836] thermal_sys: Registered thermal governor 'step_wise'
[    0.013169] NET: Registered protocol family 2
[    0.013311] IP idents hash table entries: 65536 (order: 7, 524288 bytes, linear)
[    0.014279] tcp_listen_portaddr_hash hash table entries: 2048 (order: 3, 32768 bytes, linear)
[    0.014310] TCP established hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.014440] TCP bind hash table entries: 32768 (order: 7, 524288 bytes, linear)
[    0.014692] TCP: Hash tables configured (established 32768 bind 32768)
[    0.014756] UDP hash table entries: 2048 (order: 4, 65536 bytes, linear)
[    0.014806] UDP-Lite hash table entries: 2048 (order: 4, 65536 bytes, linear)
[    0.014912] NET: Registered protocol family 1
[    0.014925] PCI: CLS 0 bytes, default 64
[    0.015450] workingset: timestamp_bits=46 max_order=20 bucket_order=0
[    0.017195] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.017199] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.017630] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[    0.018950] debugfs: Directory 'dummy-system-controller@440000' with parent 'regmap' already present!
[    0.019093] armada-ap806-pinctrl f06f4000.system-controller:pinctrl: registered pinctrl driver
[    0.019393] armada-cp110-pinctrl f2440000.system-controller:pinctrl: registered pinctrl driver
[    0.019590] armada-cp110-pinctrl f4440000.system-controller:pinctrl: registered pinctrl driver
[    0.021782] mv_xor_v2 f0400000.xor: Marvell Version 2 XOR driver
[...]
[    0.023269] mv_xor_v2 f46c0000.xor: Marvell Version 2 XOR driver
[    0.023347] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.023942] printk: console [ttyS0] disabled
[    0.044076] f0512000.serial: ttyS0 at MMIO 0xf0512000 (irq = 8, base_baud = 12500000) is a 16550A
[    0.688412] printk: console [ttyS0] enabled
[    0.713017] f2702100.serial: ttyS1 at MMIO 0xf2702100 (irq = 27, base_baud = 15625000) is a 16550A
[    0.742342] f4702000.serial: ttyS2 at MMIO 0xf4702000 (irq = 28, base_baud = 15625000) is a 16550A
[    0.751589] omap_rng f2760000.trng: Random Number Generator ver. 203b34c
[    0.751897] random: fast init done
[    0.758413] omap_rng f4760000.trng: Random Number Generator ver. 203b34c
[    0.761754] random: crng init done
[    0.768551] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    0.779106] loop: module loaded
[    0.782261] Loading iSCSI transport class v2.0-870.
[    0.787472] ahci f2540000.sata: f2540000.sata supply ahci not found, using dummy regulator
[    0.795807] ahci f2540000.sata: f2540000.sata supply phy not found, using dummy regulator
[    0.804141] platform f2540000.sata:sata-port@0: f2540000.sata:sata-port@0 supply target not found, using dummy regulator
[    0.815159] platform f2540000.sata:sata-port@1: f2540000.sata:sata-port@1 supply target not found, using dummy regulator
[    0.826220] ahci f4540000.sata: f4540000.sata supply ahci not found, using dummy regulator
[    0.834540] ahci f4540000.sata: f4540000.sata supply phy not found, using dummy regulator
[    0.842846] platform f4540000.sata:sata-port@0: f4540000.sata:sata-port@0 supply target not found, using dummy regulator
[    0.863272] spi-nor spi4.0: w25q32 (4096 Kbytes)
[    0.868494] libphy: Fixed MDIO Bus: probed
[    0.872884] libphy: orion_mdio_bus: probed
[    0.877607] mvpp2 f2000000.ethernet: using 8 per-cpu buffers
[    0.888959] mvpp2 f4000000.ethernet: using 8 per-cpu buffers
[    0.901261] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[...] // Plein de trucs concernant l'USB...
[    1.064876] usbcore: registered new interface driver usb-storage
[    1.071118] armada38x-rtc f4284000.rtc: registered as rtc0
[    1.076738] i2c /dev entries driver
[    1.081067] debugfs: Directory 'dummy-system-controller@400000' with parent 'regmap' already present!
[    1.090559] sdhci: Secure Digital Host Controller Interface driver
[    1.096771] sdhci: Copyright(c) Pierre Ossman
[    1.101203] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.132252] mmc0: SDHCI controller on f06e0000.sdhci [f06e0000.sdhci] using ADMA 64-bit
[    1.169864] mmc1: SDHCI controller on f2780000.sdhci [f2780000.sdhci] using ADMA 64-bit
[    1.178539] NET: Registered protocol family 10
[    1.183304] Segment Routing with IPv6
[    1.187004] NET: Registered protocol family 17
[    1.191477] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    1.204536] 8021q: 802.1Q VLAN Support v1.8
[    1.211429] armada8k-pcie f2600000.pcie: host bridge /cp0/pcie@f2600000 ranges:
[    1.218796] armada8k-pcie f2600000.pcie:   MEM 0xc0000000..0xdfffffff -> 0xc0000000
[    1.256442] mmc0: new high speed MMC card at address 0001
[    1.262112] mmcblk0: mmc0:0001 8GTF4R 7.28 GiB
[    1.266797] mmcblk0boot0: mmc0:0001 8GTF4R partition 1 4.00 MiB
[    1.272878] mmcblk0boot1: mmc0:0001 8GTF4R partition 2 4.00 MiB
[    1.278853] mmcblk0rpmb: mmc0:0001 8GTF4R partition 3 512 KiB, chardev (249:0)
[    1.296529] mmc1: new SDHC card at address e624
[    1.301302] mmcblk1: mmc1:e624 SU08G 7.40 GiB
[    1.308992]  mmcblk1: p1 p2
[    2.222637] armada8k-pcie f2600000.pcie: Phy link never came up
[    2.228581] armada8k-pcie f2600000.pcie: Link not up after reconfiguration
[    2.235536] armada8k-pcie f2600000.pcie: PCI host bridge to bus 0000:00
[    2.242178] pci_bus 0000:00: root bus resource [bus 00-ff]
[    2.247690] pci_bus 0000:00: root bus resource [mem 0xc0000000-0xdfffffff]
[    2.254607] pci 0000:00:00.0: [11ab:0110] type 01 class 0x060400
[    2.260652] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x000fffff]
[    2.266986] pci 0000:00:00.0: supports D1 D2
[    2.271272] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[    2.278701] pci 0000:00:00.0: BAR 0: assigned [mem 0xc0000000-0xc00fffff]
[    2.285523] pci 0000:00:00.0: PCI bridge to [bus 01-ff]
[    2.854221] pcieport 0000:00:00.0: AER: enabled with IRQ 39
[    2.859956] ahci f2540000.sata: f2540000.sata supply ahci not found, using dummy regulator
[    2.868286] ahci f2540000.sata: f2540000.sata supply phy not found, using dummy regulator
[    2.876545] platform f2540000.sata:sata-port@0: f2540000.sata:sata-port@0 supply target not found, using dummy regulator
[    2.887496] platform f2540000.sata:sata-port@1: f2540000.sata:sata-port@1 supply target not found, using dummy regulator
[    2.899519] ahci f2540000.sata: masking port_map 0x3 -> 0x3
[    2.905149] ahci f2540000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    2.913714] ahci f2540000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    2.922189] scsi host0: ahci
[    2.925255] scsi host1: ahci
[    2.928208] ata1: SATA max UDMA/133 mmio [mem 0xf2540000-0xf256ffff] port 0x100 irq 40
[    2.936167] ata2: SATA max UDMA/133 mmio [mem 0xf2540000-0xf256ffff] port 0x180 irq 40
[    2.944218] ahci f4540000.sata: f4540000.sata supply ahci not found, using dummy regulator
[    2.952539] ahci f4540000.sata: f4540000.sata supply phy not found, using dummy regulator
[    2.960802] platform f4540000.sata:sata-port@0: f4540000.sata:sata-port@0 supply target not found, using dummy regulator
[    2.971850] platform f4540000.sata:sata-port@1: f4540000.sata:sata-port@1 supply target not found, using dummy regulator
[    2.984910] ahci f4540000.sata: masking port_map 0x3 -> 0x3
[    2.990536] ahci f4540000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    2.999101] ahci f4540000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    3.007580] scsi host2: ahci
[    3.010602] scsi host3: ahci
[    3.013563] ata3: SATA max UDMA/133 mmio [mem 0xf4540000-0xf456ffff] port 0x100 irq 41
[    3.021512] ata4: SATA max UDMA/133 mmio [mem 0xf4540000-0xf456ffff] port 0x180 irq 41
[    3.029849] mvpp2 f2000000.ethernet: using 8 per-cpu buffers
[    3.044117] mvpp2 f2000000.ethernet eth0: Using firmware node mac address 00:51:82:11:22:00
[    3.060971] mvpp2 f4000000.ethernet: using 8 per-cpu buffers
[    3.078208] mvpp2 f4000000.ethernet eth1: Using firmware node mac address 00:51:82:11:22:01
[    3.088235] mvpp2 f4000000.ethernet eth2: Using firmware node mac address 00:51:82:11:22:02
[    3.098258] mvpp2 f4000000.ethernet eth3: Using firmware node mac address 00:51:82:11:22:03
[    3.126133] xhci-hcd f4500000.usb3: xHCI Host Controller
[    3.131478] xhci-hcd f4500000.usb3: new USB bus registered, assigned bus number 5
[    3.139051] xhci-hcd f4500000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x0000000000010010
[    3.148333] xhci-hcd f4500000.usb3: irq 33, io mem 0xf4500000
[    3.154170] xhci-hcd f4500000.usb3: xHCI Host Controller
[    3.159504] xhci-hcd f4500000.usb3: new USB bus registered, assigned bus number 6
[    3.167023] xhci-hcd f4500000.usb3: Host supports USB 3.0 SuperSpeed
[    3.173625] hub 5-0:1.0: USB hub found
[    3.177399] hub 5-0:1.0: 1 port detected
[    3.181439] usb usb6: We don't know the algorithms for LPM for this host, disabling LPM.
[    3.189698] hub 6-0:1.0: USB hub found
[    3.193474] hub 6-0:1.0: 1 port detected
[    3.198377] armada38x-rtc f4284000.rtc: setting system clock to 2021-11-02T16:16:01 UTC (1635869761)
[    3.273839] ata2: SATA link down (SStatus 0 SControl 300)
[    3.284334] ata1: SATA link down (SStatus 0 SControl 300)
[    3.365595] ata4: SATA link down (SStatus 0 SControl 300)
[    3.371038] ata3: SATA link down (SStatus 0 SControl 300)
[    3.388704] VFS: Mounted root (squashfs filesystem) readonly on device 179:26.
[    3.396107] Freeing unused kernel memory: 448K
[    3.422686] Run /sbin/init as init process
[    3.550483] init: Console is alive
[    3.611248] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    3.625555] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    3.634581] init: - preinit -
[    4.097618] mvpp2 f2000000.ethernet eth0: configuring for inband/10gbase-kr link mode
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[    8.832958] F2FS-fs (loop0): Mounted with checkpoint version = 7942fa32
[    8.839897] mount_root: switching to f2fs overlay
[    8.846380] overlayfs: "xino" feature enabled using 32 upper inode bits.
[    8.903600] EXT4-fs (mmcblk1p1): mounted filesystem without journal. Opts: (null)
[    8.919373] urandom-seed: Seeding with /etc/urandom.seed
[    8.964817] procd: - early -
[    9.480717] procd: - ubus -
[    9.534099] procd: - init -
Please press Enter to activate this console.
[    9.639394] kmodloader: loading kernel modules from /etc/modules.d/*
[    9.645588] urngd: v1.0.2 started.
[    9.653317] i2c i2c-1: Added multiplexed i2c bus 2
[...]
[    9.687336] i2c i2c-1: Added multiplexed i2c bus 9
[    9.692148] pca954x 1-0070: registered 8 multiplexed busses for I2C switch pca9548
[    9.700135] libphy: SFP I2C Bus: probed
[    9.704055] sfp sfp-eth0: Host maximum power 1.0W
[    9.709088] libphy: SFP I2C Bus: probed
[    9.713007] sfp sfp-eth1: Host maximum power 1.0W
[    9.718086] libphy: SFP I2C Bus: probed
[    9.721993] sfp sfp-eth3: Host maximum power 1.0W
[    9.729205] xt_time: kernel timezone is -0000
[    9.736447] PPP generic driver version 2.4.2
[    9.740994] NET: Registered protocol family 24
[    9.747581] kmodloader: done loading kernel modules from /etc/modules.d/*
[   11.762755] mvpp2 f2000000.ethernet eth0: configuring for inband/10gbase-kr link mode
[   11.770933] br-lan: port 1(eth0) entered blocking state
[   11.776199] br-lan: port 1(eth0) entered disabled state
[   11.781601] device eth0 entered promiscuous mode
[   11.790115] mvpp2 f4000000.ethernet eth2: PHY [f212a200.mdio-mii:00] driver [Marvell 88E1510]
[   11.799875] mvpp2 f4000000.ethernet eth2: configuring for phy/sgmii link mode
[   11.807720] br-lan: port 2(eth2) entered blocking state
[   11.813040] br-lan: port 2(eth2) entered disabled state
[   11.818466] device eth2 entered promiscuous mode
[   11.823214] br-lan: port 2(eth2) entered blocking state
[   11.828465] br-lan: port 2(eth2) entered forwarding state
[   11.833965] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   11.843327] mvpp2 f4000000.ethernet eth3: configuring for inband/2500base-x link mode
[   11.851857] br-lan: port 3(eth3) entered blocking state
[   11.857126] br-lan: port 3(eth3) entered disabled state
[   11.862574] device eth3 entered promiscuous mode
[   11.867362] br-lan: port 3(eth3) entered blocking state
[   11.872611] br-lan: port 3(eth3) entered forwarding state
[   12.090355] mvpp2 f4000000.ethernet eth1: configuring for inband/10gbase-kr link mode
[   12.812953] br-lan: port 2(eth2) entered disabled state
[   12.818582] br-lan: port 3(eth3) entered disabled state
[   16.013021] mvpp2 f4000000.ethernet eth2: Link is Up - 1Gbps/Full - flow control off
[   16.020815] br-lan: port 2(eth2) entered blocking state
[   16.026070] br-lan: port 2(eth2) entered forwarding state

Mackila

  • Abonné Bbox fibre
  • *
  • Messages: 354
  • 33
La fibre Orange à 2Gbps, sur un routeur MikroTik 10Gbps CCR2004, via un ONT SFP+
« Réponse #2485 le: 02 novembre 2021 à 17:54:02 »
Pour l'instant j'ai seulement la config par défaut OpenWrt, avec changement eth1/eth2

Un bridge eth0+eth2+eth3 ('LAN'), IP statique 192.168.1.1
Une interface WAN sur eth2 en DHCP client

Pour les adresse MAC, en attendant mieux j'ai remis celles qui étaient dans le u-boot d'origine. J'ai eu tenté de supprimer les ethXaddr dans l'environnement, il choisi des adresses au pif mais celà ne change rien au problème.

ifconfig :
BusyBox v1.33.1 (2021-10-24 09:01:35 UTC) built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt 21.02.1, r16325-88151b8303
 -----------------------------------------------------
root@OpenWrt:/#
root@OpenWrt:/# ifconfig
br-lan    Link encap:Ethernet  HWaddr 00:51:82:11:22:00
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::251:82ff:fe11:2200/64 Scope:Link
          inet6 addr: fd81:9466:9ef3::1/60 Scope:Global
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:584 errors:0 dropped:0 overruns:0 frame:0
          TX packets:15 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:77071 (75.2 KiB)  TX bytes:2438 (2.3 KiB)

eth0      Link encap:Ethernet  HWaddr 00:51:82:11:22:00
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:2048
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

eth1      Link encap:Ethernet  HWaddr 00:51:82:11:22:01
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:2048
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

eth2      Link encap:Ethernet  HWaddr 00:51:82:11:22:02
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:584 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:2048
          RX bytes:85247 (83.2 KiB)  TX bytes:1424 (1.3 KiB)

eth3      Link encap:Ethernet  HWaddr 00:51:82:11:22:03
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:2048
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:640 errors:0 dropped:0 overruns:0 frame:0
          TX packets:640 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:49920 (48.7 KiB)  TX bytes:49920 (48.7 KiB)

root@OpenWrt:/#

ethtool (AVANT de connecter un DAC SFP+ 10G) :
root@OpenWrt:/# ethtool eth0
Settings for eth0:
        Supported ports: [ MII ]
        Supported link modes:   10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Full
                                10000baseKR/Full
                                1000baseX/Full
                                10000baseCR/Full
                                10000baseSR/Full
                                10000baseLR/Full
                                10000baseLRM/Full
                                10000baseER/Full
        Supported pause frame use: No
        Supports auto-negotiation: Yes
        Supported FEC modes: Not reported
        Advertised link modes:  10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Full
                                10000baseKR/Full
                                1000baseX/Full
                                10000baseCR/Full
                                10000baseSR/Full
                                10000baseLR/Full
                                10000baseLRM/Full
                                10000baseER/Full
        Advertised pause frame use: No
        Advertised auto-negotiation: Yes
        Advertised FEC modes: Not reported
        Speed: 10000Mb/s
        Duplex: Full
        Port: MII
        PHYAD: 0
        Transceiver: internal
        Auto-negotiation: on
        Link detected: no
root@OpenWrt:/# ethtool eth1
Settings for eth1:
        Supported ports: [ MII ]
        Supported link modes:   10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Full
                                10000baseKR/Full
                                1000baseX/Full
                                10000baseCR/Full
                                10000baseSR/Full
                                10000baseLR/Full
                                10000baseLRM/Full
                                10000baseER/Full
        Supported pause frame use: No
        Supports auto-negotiation: Yes
        Supported FEC modes: Not reported
        Advertised link modes:  10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Full
                                10000baseKR/Full
                                1000baseX/Full
                                10000baseCR/Full
                                10000baseSR/Full
                                10000baseLR/Full
                                10000baseLRM/Full
                                10000baseER/Full
        Advertised pause frame use: No
        Advertised auto-negotiation: Yes
        Advertised FEC modes: Not reported
        Speed: 10000Mb/s
        Duplex: Full
        Port: MII
        PHYAD: 0
        Transceiver: internal
        Auto-negotiation: on
        Link detected: no
root@OpenWrt:/# ethtool eth2
Settings for eth2:
        Supported ports: [ TP MII FIBRE ]
        Supported link modes:   10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Full
        Supported pause frame use: No
        Supports auto-negotiation: Yes
        Supported FEC modes: Not reported
        Advertised link modes:  10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Full
        Advertised pause frame use: No
        Advertised auto-negotiation: Yes
        Advertised FEC modes: Not reported
        Link partner advertised link modes:  10baseT/Half 10baseT/Full
                                             100baseT/Half 100baseT/Full
                                             1000baseT/Full
        Link partner advertised pause frame use: Symmetric Receive-only
        Link partner advertised auto-negotiation: Yes
        Link partner advertised FEC modes: Not reported
        Speed: 1000Mb/s
        Duplex: Full
        Port: MII
        PHYAD: 0
        Transceiver: external
        Auto-negotiation: on
        Link detected: yes
root@OpenWrt:/# ethtool eth3
Settings for eth3:
        Supported ports: [ MII ]
        Supported link modes:   2500baseX/Full
        Supported pause frame use: No
        Supports auto-negotiation: Yes
        Supported FEC modes: Not reported
        Advertised link modes:  2500baseX/Full
        Advertised pause frame use: No
        Advertised auto-negotiation: Yes
        Advertised FEC modes: Not reported
        Speed: 2500Mb/s
        Duplex: Full
        Port: MII
        PHYAD: 0
        Transceiver: internal
        Auto-negotiation: on
        Link detected: no
root@OpenWrt:/#

ethtool eth0 AVEC UN DAC 10G SFP+ conncté :
[ 2035.924198] sfp sfp-eth0: module FS               SFPP-PC015       rev 03   sn G2006565538-1    dc 200917

root@OpenWrt:/#
root@OpenWrt:/#
root@OpenWrt:/# ethtool eth0
Settings for eth0:
        Supported ports: [ ]
        Supported link modes:   2500baseX/Full
                                1000baseX/Full
                                10000baseCR/Full
        Supported pause frame use: No
        Supports auto-negotiation: Yes
        Supported FEC modes: Not reported
        Advertised link modes:  2500baseX/Full
                                1000baseX/Full
                                10000baseCR/Full
        Advertised pause frame use: No
        Advertised auto-negotiation: Yes
        Advertised FEC modes: Not reported
        Speed: 10000Mb/s
        Duplex: Full
        Port: Direct Attach Copper
        PHYAD: 0
        Transceiver: internal
        Auto-negotiation: on
        Link detected: no
root@OpenWrt:/#

ethtool eth0 APRES avoir déconnecté le DAC :
root@OpenWrt:/# [ 2094.082283] sfp sfp-eth0: module removed
root@OpenWrt:/# ethtool eth0
Settings for eth0:
        Supported ports: [ ]
        Supported link modes:   2500baseX/Full
                                1000baseX/Full
                                10000baseCR/Full
        Supported pause frame use: No
        Supports auto-negotiation: Yes
        Supported FEC modes: Not reported
        Advertised link modes:  2500baseX/Full
                                1000baseX/Full
                                10000baseCR/Full
        Advertised pause frame use: No
        Advertised auto-negotiation: Yes
        Advertised FEC modes: Not reported
        Speed: 10000Mb/s
        Duplex: Full
        Port: Direct Attach Copper
        PHYAD: 0
        Transceiver: internal
        Auto-negotiation: on
        Link detected: no
root@OpenWrt:/#

A noter, quand le DAC est connecté, je peux faire du ethtool -m et avoir le contenu des registres du module.

Je vais tenter la manip dans le u-boot pour voir. Ensuite, tentative d'installation de la dernière ArchLinuxARM-aarch64...

Mackila

  • Abonné Bbox fibre
  • *
  • Messages: 354
  • 33
La fibre Orange à 2Gbps, sur un routeur MikroTik 10Gbps CCR2004, via un ONT SFP+
« Réponse #2486 le: 02 novembre 2021 à 18:26:35 »
Après essais sous u-boot, j'arrive bien à faire un ping en utilisant le port 1G. Rien sur les SFP :( :( :(

Cependant, ceci est-il normal ? (sous u-boot) :
=> dm tree
 Class     Index  Probed  Driver                Name
-----------------------------------------------------------
 root          0  [ + ]   root_driver           root_driver
 firmware      0  [   ]   psci                  |-- psci
 simple_bus    0  [ + ]   simple_bus            |-- ap806
 simple_bus    1  [ + ]   simple_bus            |   `-- config-space
 pinctrl       0  [ + ]   mvebu_pinctrl         |       |-- ap-pinctl@6F4000
 pinconfig     0  [   ]   pinconfig             |       |   |-- i2c-pins-0
 pinconfig     1  [ + ]   pinconfig             |       |   `-- emmc-pins-0
 gpio          0  [   ]   gpio_mvebu            |       |-- gpio@6F5040
 serial        0  [ + ]   ns16550_serial        |       |-- serial@512000
 mmc           0  [ + ]   xenon_sdhci           |       `-- sdhci@6e0000
 blk           0  [   ]   mmc_blk               |           `-- sdhci@6e0000.blk
 simple_bus    2  [ + ]   simple_bus            |-- cp0
 simple_bus    3  [ + ]   simple_bus            |   |-- config-space
 mdio          0  [ + ]   mvmdio                |   |   |-- cp0-mdio
 pinctrl       1  [ + ]   mvebu_pinctrl         |   |   |-- pinctl@440000
 pinconfig     2  [   ]   pinconfig             |   |   |   |-- cp0-i2c-pins-0
 pinconfig     3  [   ]   pinconfig             |   |   |   |-- cp0-i2c-pins-1
 pinconfig     4  [   ]   pinconfig             |   |   |   |-- cp0-ge-rgmii-pins-0
 pinconfig     5  [   ]   pinconfig             |   |   |   |-- cp0-ge-rgmii-pins-1
 pinconfig     6  [   ]   pinconfig             |   |   |   |-- cp0-pca0_pins
 pinconfig     7  [ + ]   pinconfig             |   |   |   |-- cp0-sdhi-pins-0
 pinconfig     8  [   ]   pinconfig             |   |   |   |-- cp0-spi-pins-0
 pinconfig     9  [   ]   pinconfig             |   |   |   |-- cp0-xhci-vbus-pins
 pinconfig    10  [ + ]   pinconfig             |   |   |   `-- cp0-pcie-reset-pins
 gpio          1  [   ]   gpio_mvebu            |   |   |-- gpio@440100
 gpio          2  [ + ]   gpio_mvebu            |   |   |-- gpio@440140
 ahci          0  [ + ]   ahci_mvebu            |   |   |-- sata@540000
 scsi          0  [   ]   ahci_scsi             |   |   |   `-- ahci_scsi
 i2c           0  [   ]   i2c_mvtwsi            |   |   |-- i2c@701000
 i2c           1  [   ]   i2c_mvtwsi            |   |   |-- i2c@701100
 misc          0  [ + ]   mvebu_comphy          |   |   |-- comphy@441000
 mmc           1  [ + ]   xenon_sdhci           |   |   `-- sdhci@780000
 blk           1  [   ]   mmc_blk               |   |       `-- sdhci@780000.blk
 pci           0  [ + ]   pcie_dw_mvebu         |   `-- pcie0@600000
 pci           1  [ + ]   pci_bridge_drv        |       `-- pci_0:0.0
 simple_bus    4  [ + ]   simple_bus            |-- cp1
 simple_bus    5  [ + ]   simple_bus            |   `-- config-space
 pinctrl       2  [ + ]   mvebu_pinctrl         |       |-- pinctl@440000
 pinconfig    11  [   ]   pinconfig             |       |   |-- cp1-ge-rgmii-pins-0
 pinconfig    12  [ + ]   pinconfig             |       |   `-- cp1-spi-pins-1
 gpio          3  [   ]   gpio_mvebu            |       |-- gpio@440100
 gpio          4  [   ]   gpio_mvebu            |       |-- gpio@440140
 ahci          1  [   ]   ahci_mvebu            |       |-- sata@540000
 scsi          1  [   ]   ahci_scsi             |       |   `-- ahci_scsi
 usb           0  [   ]   xhci_mvebu            |       |-- usb3@500000
 spi           0  [ + ]   mvebu_spi             |       |-- spi@700680
 spi_flash     0  [ + ]   jedec_spi_nor         |       |   `-- spi-flash@0
 misc          1  [ + ]   mvebu_comphy          |       |-- comphy@441000
 misc          2  [ + ]   mvpp2_base            |       `-- ethernet@0
 ethernet      0  [ + ]   mvpp2                 |           `-- mvpp2-1
 simple_bus    6  [   ]   simple_bus            `-- simple-bus
 regulator     0  [   ]   regulator_fixed           `-- usb3-vbus0
=>

Je ne vois qu'un seul ethernet...

Maeda

  • Abonné Orange Fibre
  • *
  • Messages: 5
  • 34160
La fibre Orange à 2Gbps, sur un routeur MikroTik 10Gbps CCR2004, via un ONT SFP+
« Réponse #2487 le: 02 novembre 2021 à 20:52:08 »
Pour l'instant j'ai seulement la config par défaut OpenWrt, avec changement eth1/eth2

Un bridge eth0+eth2+eth3 ('LAN'), IP statique 192.168.1.1
Une interface WAN sur eth2 en DHCP client

Juste pour être sûr, bridge LAN sur eth0, eth1 (et pas 2 on est d'accord?), et eth3 (tu pourrais essayer sans), et fake WAN en DHCP sur eth2.

Bridge désactivé, si tu colles une IP avec ifconfig sur eth0 et tu montes l'interface, avec DAC en place, tu as un retour d'erreur ou ça passe mais sans trafic?

Je suis pas expert en DAC, il y a quoi de l'autre côté ? que dit l'équipement à l'autre bout ? Il voit quelque chose ? Le rasoir d'Ockham : le DAC est fonctionnel sur un autre environnement ?

Tu n'as pas de message d'erreur "could not attach PHY (-22)", il voit bien tes actions physiques, et contrairement a d'autres cas il te dit pas que l'interface est UP non stop.

Le test ArchLinuxARM est une bonne idée, une alternative au DAC serait le plan C...

Mackila

  • Abonné Bbox fibre
  • *
  • Messages: 354
  • 33
La fibre Orange à 2Gbps, sur un routeur MikroTik 10Gbps CCR2004, via un ONT SFP+
« Réponse #2488 le: 02 novembre 2021 à 22:42:39 »
Je tente de récapituler toutes mes manips, et de répondre à toutes les questions :

Pour le sport, j'ai essayé avec 0 bridges (vidange /etc/config/network, reboot).

Monter eth2 à la main (ifconfig eth2 add 192.168.1.17 # le PC en face est en 192.168.1.103, tout statique). Branchement du câble, message console "Link is Up", connecté à 1Gps niquel, ping dans les deux sens, compteur de paquets qui s'incrémente bien dans ifconfig.

Monter eth1 à la main (ifconfig eth1 add 192.168.2.x, PC en face en .2.y). 2 essais :
1er avec le DAC qui me sert habituellement entre mon switch et mon routeur (et par lequel transite ce message). DAC détecté, aucun message d'erreur. ethtool eth1 indique link detected à no. ifconfig dit "UP". Aucun message sur la console n'indique "Link is Up". Aucune communication, le compteur de paquets ne s'incrémente pas dans ifconfig malgré mes tentatives de ping (normalement, ping quelquechose = des paquets ICMP qui veulent sortir, donc du compteur de paquet TX qui devrait monter... Bah là il reste à 0).
2e avec le SFP 10G cuivre que j'ai normalement dans mon PC (et par lequel a aussi transité ce message). DAC détecté, aucun message dans la console autre que la détection du module. ifconfig dit "UP". ethtool dit "link detected: no". 0 paquets comptés (pareil que le DAC, en fait....)

DAC et module 10G sont parfaitement opérationnels à leur places habituelles (le module dans une X520 sur mon PC Windows, le DAC entre un commutateur FS.com et un CCR2004 Mikrotik).


Tom.exe

  • Abonné Orange Fibre
  • *
  • Messages: 200
  • Charente-Maritime - ↓2Gbps | ↑600Mbps
La fibre Orange à 2Gbps, sur un routeur MikroTik 10Gbps CCR2004, via un ONT SFP+
« Réponse #2489 le: 03 novembre 2021 à 16:13:12 »
J'ai réussi (avec de l'aide) à faire fonctionner mon routeur opnsense + patch !!
 
Etape routeur : Réussi
Etape fibre: Démarage de l'attente

Merci au gentilles personne d'un discord qui m'ont bien aidé  ;) si jamais elle passent par ici, un grand merci a vous

je continue a vous lire tous et revienderais commenter ici des que j'aurai passé le mur du gigabit !
Bonne journée a tous  :)

SCMouettE

  • Abonné Bbox fibre
  • *
  • Messages: 14
  • Marseille (13)
La fibre Orange à 2Gbps, sur un routeur MikroTik 10Gbps CCR2004, via un ONT SFP+
« Réponse #2490 le: 05 novembre 2021 à 17:12:37 »
Je continue de travailler sur mon setup. Comme le PC du salon qui accueille la carte 10G et le SFP GPON est assez ancien avec peu de ressources, faire tourner le routeur dans une VM s'est soldé par une performance assez catastrophique. Du coup le routage se fait dans l'OS sous archlinux. J'ai créé un package noyau dans l'AUR avec les patchs bnx2x 2.5G, pour les quelques fous qui voudraient faire la même chose ;D. dhclient pour récupérer les adresses IPv4+IPv6, dnsmasq pour dhcp lan IPv4+RA IPv6 (je me suis pas mal inspiré de https://vincent.bernat.ch/fr/blog/2019-orange-livebox-linux mais adapté pour arch, je peux fournir les détails et la conf si besoin). firewalld pour le firewall de base et le tout fonctionne très bien depuis maintenant 2-3 semaines. Je n'ai pas de capture speedtest car le réseau local n'est pas encore en 10g mais ça viendra, en attendant plus de livebox, les 2g+ sont dispo sur le routeur ce qui est déjà top !



Merci encore à Gnubyte et à tous les participants pour avoir défriché le terrain ! Dès que je peux m'offrir les switchs et adaptateurs SFP+ je ne manquerai pas de poster les speedtest sur les postes clients.
« Modifié: 10 novembre 2022 à 18:06:29 par SCMouettE »

Gnubyte

  • Abonné Orange Fibre
  • *
  • Messages: 1 062
  • Toulon (83)
    • HSGMII intégriste
La fibre Orange à 2Gbps, sur un routeur MikroTik 10Gbps CCR2004, via un ONT SFP+
« Réponse #2491 le: 06 novembre 2021 à 07:31:27 »
Félicitations!
Tu as fait 100% de la manipulation, tu as une synchronisation HSGMII, une inscription sur l'arbre GPON, une authentification, un routage IP, et les débits sont là.

Le reste n'est qu'adaptation du réseau local aux nouveaux débits disponibles.

N'hésites pas à poster un résumé circonstancié.

Gnubyte

  • Abonné Orange Fibre
  • *
  • Messages: 1 062
  • Toulon (83)
    • HSGMII intégriste
La fibre Orange à 2Gbps, sur un routeur MikroTik 10Gbps CCR2004, via un ONT SFP+
« Réponse #2492 le: 06 novembre 2021 à 07:43:14 »
Ce fil fête un an, et 22 manipulations fonctionnelles.

208 pages, 2492 posts.

nitro

  • Abonné Orange Fibre
  • *
  • Messages: 67
La fibre Orange à 2Gbps, sur un routeur MikroTik 10Gbps CCR2004, via un ONT SFP+
« Réponse #2493 le: 06 novembre 2021 à 12:31:10 »
Petite annecdote au passage.

Je suis donc sur une macchiato single shot + OpenBSD depuis plus de 6 mois, connection super stable, pas de reboot hormis pour les syspatchs.
Un des avantages d'OpenBSD, c'est son dhcp client qui conserve l'IP a chaque reboot, alors que OpenWRT me renouvellait l'IP a chaque redemarrage de la box (et non a chaque renew du bail dhcp).

Il y a deux ou trois semaines, un tractopelle a sectionne une fibre qui a coupe le service orange plusieurs jours (3 ou 4), sur plusieurs villages.
Je me suis dit que du coup, j'allais perdre mon IP, vu qu'elle allait etre recyclee au bout de 24h.
Que neni ! la connectivite de retour, le DHCP a bien recupere mon IP !

Je vais essayer de creuser cette difference entre les deux clients dhcp un de ces 4 et comprendre ce que le client OpenBSD annonce pour conserver l'IP.


Mackila

  • Abonné Bbox fibre
  • *
  • Messages: 354
  • 33
La fibre Orange à 2Gbps, sur un routeur MikroTik 10Gbps CCR2004, via un ONT SFP+
« Réponse #2494 le: 06 novembre 2021 à 17:56:33 »
Bah sniffe un renouvellement, on en sniffe de notre côté, et on compare :)

epalzeolithe

  • Abonné Orange Fibre
  • *
  • Messages: 100
La fibre Orange à 2Gbps, sur un routeur MikroTik 10Gbps CCR2004, via un ONT SFP+
« Réponse #2495 le: 07 novembre 2021 à 16:46:52 »
Bonjour

une fois la config en 2Gbps, quel est le meilleur MTU côté ONU et LAN ? (j'ai un lan 1 gbit et 2.5 gbit)

D'après upnatom il faudrait mettre 1508 sur l'ONU ?

Merci pour vos conseils