技术
成就梦想!

烽火AN5506系列OUN转普通交换机配置

[qgg_green]烽火设备在只有linux操作系统启动都时候,他的网口都是可以互通,我们只要阻止烽火ONU系统启动即可作为交换机来使用,配置过程不需要知道ONU的密码,假设密码不是EPON也是可以的。[/qgg_green]

本次配置的设备为AN5506-09,这个系列的设备都可以这样配置,具体配置如下打印文件。

 

U-Boot 1.2.0-BL018 (Oct 18 2012 - 09:18:25, R147342)

Device Type : FiberHome AN5506-07-09-10 ver:0.08

(BL2345/8_A1 CPU Speed 449 MHz bus speed 56 MHz)
DRAM:  64 MB
Flash: 32 MB
CPLD:  CS1(0xB8600000)
In:    serial
Out:   serial
Err:   serial
Net:   CPLD_ver: 0.
HW_ver: 94.
Device: AN5506-09-A3.

config BCM5328X...
BCM53282, 8FE, Chip ID: 5.

Microcode version     6
Runner driver version 9
ETH on MAC 0
press 1 to stop autoboot:  0
## Booting image A at bfc80000 ...
Image Name:   Linux Kernel Image
Created:      2012-12-14   6:09:59 UTC
Image Type:   MIPS Linux Kernel Image (gzip compressed)
Data Size:    1111705 Bytes =  1.1 MB
Load Address: 80010000
Entry Point:  80245000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK

Starting kernel ...

BL2348 evaluation board (Jasmine)
CPU clock 449MHz
SYSTEM clock 56MHzLinux version 2.6.21.7-hrt130 (zheng@linux-6bzu) (gcc version 4.1.2 (Wind River Linux Sourcery G++ 4.1-84)) #34 Fri Dec 14 14:09:50 CST 2012
CPU revision is: 0001937c
BL2348 Evaluation board (Jasmine) setup
Determined physical RAM map:
memory: 04000000 @ 00000000 (usable)
User-defined physical RAM map:
memory: 03600000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
Built 1 zonelists.  Total pages: 13716
Kernel command line: root=/dev/mtdblock0 rw rootfstype=jffs2 console=ttyS0,9600n8 mem=54M
Primary instruction cache 16kB, physically tagged, 4-way, linesize 32 bytes.
Primary data cache 16kB, 4-way, linesize 32 bytes.
Synthesized TLB refill handler (20 instructions).
Synthesized TLB load handler fastpath (32 instructions).
Synthesized TLB store handler fastpath (32 instructions).
Synthesized TLB modify handler fastpath (31 instructions).
Cache parity protection disabled
PID hash table entries: 256 (order: 8, 1024 bytes)
Using 224.642 MHz high precision timer.
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 52132k/55296k available (1764k kernel code, 3104k reserved, 491k data, 132k init, 0k highmem)
Mount-cache hash table entries: 512
NET: Registered protocol family 16
BLPCI driver initialized : vendor_id=0x5555 device_id=0x1556
version=0x380 type=0x2 revision_id=0x0 class_id=0x400000
registering PCI controller with io_map_base unset
Generic PHY: Registered new driver
NET: Registered protocol family 2
Time: MIPS clocksource has been installed.
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
JFFS2 version 2.2. (NAND) (C) 2001-2006 Red Hat, Inc.
io scheduler noop registered (default)
Generic RTC Driver v1.07
Serial: 8250/16550 driver $Revision: 1.90 $ 1 ports, IRQ sharing disabled
ttyS0: autoconf (0x0000, 0xaff01000): type = 16550A
serial8250: ttyS0 at MMIO map 0xaff01000 mem 0xaff01000 (irq = 116) is a 16550A
RAMDISK driver initialized: 2 RAM disks of 16384K size 1024 blocksize
PPP generic driver version 2.4.2
PPP Deflate Compression module registered
PPP BSD Compression module registered
PPP MPPE Compression module registered
NET: Registered protocol family 24
Get FHSNOUI from Flash ...... 1 ... FHSNOUI set in boot prom 02
Get ethernet addr from Flash ...... 1 ... Done.
Created eth0
Microcode version     6
Runner driver version 9
Jasmine flash: Found 1 x16 devices at 0x0 in 16-bit bank
Amd/Fujitsu Extended Query Table at 0x0040
Jasmine flash: CFI does not contain boot bank location. Assuming top.
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
Creating 8 MTD partitions on "Jasmine flash":
0x00000000-0x00600000 : "root fs"
0x00600000-0x01100000 : "app fs A"
0x01100000-0x01c00000 : "app fs B"
0x01c00000-0x01c40000 : "u-boot"
0x01c40000-0x01c60000 : "boot env"
0x01c60000-0x01c80000 : "boot env redund"
0x01c80000-0x01e40000 : "kernel A"
0x01e40000-0x02000000 : "kernel B"
block2mtd: version $Revision: 1.30 $
IPv4 over IPv4 tunneling driver
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
Bridge firewalling registered
VFS: Mounted root (jffs2 filesystem).
Freeing unused kernel memory: 132k freed

BROADLIGHT,2008 Linux ( based on Wind River Linux glibc_small (small) 2.0)
login[78]: root login on 'ttyS0'

BusyBox v1.4.1 (2009-05-27 11:07:31 CST) Built-in shell (ash)
Enter 'help' for a list of built-in commands.

Press Ctrl + C to stop auto setup
2                                        //按Ctrl+C键中断启动
root@(none):/root # mv /fh/bin/initialize.sh /fh/bin/initialize.sh_  //对initialize.sh启动文件进行重命名 阻止启动烽火ONU系统
root@(none):/root # reboot  //重启设备后即可 当做普通交换机使用
Bummer, cannot run '/sbin/swapoff': No such file or directory
The system is going down NOW !!
Sending SIGTERM to all processes.
Requesting system reboot.
Restarting system.
Broadlight Jasmine (BL2348 Evaluation) board will restart...

image

赞(18)
未经允许不得转载:未来往事 » 烽火AN5506系列OUN转普通交换机配置

评论 17

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
  1. #1

    我有一台烽火AN5200-10 先改成交换机、是否可以出个教程?如果可以希望可以通过邮箱指点一二。感谢

    Taidong5年前 (2020-05-03)回复
  2. #2

    你好,能否加个联系方式请教关于烽火设置的问题

    elbing4年前 (2020-09-27)回复
  3. #3

    可以改 重启后就不行了

    阿珂3年前 (2021-07-12)回复
    • 你检查一下是否是步骤有遗漏呢?

      join3年前 (2021-07-12)回复
      • 步骤没有错 重启后ACT灯亮 就不行了

        阿珂3年前 (2021-07-17)回复
        • 检查重启后是否咋"root@(none):/root #"视图。

          join3年前 (2021-07-17)回复
          • 不是 重启后,直接跳完所有 到了thread list

            阿珂3年前 (2021-07-17)
          • 我是直接按你的命令打的

            阿珂3年前 (2021-07-17)
          • 重启按Ctrl+C可以卡这里 就行 跳过去就不行了

            阿珂3年前 (2021-07-17)
          • 配置的主要目的就是把系统启动文件阻止掉,让他一卡直在ctrl+C界面中,实现。
            你再检查检查,应该是系统启动了造成端口隔离。

            join3年前 (2021-07-17)
    • 冒办法 卡不住 到了这里就倒计时 重启

      阿珂3年前 (2021-07-17)回复
  4. #4

    针不戳,有一台 AN5506-09,看做工挺好的,可靠性杠杠的,参照这个办法,1分钟搞定,秒变交换机,稳定运行…… 海鲜市场有很多 AN5506-07,是16口的,甚至有全新的,一张毛爷爷即可搞定,比杂牌交换机靠谱多了

    田野的守望者2年前 (2022-10-28)回复
  5. #5

    按键盘ctrl+C 暂停不了啊,只有3秒钟时间读秒。按键无反应,要怎么暂停oun,用CRT6.5

    麟兄2年前 (2022-12-06)回复
    • 看看是否是CRT参数设置不对 波特率9600 流控都关掉

      join2年前 (2022-12-06)回复
  6. #6

    / # mv /fh/bin/initialize.sh /fh/bin/initialize.sh_
    mv: can't rename '/fh/bin/initialize.sh': No such file or directory

    bqd135791年前 (2023-09-17)回复
  7. #7

    / # mv /fh/bin/initialize.sh /fh/bin/initialize.sh_ //
    mv: can't rename '/fh/bin/initialize.sh': No such file or directory
    为啥显示这个大佬求解,是我哪里打错了吗设备an5006-10

    bqd135791年前 (2023-09-17)回复
    • 百度翻译一下

      join1年前 (2023-10-08)回复