Wi-CAT LLC

Wireless Comprehensive Advanced Technology. Build your network now.

Wi-CAT LLC
Навигация Форума
Вы должны войти, чтобы создавать сообщения и темы.

Резервированием канала при помощи hilink usb модема

Доброго времени суток.

Работаю в локальном провайдере, нам на вооружение закупили ft-air-duo-f и ft-air-duo-g. Изначально роутеры мне понравились и один ft-air-duo-g я взял ещё и себе в личное пользование с задумкой резервировать канал модемом.  Сейчас аналогичная задача встала и по работе. Со stick прошивкой модем не поднялся вообще (huawei e3131), ну и бог с ней,  перепрошил на hilink разблокировал. При включении соответствующей функции  в роутере интернет запускается и делает всё что от него требуется когда в WAN порт не вставлен кабель. Когда вставляешь кабель переключение на проводной канал не происходит, более того в логе даже не появляется записи о том что порт перешёл в UP, хотя обычно в таких случаях она там появляется.

Jan  1 06:00:04 syslogd started: BusyBox v1.33.1
Jan  1 06:00:04 kernel: Linux version 3.4.113.258 (FT-AIR-DUO-G-3.4.10.RU.08062021@MT7621-MT7615-2T2R-USB) (gcc version 7.5.0 (GCC) ) #1 SMP Tue Jun 8 13:41:20 +05 2021
Jan  1 06:00:04 kernel: MediaTek SoC: MT7621A, RevID: 0103, RAM: DDR3, XTAL: 40MHz
Jan  1 06:00:04 kernel: CPU/OCP/SYS frequency: 880/293/220 MHz
Jan  1 06:00:04 kernel: CPU revision is: 0001992f (MIPS 1004Kc)
Jan  1 06:00:04 kernel: Determined physical RAM map:
Jan  1 06:00:04 kernel:  memory: 10000000 @ 00000000 (usable)
Jan  1 06:00:04 kernel: Detected 3 available secondary CPU(s)
Jan  1 06:00:04 kernel: Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
Jan  1 06:00:04 kernel: Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
Jan  1 06:00:04 kernel: MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
Jan  1 06:00:04 kernel: Zone PFN ranges:
Jan  1 06:00:04 kernel:   DMA      0x00000000 -> 0x00001000
Jan  1 06:00:04 kernel:   Normal   0x00001000 -> 0x00010000
Jan  1 06:00:04 kernel: Movable zone start PFN for each node
Jan  1 06:00:04 kernel: Early memory PFN ranges
Jan  1 06:00:04 kernel:     0: 0x00000000 -> 0x00010000
Jan  1 06:00:04 kernel: PERCPU: Embedded 7 pages/cpu @8162a000 s4544 r8192 d15936 u32768
Jan  1 06:00:04 kernel: Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
Jan  1 06:00:04 kernel: Kernel command line: console=ttyS0,57600n8 root=/dev/mtdblock4 rootfstype=squashfs
Jan  1 06:00:04 kernel: PID hash table entries: 1024 (order: 0, 4096 bytes)
Jan  1 06:00:04 kernel: Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Jan  1 06:00:04 kernel: Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Jan  1 06:00:04 kernel: Writing ErrCtl register=0000440c
Jan  1 06:00:04 kernel: Readback ErrCtl register=0000440c
Jan  1 06:00:04 kernel: Memory: 255488k/262144k available (3259k kernel code, 6656k reserved, 697k data, 196k init, 0k highmem)
Jan  1 06:00:04 kernel: Hierarchical RCU implementation.
Jan  1 06:00:04 kernel: NR_IRQS:72
Jan  1 06:00:04 kernel: MIPS GIC RevID: 3.0
Jan  1 06:00:04 kernel: Setting up vectored interrupts
Jan  1 06:00:04 kernel: console [ttyS0] enabled
Jan  1 06:00:04 kernel: Calibrating delay loop... 577.53 BogoMIPS (lpj=288768)
Jan  1 06:00:04 kernel: pid_max: default: 32768 minimum: 301
Jan  1 06:00:04 kernel: Mount-cache hash table entries: 512
Jan  1 06:00:04 kernel: Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
Jan  1 06:00:04 kernel: Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
Jan  1 06:00:04 kernel: MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
Jan  1 06:00:04 kernel: CPU revision is: 0001992f (MIPS 1004Kc)
Jan  1 06:00:04 kernel: Synchronize counters for CPU 1: done.
Jan  1 06:00:04 kernel: Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
Jan  1 06:00:04 kernel: Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
Jan  1 06:00:04 kernel: MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
Jan  1 06:00:04 kernel: CPU revision is: 0001992f (MIPS 1004Kc)
Jan  1 06:00:04 kernel: Synchronize counters for CPU 2: done.
Jan  1 06:00:04 kernel: Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
Jan  1 06:00:04 kernel: Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
Jan  1 06:00:04 kernel: MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
Jan  1 06:00:04 kernel: CPU revision is: 0001992f (MIPS 1004Kc)
Jan  1 06:00:04 kernel: Synchronize counters for CPU 3: done.
Jan  1 06:00:04 kernel: Brought up 4 CPUs
Jan  1 06:00:04 kernel: NET: Registered protocol family 16
Jan  1 06:00:04 kernel: bio: create slab <bio-0> at 0
Jan  1 06:00:04 kernel: SCSI subsystem initialized
Jan  1 06:00:04 kernel: USB led has gpio 16
Jan  1 06:00:04 kernel: usbcore: registered new interface driver usbfs
Jan  1 06:00:04 kernel: usbcore: registered new interface driver hub
Jan  1 06:00:04 kernel: usbcore: registered new device driver usb
Jan  1 06:00:04 kernel: PCI host bridge to bus 0000:00
Jan  1 06:00:04 kernel: pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff]
Jan  1 06:00:04 kernel: pci_bus 0000:00: root bus resource [io  0x1e160000-0x1e16ffff]
Jan  1 06:00:04 kernel: pci 0000:00:00.0: BAR 0: can't assign mem (size 0x80000000)
Jan  1 06:00:04 kernel: pci 0000:00:00.0: BAR 8: assigned [mem 0x60000000-0x600fffff]
Jan  1 06:00:04 kernel: pci 0000:01:00.0: BAR 0: assigned [mem 0x60000000-0x600fffff 64bit]
Jan  1 06:00:04 kernel: pci 0000:00:00.0: PCI bridge to [bus 01-01]
Jan  1 06:00:04 kernel: pci 0000:00:00.0:   bridge window [mem 0x60000000-0x600fffff]
Jan  1 06:00:04 kernel: Switching to clocksource GIC
Jan  1 06:00:04 kernel: FS-Cache: Loaded
Jan  1 06:00:04 kernel: CacheFiles: Loaded
Jan  1 06:00:04 kernel: NET: Registered protocol family 1
Jan  1 06:00:04 kernel: NET: Registered protocol family 2
Jan  1 06:00:04 kernel: IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
Jan  1 06:00:04 kernel: TCP established hash table entries: 8192 (order: 4, 65536 bytes)
Jan  1 06:00:04 kernel: TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
Jan  1 06:00:04 kernel: TCP: Hash tables configured (established 8192 bind 8192)
Jan  1 06:00:04 kernel: TCP: reno registered
Jan  1 06:00:04 kernel: UDP hash table entries: 128 (order: 0, 4096 bytes)
Jan  1 06:00:04 kernel: 4 CPUs re-calibrate udelay (lpj = 289792)
Jan  1 06:00:04 kernel: Load Ralink WDG Timer Module
Jan  1 06:00:04 kernel: squashfs: version 4.0 (2009/01/31) Phillip Lougher
Jan  1 06:00:04 kernel: msgmni has been set to 499
Jan  1 06:00:04 kernel: Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254)
Jan  1 06:00:04 kernel: io scheduler noop registered (default)
Jan  1 06:00:04 kernel: Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
Jan  1 06:00:04 kernel: serial8250: ttyS0 at MMIO 0x1e000c00 (irq = 34) is a 16550A
Jan  1 06:00:04 kernel: USB power down at bootup use inverted gpio 14
Jan  1 06:00:04 kernel: Ralink gpio driver initialized
Jan  1 06:00:04 kernel: loop: module loaded
Jan  1 06:00:04 kernel: MediaTek SPI flash driver, SPI clock: 44MHz
Jan  1 06:00:04 kernel: SPI flash chip: W25Q128FV (ef 40180000) (16384 Kbytes)
Jan  1 06:00:04 kernel: Creating 8 MTD partitions on "raspi":
Jan  1 06:00:04 kernel: 0x000000000000-0x000000030000 : "Bootloader"
Jan  1 06:00:04 kernel: 0x000000030000-0x000000040000 : "Config"
Jan  1 06:00:04 kernel: 0x000000040000-0x000000050000 : "Factory"
Jan  1 06:00:04 kernel: 0x000000050000-0x0000001ae79d : "Kernel_stub"
Jan  1 06:00:04 kernel: 0x0000001ae79d-0x000000fc0000 : "RootFS_stub"
Jan  1 06:00:04 kernel: 0x000000f80000-0x000000fc0000 : "RW-FS"
Jan  1 06:00:04 kernel: 0x000000fc0000-0x000001000000 : "PS-FS"
Jan  1 06:00:04 kernel: 0x000000050000-0x000000fc0000 : "Kernel_RootFS"
Jan  1 06:00:04 kernel: Ralink APSoC Ethernet Driver v3.2.4 (raeth)
Jan  1 06:00:04 kernel: raeth: PDMA RX ring 512, QDMA TX pool 1024. Max packet size 1536
Jan  1 06:00:04 kernel: raeth: NAPI & GRO support, weight 128
Jan  1 06:00:04 kernel: raeth: Byte Queue Limits (BQL) support
Jan  1 06:00:04 kernel: PPP generic driver version 2.4.2
Jan  1 06:00:04 kernel: PPP vpn led has gpio 13
Jan  1 06:00:04 kernel: PPP MPPE Compression module registered
Jan  1 06:00:04 kernel: NET: Registered protocol family 24
Jan  1 06:00:04 kernel: PPTP driver version 0.8.5
Jan  1 06:00:04 kernel: ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
Jan  1 06:00:04 kernel: ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
Jan  1 06:00:04 kernel: U2PHY P0 set SRCTRL calibration value: 2
Jan  1 06:00:04 kernel: U2PHY P1 set SRCTRL calibration value: 2
Jan  1 06:00:04 kernel: xhci-hcd xhci-hcd: xHCI Host Controller
Jan  1 06:00:04 kernel: xhci-hcd xhci-hcd: new USB bus registered, assigned bus number 1
Jan  1 06:00:04 kernel: xhci-hcd xhci-hcd: irq 30, io mem 0x1e1c0000
Jan  1 06:00:04 kernel: usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
Jan  1 06:00:04 kernel: usb usb1: Product: xHCI Host Controller
Jan  1 06:00:04 kernel: usb usb1: Manufacturer: Linux 3.4.113.258 xhci-hcd
Jan  1 06:00:04 kernel: usb usb1: SerialNumber: xhci-hcd
Jan  1 06:00:04 kernel: hub 1-0:1.0: USB hub found
Jan  1 06:00:04 kernel: hub 1-0:1.0: 2 ports detected
Jan  1 06:00:04 kernel: xhci-hcd xhci-hcd: xHCI Host Controller
Jan  1 06:00:04 kernel: xhci-hcd xhci-hcd: new USB bus registered, assigned bus number 2
Jan  1 06:00:04 kernel: usb usb2: New USB device found, idVendor=1d6b, idProduct=0003
Jan  1 06:00:04 kernel: usb usb2: Product: xHCI Host Controller
Jan  1 06:00:04 kernel: usb usb2: Manufacturer: Linux 3.4.113.258 xhci-hcd
Jan  1 06:00:04 kernel: usb usb2: SerialNumber: xhci-hcd
Jan  1 06:00:04 kernel: hub 2-0:1.0: USB hub found
Jan  1 06:00:04 kernel: hub 2-0:1.0: 1 port detected
Jan  1 06:00:04 kernel: usbcore: registered new interface driver libusual
Jan  1 06:00:04 kernel: 8021q: 802.1Q VLAN Support v1.8
Jan  1 06:00:04 kernel: NET: Registered protocol family 17
Jan  1 06:00:04 kernel: Netfilter messages via NETLINK v0.30.
Jan  1 06:00:04 kernel: nf_conntrack version 0.5.0 (32768 buckets, 32768 max)
Jan  1 06:00:04 kernel: gre: GRE over IPv4 demultiplexor driver
Jan  1 06:00:04 kernel: ip_tables: (C) 2000-2006 Netfilter Core Team
Jan  1 06:00:04 kernel: TCP: cubic registered
Jan  1 06:00:04 kernel: NET: Registered protocol family 10
Jan  1 06:00:04 kernel: ip6_tables: (C) 2000-2006 Netfilter Core Team
Jan  1 06:00:04 kernel: L2TP core driver, V2.0
Jan  1 06:00:04 kernel: PPPoL2TP kernel driver, V2.0
Jan  1 06:00:04 kernel: L2TP netlink interface
Jan  1 06:00:04 kernel: Registering the dns_resolver key type
Jan  1 06:00:04 kernel: NVRAM: Kernel NVRAM start init.
Jan  1 06:00:04 kernel: NVRAM: Particion 0 CRC d03db90 OK.
Jan  1 06:00:04 kernel: VFS: Mounted root (squashfs filesystem) readonly on device 31:4.
Jan  1 06:00:04 kernel: mount /proc file system ok!
Jan  1 06:00:04 kernel: mount /proc/bus/usb file system ok!
Jan  1 06:00:04 kernel: mount /sys file system ok!
Jan  1 06:00:04 kernel: mount /dev file system ok!
Jan  1 06:00:04 kernel: mount /var file system ok!
Jan  1 06:00:04 kernel: mount /tmp file system ok!
Jan  1 06:00:04 kernel: Freeing unused kernel memory: 196k freed
Jan  1 06:00:04 kernel: Build the /dev/console node.
Jan  1 06:00:04 kernel: Algorithmics/MIPS FPU Emulator v1.5
Jan  1 06:00:04 haveged: haveged starting up
Jan  1 06:00:04 system: Sart update service
Jan  1 06:00:04 sysctl: Tune kernel with sysctl.
Jan  1 06:00:04 pass: Set current password
Jan  1 06:00:04 pass: WARNING!!! You use default Login and Password!!! Please change it.
Jan  1 06:00:04 syslog: password for 'Admin' changed
Jun  8 13:59:00 ntp: Starting NTPD.
Jun  8 13:59:00 hotplug: Generate config file.
Jun  8 13:59:00 hotplug: Starting MDEV helper as daemon.
Jun  8 13:59:00 hotplug: Refresh dev nodes.
Jun  8 13:59:00 hotplug: Rescan connected devices
Jun  8 13:59:00 usbctrl(278): TYPE=9/0/1 INTERFACE=9/0/0
Jun  8 13:59:00 usbctrl(283): TYPE=9/0/3 INTERFACE=9/0/0
Jun  8 13:59:00 modules: Starting modules.dep generate.
Jun  8 13:59:02 modules: Load conntrack helpers modules.
Jun  8 13:59:02 modules: Load application depended modules.
Jun  8 13:59:02 lo: Starting loopback interface.
Jun  8 13:59:02 lan: Starting LAN network interfaces.
Jun  8 13:59:02 NETPRECONF: eth2 MACADDR A0:22:4E:CA:36:DE txqueuelen 160
Jun  8 13:59:02 kernel: raeth: HW IP/TCP/UDP checksum RX/TX offload enabled
Jun  8 13:59:02 kernel: raeth: HW VLAN TX offload enabled
Jun  8 13:59:02 kernel: raeth: HW Scatter/Gather TX offload enabled
Jun  8 13:59:02 NETPRECONF: eth3 MACADDR A0:22:4E:C0:C0:EC txqueuelen 160
Jun  8 13:59:03 lan: Add bridge in the system
Jun  8 13:59:03 lan: br0_MACADDR A0:22:4E:CA:36:DE
Jun  8 13:59:03 lan: Up bridge interface
Jun  8 13:59:03 lan: Add LAN Mode is 1 lan iface br0, adress 192.168.5.1
Jun  8 13:59:03 resolv: Generate resolv at local.
Jun  8 13:59:03 resolv: Install ipv4 DNS servers to local resolv.
Jun  8 13:59:03 dnsserver: Generate /etc/hosts file.
Jun  8 13:59:03 dnsserver: Starting DNSMASQ.
Jun  8 13:59:03 inetd: Starting inetd.
Jun  8 13:59:03 dnsmasq[741]: started, version 2.8x cachesize 4096
Jun  8 13:59:03 dnsmasq[741]: compile time options: IPv6 GNU-getopt no-RTC no-DBus no-UBus no-i18n no-IDN no-DHCP no-scripts no-TFTP no-conntrack no-ipset no-auth cryptohash DNSSEC loop-detect inotify no-dumpfile
Jun  8 13:59:03 dnsmasq[741]: read /etc/hosts - 4 addresses
Jun  8 13:59:05 2nd_stage: Switch to 2nd boot stage.
Jun  8 13:59:05 2nd_stage: Flush route and conntrack cache
Jun  8 13:59:06 services: stop needed services and scripts (all).
Jun  8 13:59:06 ipv6: Deconfigure ipv6 interfaces/route.
Jun  8 13:59:07 inetd: Stopping inetd.
Jun  8 13:59:08 ntp: Stopping NTPD.
Jun  8 13:59:10 modules: Load conntrack helpers modules.
Jun  8 13:59:10 modules: Load application depended modules.
Jun  8 13:59:10 modules: Prepare wifi config.
Jun  8 13:59:11 modules: Load wireless modules.
Jun  8 13:59:11 modules: Load wifi AP module.
Jun  8 13:59:11 kernel: PCI: Enabling device 0000:01:00.0 (0000 -> 0002)
Jun  8 13:59:11 kernel: MT7615 AP Driver version: 5.0.4.0.P103
Jun  8 13:59:11 lan: Stopping LAN network interfaces.
Jun  8 13:59:11 lan: Starting LAN network interfaces.
Jun  8 13:59:11 lan: Add bridge in the system
Jun  8 13:59:11 lan: br0_MACADDR A0:22:4E:CA:36:DE
Jun  8 13:59:11 lan: Up bridge interface
Jun  8 13:59:11 kernel: raeth: HW IP/TCP/UDP checksum RX/TX offload enabled
Jun  8 13:59:11 kernel: raeth: HW VLAN TX offload enabled
Jun  8 13:59:11 kernel: raeth: HW Scatter/Gather TX offload enabled
Jun  8 13:59:11 lan: Add LAN Mode is 1 lan iface br0, adress 192.168.5.1
Jun  8 13:59:11 reconfig: Gateway OperationMode: 1
Jun  8 13:59:11 reconfig: Add interface eth2 to br0 bridge
Jun  8 13:59:11 kernel: device eth2 entered promiscuous mode
Jun  8 13:59:11 kernel: br0: port 1(eth2) entered forwarding state
Jun  8 13:59:12 kernel: br0: port 1(eth2) entered forwarding state
Jun  8 13:59:22 reconfig: Add interface ra0 to br0 bridge
Jun  8 13:59:22 kernel: device ra0 entered promiscuous mode
Jun  8 13:59:22 kernel: br0: port 2(ra0) entered forwarding state
Jun  8 13:59:23 kernel: br0: port 2(ra0) entered forwarding state
Jun  8 13:59:24 reconfig: Add interface rai0 to br0 bridge
Jun  8 13:59:24 kernel: device rai0 entered promiscuous mode
Jun  8 13:59:24 kernel: br0: port 3(rai0) entered forwarding state
Jun  8 13:59:24 reconfig: WiFi ra0 interface set txqueuelen 50.
Jun  8 13:59:24 reconfig: WiFi rai0 interface set txqueuelen 50.
Jun  8 13:59:24 wan: Starting WAN config.
Jun  8 13:59:24 wan: Allow forward for wwan0
Jun  8 13:59:24 ESW: Reset WAN port phy
Jun  8 13:59:25 kernel: br0: port 3(rai0) entered forwarding state
Jun  8 13:59:25 ESW: Reset LAN ports phys
Jun  8 13:59:27 advanced: Tune wifi advanced parametrs for ra0.
Jun  8 13:59:27 advanced: Tune wifi advanced parametrs for rai0.
Jun  8 13:59:27 services: start needed services and scripts (all).
Jun  8 13:59:28 iptables: Add netfiler rules
Jun  8 13:59:28 iptables: Allow established/related in input
Jun  8 13:59:28 iptables: Drop invalid state connections
Jun  8 13:59:28 iptables: Service limit set
Jun  8 13:59:28 iptables: Set igmp input rules
Jun  8 13:59:28 iptables: DHCP server allow
Jun  8 13:59:28 iptables: Dnsproxy allow to connect
Jun  8 13:59:28 iptables: Remote managment web limit
Jun  8 13:59:28 iptables: Remote managment ssh limit
Jun  8 13:59:28 iptables: Allow rate limited ping from all interfaces.
Jun  8 13:59:28 iptables: Set forward rules
Jun  8 13:59:28 iptables: Set igmp forward rules
Jun  8 13:59:28 iptables: Allow forward from LAN to any
Jun  8 13:59:28 iptables: Add MASQRADE from 192.168.5.1/255.255.255.0 to wwan0.
Jun  8 13:59:28 iptables: Allow established/related in forward
Jun  8 13:59:28 resolv: Install ipv4 DNS servers to local resolv.
Jun  8 13:59:28 kext: Nat mode Linux Hybrid
Jun  8 13:59:28 kext: NAT Offload mode complex, enable hw_nat and selected software fastpaths.
Jun  8 13:59:28 kext: NAT fastpath enabled.
Jun  8 13:59:28 kext: Route fastpath enabled.
Jun  8 13:59:28 kext: Netfilter fastpath enabled.
Jun  8 13:59:28 kext: hw_nat: load driver with options wifi_offload=1 udp_offload=1 ipv6_offload=0 ttl_regen=1
Jun  8 13:59:28 kernel: Ralink HW NAT v2.52.0 Module Enabled, FoE Size: 16384
Jun  8 13:59:28 kext: hw_nat: set binding threshold to 5.
Jun  8 13:59:28 kext: Enable multicast to unicast conversion for ra0 rai0
Jun  8 13:59:28 inetd: Starting inetd.
Jun  8 13:59:29 lld2d: Starting LLD2D.
Jun  8 13:59:30 dnsserver: Generate /etc/hosts file.
Jun  8 13:59:30 dnsserver: Send HUP to dnsmasq.
Jun  8 13:59:30 dnsmasq[741]: read /etc/hosts - 4 addresses
Jun  8 13:59:30 ntp: Starting NTPD.
Jun  8 13:59:30 dhcpd: Configure dhcpserver
Jun  8 13:59:30 dhcpd: Starting dhcpserver.
Jun  8 13:59:30 udhcpd[3869]: started, v1.33.1
Jun  8 13:59:31 irqbalance: Starting irqbalance routing/wifi optimize mode.
Jun  8 13:59:31 irqbalance: Starting irqbalance auto mode.
Jun  8 13:59:31 igmpproxy: Wait 15 sec before start.
Jun  8 13:59:34 2nd_stage: USB Port power ON.
Jun  8 13:59:34 hotplug: Rescan connected devices
Jun  8 13:59:34 2nd_stage: Copy web pages to tmpfs.
Jun  8 13:59:34 udhcpd[3869]: sending OFFER to 192.168.5.101
Jun  8 13:59:34 usbctrl(4274): TYPE=9/0/1 INTERFACE=9/0/0
Jun  8 13:59:34 usbctrl(4279): TYPE=9/0/3 INTERFACE=9/0/0
Jun  8 13:59:34 udhcpd[3869]: sending ACK to 192.168.5.101
Jun  8 13:59:34 2nd_stage: Starting WEB Managment Server.
Jun  8 13:59:39 kernel: usb 1-1: new high-speed USB device number 2 using xhci-hcd
Jun  8 13:59:39 kernel: usb 1-1: New USB device found, idVendor=12d1, idProduct=1f01
Jun  8 13:59:39 kernel: usb 1-1: Product: HUAWEI HiLink
Jun  8 13:59:39 kernel: usb 1-1: Manufacturer: HUAWEI
Jun  8 13:59:39 kernel: Initializing USB Mass Storage driver...
Jun  8 13:59:39 kernel: scsi0 : usb-storage 1-1:1.0
Jun  8 13:59:39 kernel: usbcore: registered new interface driver usb-storage
Jun  8 13:59:39 kernel: USB Mass Storage support registered.
Jun  8 13:59:39 usbctrl(4334): TYPE=8/6/80 INTERFACE=8/6/80
Jun  8 13:59:39 usbctrl(4334): add 12d1:1f01 may be 3G modem in zero CD mode. Call usb_modeswitch
Jun  8 13:59:39 kernel: usb 1-1: USB disconnect, device number 2
Jun  8 13:59:45 kernel: usb 1-1: new high-speed USB device number 3 using xhci-hcd
Jun  8 13:59:45 kernel: usb 1-1: New USB device found, idVendor=12d1, idProduct=14db
Jun  8 13:59:45 kernel: usb 1-1: Product: HUAWEI HiLink
Jun  8 13:59:45 kernel: usb 1-1: Manufacturer: HUAWEI
Jun  8 13:59:45 usbctrl(4346): TYPE=2/0/0 INTERFACE=2/6/0
Jun  8 13:59:45 usbctrl(4346): add 12d1:14db may be CDC
Jun  8 13:59:45 usbctrl(4346): Found Ethernet Network Control Model(USBECM). Try load module cdc_ether
Jun  8 13:59:45 usbctrl(4346): Try load cdc_ether
Jun  8 13:59:45 kernel: cdc_ether 1-1:1.0: weth0: register 'cdc_ether' at usb-xhci-hcd-1, CDC Ethernet Device, 58:2c:80:13:92:63
Jun  8 13:59:45 kernel: usbcore: registered new interface driver cdc_ether
Jun  8 13:59:45 usbctrl(4355): TYPE=2/0/0 INTERFACE=10/6/0
Jun  8 13:59:45 usbctrl(4355): add 12d1:14db may be CDC
Jun  8 13:59:45 usbctrl(4355): Found Data Class Interface, in spec sub-class is only 00h, but e5573 10/6/0
Jun  8 13:59:45 netlink(4362): ACTION 'add', MDEV 'weth0', ACTION 'add', DEVPATH '/devices/platform/xhci-hcd/usb1/1-1/1-1:1.0/net/weth0', SUBSYSTEM 'net', SEQNUM '426'
Jun  8 13:59:45 netlink(4362): Add modem with ethernet port weth0
Jun  8 13:59:45 modem: helper(4389) Starting Modemhelper.
Jun  8 13:59:45 modem: helper(4389) Managment port does not exist. Pure cdc_ether mode ?
Jun  8 13:59:45 modem: helper(4389) Starting udhcpc for weth0.
Jun  8 13:59:45 udhcpc[4414]: started, v1.33.1
Jun  8 13:59:45 udhcpc-wwan: All deconfig weth0.
Jun  8 13:59:45 resolv: Install ipv4 DNS servers to local resolv.
Jun  8 13:59:45 dnsserver: Generate /etc/hosts file.
Jun  8 13:59:46 dnsserver: Send HUP to dnsmasq.
Jun  8 13:59:46 dnsmasq[741]: read /etc/hosts - 5 addresses
Jun  8 13:59:46 udhcpc[4414]: broadcasting discover
Jun  8 13:59:46 udhcpc[4414]: broadcasting select for 192.168.1.100, server 192.168.1.1
Jun  8 13:59:46 udhcpc[4414]: lease of 192.168.1.100 obtained from 192.168.1.1, lease time 86400
Jun  8 13:59:46 udhcpc-wwan: Renew ip adress 192.168.1.100 and netmask 255.255.255.0 for weth0 from dhcp
Jun  8 13:59:46 udhcpc-wwan: Deleting default route dev weth0
Jun  8 13:59:46 udhcpc-wwan: Add default gateway to 192.168.1.1 dev weth0 via 192.168.1.1 metric 30
Jun  8 13:59:46 udhcpc-wwan: Flush route cache
Jun  8 13:59:46 udhcpc-wwan: Renew DNS from dhcp 192.168.1.1 192.168.1.1
Jun  8 13:59:46 resolv: Add ISP DNS from modem servers for local resolv
Jun  8 13:59:46 resolv: Install ipv4 DNS servers to local resolv.
Jun  8 13:59:46 igmpproxy: Replace route to multicast subnet via wwan0.
Jun  8 13:59:47 dnsserver: Generate /etc/hosts file.
Jun  8 13:59:47 igmpproxy: Starting IGMPPROXY.
Jun  8 13:59:47 dnsserver: Send HUP to dnsmasq.
Jun  8 13:59:47 dnsmasq[741]: read /etc/hosts - 5 addresses
Jun  8 13:59:47 dnsmasq[741]: using nameserver 192.168.1.1#53
Jun  8 13:59:47 udhcpc-wwan: Restart needed services
Jun  8 13:59:47 services: restart needed services and scripts (dhcp).
Jun  8 13:59:47 QoS: Stopping SHAPER.
Jun  8 13:59:47 QoS: Set default rules.
Jun  8 13:59:47 Codel: QoS Add codel for all interfaces.
Jun  8 13:59:47 iptables: Add netfiler rules
Jun  8 13:59:47 iptables: Allow established/related in input
Jun  8 13:59:47 iptables: Drop invalid state connections
Jun  8 13:59:47 iptables: Service limit set
Jun  8 13:59:47 iptables: Set igmp input rules
Jun  8 13:59:47 iptables: DHCP server allow
Jun  8 13:59:48 iptables: Dnsproxy allow to connect
Jun  8 13:59:48 iptables: Remote managment web limit
Jun  8 13:59:48 iptables: Remote managment ssh limit
Jun  8 13:59:48 iptables: Allow rate limited ping from all interfaces.
Jun  8 13:59:48 iptables: Set forward rules
Jun  8 13:59:48 iptables: Set igmp forward rules
Jun  8 13:59:48 iptables: Allow forward from LAN to any
Jun  8 13:59:48 iptables: Add SNAT from 192.168.5.1/255.255.255.0 to 192.168.1.100 at weth0.
Jun  8 13:59:48 iptables: Add MASQRADE from 192.168.5.1/255.255.255.0 to weth0.
Jun  8 13:59:48 iptables: Allow established/related in forward
Jun  8 13:59:48 resolv: Add ISP DNS from modem servers for local resolv
Jun  8 13:59:48 resolv: Install ipv4 DNS servers to local resolv.
Jun  8 13:59:48 dnsserver: Generate /etc/hosts file.
Jun  8 13:59:48 dnsserver: Send HUP to dnsmasq.
Jun  8 13:59:48 dnsmasq[741]: read /etc/hosts - 5 addresses
Jun  8 13:59:48 dnsmasq[741]: using nameserver 192.168.1.1#53
Jun  8 13:59:48 ntp: Stopping NTPD.
Jun  8 13:59:49 ntp: Starting NTPD.
Jun  8 13:59:50 irqbalance: Stopping irqbalance.
Jun  8 13:59:51 irqbalance: Starting irqbalance routing/wifi optimize mode.
Jun  8 13:59:51 irqbalance: Starting irqbalance auto mode.
Jun  8 13:59:51 igmpproxy: Stopping IGMPPROXY.
Jun  8 13:59:52 igmpproxy: Replace route to multicast subnet via weth0.
Jun  8 13:59:52 igmpproxy: Starting IGMPPROXY.

 

Далее если модем из роутера извлечь то вся реакция роутера:

Jun 25 09:53:45 kernel: usb 1-1: USB disconnect, device number 3
Jun 25 09:53:45 kernel: cdc_ether 1-1:1.0: weth0: unregister 'cdc_ether' usb-xhci-hcd-1, CDC Ethernet Device
Jun 25 09:53:45 netlink(5488): ACTION 'remove', MDEV 'weth0', ACTION 'remove', DEVPATH '/devices/platform/xhci-hcd/usb1/1-1/1-1:1.0/net/weth0', SUBSYSTEM 'net', SEQNUM '432'
Jun 25 09:53:45 netlink(5488): Del modem with ethernet port weth0
Jun 25 09:53:45 netlink(5488): Delete weth0 from ncm list
Jun 25 09:53:45 netlink(5488): ncm list is null, delete file

 

Если роутер перезагрузить из предыдущего состояния он поднимает мост от внешнего шлюза с wan порта запуская в сеть внешний dhcp, попасть на его web интерфейс становиться не возможно.

Если в этом состоянии в него воткнуть модем и вытащить wan кабель, то роутер начинает раздавать свой dhcp и интернет с модема, в его логах можно увидеть процессы добавления предыдущего бриджа:

Jan  1 06:00:04 syslogd started: BusyBox v1.33.1
Jan  1 06:00:04 kernel: Linux version 3.4.113.258 (FT-AIR-DUO-G-3.4.10.RU.08062021@MT7621-MT7615-2T2R-USB) (gcc version 7.5.0 (GCC) ) #1 SMP Tue Jun 8 13:41:20 +05 2021
Jan  1 06:00:04 kernel: MediaTek SoC: MT7621A, RevID: 0103, RAM: DDR3, XTAL: 40MHz
Jan  1 06:00:04 kernel: CPU/OCP/SYS frequency: 880/293/220 MHz
Jan  1 06:00:04 kernel: CPU revision is: 0001992f (MIPS 1004Kc)
Jan  1 06:00:04 kernel: Determined physical RAM map:
Jan  1 06:00:04 kernel:  memory: 10000000 @ 00000000 (usable)
Jan  1 06:00:04 kernel: Detected 3 available secondary CPU(s)
Jan  1 06:00:04 kernel: Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
Jan  1 06:00:04 kernel: Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
Jan  1 06:00:04 kernel: MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
Jan  1 06:00:04 kernel: Zone PFN ranges:
Jan  1 06:00:04 kernel:   DMA      0x00000000 -> 0x00001000
Jan  1 06:00:04 kernel:   Normal   0x00001000 -> 0x00010000
Jan  1 06:00:04 kernel: Movable zone start PFN for each node
Jan  1 06:00:04 kernel: Early memory PFN ranges
Jan  1 06:00:04 kernel:     0: 0x00000000 -> 0x00010000
Jan  1 06:00:04 kernel: PERCPU: Embedded 7 pages/cpu @8162a000 s4544 r8192 d15936 u32768
Jan  1 06:00:04 kernel: Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
Jan  1 06:00:04 kernel: Kernel command line: console=ttyS0,57600n8 root=/dev/mtdblock4 rootfstype=squashfs
Jan  1 06:00:04 kernel: PID hash table entries: 1024 (order: 0, 4096 bytes)
Jan  1 06:00:04 kernel: Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Jan  1 06:00:04 kernel: Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Jan  1 06:00:04 kernel: Writing ErrCtl register=00004400
Jan  1 06:00:04 kernel: Readback ErrCtl register=00004400
Jan  1 06:00:04 kernel: Memory: 255488k/262144k available (3259k kernel code, 6656k reserved, 697k data, 196k init, 0k highmem)
Jan  1 06:00:04 kernel: Hierarchical RCU implementation.
Jan  1 06:00:04 kernel: NR_IRQS:72
Jan  1 06:00:04 kernel: MIPS GIC RevID: 3.0
Jan  1 06:00:04 kernel: Setting up vectored interrupts
Jan  1 06:00:04 kernel: console [ttyS0] enabled
Jan  1 06:00:04 kernel: Calibrating delay loop... 577.53 BogoMIPS (lpj=288768)
Jan  1 06:00:04 kernel: pid_max: default: 32768 minimum: 301
Jan  1 06:00:04 kernel: Mount-cache hash table entries: 512
Jan  1 06:00:04 kernel: Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
Jan  1 06:00:04 kernel: Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
Jan  1 06:00:04 kernel: MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
Jan  1 06:00:04 kernel: CPU revision is: 0001992f (MIPS 1004Kc)
Jan  1 06:00:04 kernel: Synchronize counters for CPU 1: done.
Jan  1 06:00:04 kernel: Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
Jan  1 06:00:04 kernel: Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
Jan  1 06:00:04 kernel: MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
Jan  1 06:00:04 kernel: CPU revision is: 0001992f (MIPS 1004Kc)
Jan  1 06:00:04 kernel: Synchronize counters for CPU 2: done.
Jan  1 06:00:04 kernel: Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
Jan  1 06:00:04 kernel: Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
Jan  1 06:00:04 kernel: MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
Jan  1 06:00:04 kernel: CPU revision is: 0001992f (MIPS 1004Kc)
Jan  1 06:00:04 kernel: Synchronize counters for CPU 3: done.
Jan  1 06:00:04 kernel: Brought up 4 CPUs
Jan  1 06:00:04 kernel: NET: Registered protocol family 16
Jan  1 06:00:04 kernel: bio: create slab <bio-0> at 0
Jan  1 06:00:04 kernel: SCSI subsystem initialized
Jan  1 06:00:04 kernel: USB led has gpio 16
Jan  1 06:00:04 kernel: usbcore: registered new interface driver usbfs
Jan  1 06:00:04 kernel: usbcore: registered new interface driver hub
Jan  1 06:00:04 kernel: usbcore: registered new device driver usb
Jan  1 06:00:04 kernel: PCI host bridge to bus 0000:00
Jan  1 06:00:04 kernel: pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff]
Jan  1 06:00:04 kernel: pci_bus 0000:00: root bus resource [io  0x1e160000-0x1e16ffff]
Jan  1 06:00:04 kernel: pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
Jan  1 06:00:04 kernel: pci 0000:00:00.0: BAR 0: can't assign mem (size 0x80000000)
Jan  1 06:00:04 kernel: pci 0000:00:00.0: BAR 8: assigned [mem 0x60000000-0x600fffff]
Jan  1 06:00:04 kernel: pci 0000:01:00.0: BAR 0: assigned [mem 0x60000000-0x600fffff 64bit]
Jan  1 06:00:04 kernel: pci 0000:00:00.0: PCI bridge to [bus 01-01]
Jan  1 06:00:04 kernel: pci 0000:00:00.0:   bridge window [mem 0x60000000-0x600fffff]
Jan  1 06:00:04 kernel: PCI: Enabling device 0000:00:00.0 (0000 -> 0002)
Jan  1 06:00:04 kernel: Switching to clocksource GIC
Jan  1 06:00:04 kernel: FS-Cache: Loaded
Jan  1 06:00:04 kernel: CacheFiles: Loaded
Jan  1 06:00:04 kernel: NET: Registered protocol family 1
Jan  1 06:00:04 kernel: NET: Registered protocol family 2
Jan  1 06:00:04 kernel: IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
Jan  1 06:00:04 kernel: TCP established hash table entries: 8192 (order: 4, 65536 bytes)
Jan  1 06:00:04 kernel: TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
Jan  1 06:00:04 kernel: TCP: Hash tables configured (established 8192 bind 8192)
Jan  1 06:00:04 kernel: TCP: reno registered
Jan  1 06:00:04 kernel: UDP hash table entries: 128 (order: 0, 4096 bytes)
Jan  1 06:00:04 kernel: 4 CPUs re-calibrate udelay (lpj = 289792)
Jan  1 06:00:04 kernel: Load Ralink WDG Timer Module
Jan  1 06:00:04 kernel: squashfs: version 4.0 (2009/01/31) Phillip Lougher
Jan  1 06:00:04 kernel: msgmni has been set to 499
Jan  1 06:00:04 kernel: Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254)
Jan  1 06:00:04 kernel: io scheduler noop registered (default)
Jan  1 06:00:04 kernel: Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
Jan  1 06:00:04 kernel: serial8250: ttyS0 at MMIO 0x1e000c00 (irq = 34) is a 16550A
Jan  1 06:00:04 kernel: USB power down at bootup use inverted gpio 14
Jan  1 06:00:04 kernel: Ralink gpio driver initialized
Jan  1 06:00:04 kernel: loop: module loaded
Jan  1 06:00:04 kernel: MediaTek SPI flash driver, SPI clock: 44MHz
Jan  1 06:00:04 kernel: SPI flash chip: W25Q128FV (ef 40180000) (16384 Kbytes)
Jan  1 06:00:04 kernel: Creating 8 MTD partitions on "raspi":
Jan  1 06:00:04 kernel: 0x000000000000-0x000000030000 : "Bootloader"
Jan  1 06:00:04 kernel: 0x000000030000-0x000000040000 : "Config"
Jan  1 06:00:04 kernel: 0x000000040000-0x000000050000 : "Factory"
Jan  1 06:00:04 kernel: 0x000000050000-0x0000001ae79d : "Kernel_stub"
Jan  1 06:00:04 kernel: 0x0000001ae79d-0x000000fc0000 : "RootFS_stub"
Jan  1 06:00:04 kernel: 0x000000f80000-0x000000fc0000 : "RW-FS"
Jan  1 06:00:04 kernel: 0x000000fc0000-0x000001000000 : "PS-FS"
Jan  1 06:00:04 kernel: 0x000000050000-0x000000fc0000 : "Kernel_RootFS"
Jan  1 06:00:04 kernel: Ralink APSoC Ethernet Driver v3.2.4 (raeth)
Jan  1 06:00:04 kernel: raeth: PDMA RX ring 512, QDMA TX pool 1024. Max packet size 1536
Jan  1 06:00:04 kernel: raeth: NAPI & GRO support, weight 128
Jan  1 06:00:04 kernel: raeth: Byte Queue Limits (BQL) support
Jan  1 06:00:04 kernel: PPP generic driver version 2.4.2
Jan  1 06:00:04 kernel: PPP vpn led has gpio 13
Jan  1 06:00:04 kernel: PPP MPPE Compression module registered
Jan  1 06:00:04 kernel: NET: Registered protocol family 24
Jan  1 06:00:04 kernel: PPTP driver version 0.8.5
Jan  1 06:00:04 kernel: ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
Jan  1 06:00:04 kernel: ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
Jan  1 06:00:04 kernel: U2PHY P0 set SRCTRL calibration value: 2
Jan  1 06:00:04 kernel: U2PHY P1 set SRCTRL calibration value: 2
Jan  1 06:00:04 kernel: xhci-hcd xhci-hcd: xHCI Host Controller
Jan  1 06:00:04 kernel: xhci-hcd xhci-hcd: new USB bus registered, assigned bus number 1
Jan  1 06:00:04 kernel: xhci-hcd xhci-hcd: irq 30, io mem 0x1e1c0000
Jan  1 06:00:04 kernel: usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
Jan  1 06:00:04 kernel: usb usb1: Product: xHCI Host Controller
Jan  1 06:00:04 kernel: usb usb1: Manufacturer: Linux 3.4.113.258 xhci-hcd
Jan  1 06:00:04 kernel: usb usb1: SerialNumber: xhci-hcd
Jan  1 06:00:04 kernel: hub 1-0:1.0: USB hub found
Jan  1 06:00:04 kernel: hub 1-0:1.0: 2 ports detected
Jan  1 06:00:04 kernel: xhci-hcd xhci-hcd: xHCI Host Controller
Jan  1 06:00:04 kernel: xhci-hcd xhci-hcd: new USB bus registered, assigned bus number 2
Jan  1 06:00:04 kernel: usb usb2: New USB device found, idVendor=1d6b, idProduct=0003
Jan  1 06:00:04 kernel: usb usb2: Product: xHCI Host Controller
Jan  1 06:00:04 kernel: usb usb2: Manufacturer: Linux 3.4.113.258 xhci-hcd
Jan  1 06:00:04 kernel: usb usb2: SerialNumber: xhci-hcd
Jan  1 06:00:04 kernel: hub 2-0:1.0: USB hub found
Jan  1 06:00:04 kernel: hub 2-0:1.0: 1 port detected
Jan  1 06:00:04 kernel: usbcore: registered new interface driver libusual
Jan  1 06:00:04 kernel: 8021q: 802.1Q VLAN Support v1.8
Jan  1 06:00:04 kernel: NET: Registered protocol family 17
Jan  1 06:00:04 kernel: Netfilter messages via NETLINK v0.30.
Jan  1 06:00:04 kernel: nf_conntrack version 0.5.0 (32768 buckets, 32768 max)
Jan  1 06:00:04 kernel: gre: GRE over IPv4 demultiplexor driver
Jan  1 06:00:04 kernel: ip_tables: (C) 2000-2006 Netfilter Core Team
Jan  1 06:00:04 kernel: TCP: cubic registered
Jan  1 06:00:04 kernel: NET: Registered protocol family 10
Jan  1 06:00:04 kernel: ip6_tables: (C) 2000-2006 Netfilter Core Team
Jan  1 06:00:04 kernel: L2TP core driver, V2.0
Jan  1 06:00:04 kernel: PPPoL2TP kernel driver, V2.0
Jan  1 06:00:04 kernel: L2TP netlink interface
Jan  1 06:00:04 kernel: Registering the dns_resolver key type
Jan  1 06:00:04 kernel: NVRAM: Kernel NVRAM start init.
Jan  1 06:00:04 kernel: NVRAM: Particion 0 CRC d03db90 OK.
Jan  1 06:00:04 kernel: VFS: Mounted root (squashfs filesystem) readonly on device 31:4.
Jan  1 06:00:04 kernel: mount /proc file system ok!
Jan  1 06:00:04 kernel: mount /proc/bus/usb file system ok!
Jan  1 06:00:04 kernel: mount /sys file system ok!
Jan  1 06:00:04 kernel: mount /dev file system ok!
Jan  1 06:00:04 kernel: mount /var file system ok!
Jan  1 06:00:04 kernel: mount /tmp file system ok!
Jan  1 06:00:04 kernel: Freeing unused kernel memory: 196k freed
Jan  1 06:00:04 kernel: Build the /dev/console node.
Jan  1 06:00:04 kernel: Algorithmics/MIPS FPU Emulator v1.5
Jan  1 06:00:04 haveged: haveged starting up
Jan  1 06:00:04 system: Sart update service
Jan  1 06:00:04 sysctl: Tune kernel with sysctl.
Jan  1 06:00:04 pass: Set current password
Jan  1 06:00:04 pass: WARNING!!! You use default Login and Password!!! Please change it.
Jan  1 06:00:04 syslog: password for 'Admin' changed
Jun  8 13:59:00 ntp: Starting NTPD.
Jun  8 13:59:00 hotplug: Generate config file.
Jun  8 13:59:00 hotplug: Starting MDEV helper as daemon.
Jun  8 13:59:00 hotplug: Refresh dev nodes.
Jun  8 13:59:00 hotplug: Rescan connected devices
Jun  8 13:59:00 usbctrl(278): TYPE=9/0/1 INTERFACE=9/0/0
Jun  8 13:59:00 usbctrl(283): TYPE=9/0/3 INTERFACE=9/0/0
Jun  8 13:59:00 modules: Starting modules.dep generate.
Jun  8 13:59:02 modules: Load conntrack helpers modules.
Jun  8 13:59:02 modules: Load application depended modules.
Jun  8 13:59:02 lo: Starting loopback interface.
Jun  8 13:59:02 lan: Starting LAN network interfaces.
Jun  8 13:59:02 NETPRECONF: eth2 MACADDR A0:22:4E:CA:36:DE txqueuelen 160
Jun  8 13:59:02 kernel: raeth: HW IP/TCP/UDP checksum RX/TX offload enabled
Jun  8 13:59:02 kernel: raeth: HW VLAN TX offload enabled
Jun  8 13:59:02 kernel: raeth: HW Scatter/Gather TX offload enabled
Jun  8 13:59:02 NETPRECONF: eth3 MACADDR A0:22:4E:C0:C0:EC txqueuelen 160
Jun  8 13:59:03 lan: Add bridge in the system
Jun  8 13:59:03 lan: br0_MACADDR A0:22:4E:CA:36:DE
Jun  8 13:59:03 lan: Up bridge interface
Jun  8 13:59:03 lan: Add LAN Mode is 1 lan iface br0, adress 192.168.5.1
Jun  8 13:59:03 resolv: Generate resolv at local.
Jun  8 13:59:03 resolv: Install ipv4 DNS servers to local resolv.
Jun  8 13:59:03 dnsserver: Generate /etc/hosts file.
Jun  8 13:59:03 dnsserver: Starting DNSMASQ.
Jun  8 13:59:03 inetd: Starting inetd.
Jun  8 13:59:03 dnsmasq[741]: started, version 2.8x cachesize 4096
Jun  8 13:59:03 dnsmasq[741]: compile time options: IPv6 GNU-getopt no-RTC no-DBus no-UBus no-i18n no-IDN no-DHCP no-scripts no-TFTP no-conntrack no-ipset no-auth cryptohash DNSSEC loop-detect inotify no-dumpfile
Jun  8 13:59:03 dnsmasq[741]: read /etc/hosts - 4 addresses
Jun  8 13:59:05 2nd_stage: Switch to 2nd boot stage.
Jun  8 13:59:05 2nd_stage: Flush route and conntrack cache
Jun  8 13:59:06 services: stop needed services and scripts (all).
Jun  8 13:59:06 ipv6: Deconfigure ipv6 interfaces/route.
Jun  8 13:59:07 inetd: Stopping inetd.
Jun  8 13:59:08 ntp: Stopping NTPD.
Jun  8 13:59:10 modules: Load conntrack helpers modules.
Jun  8 13:59:10 modules: Load application depended modules.
Jun  8 13:59:10 modules: Prepare wifi config.
Jun  8 13:59:11 modules: Load wireless modules.
Jun  8 13:59:11 modules: Load wifi AP module.
Jun  8 13:59:11 kernel: PCI: Enabling device 0000:01:00.0 (0000 -> 0002)
Jun  8 13:59:11 kernel: MT7615 AP Driver version: 5.0.4.0.P103
Jun  8 13:59:11 lan: Stopping LAN network interfaces.
Jun  8 13:59:11 lan: Starting LAN network interfaces.
Jun  8 13:59:11 lan: Add bridge in the system
Jun  8 13:59:11 lan: br0_MACADDR A0:22:4E:CA:36:DE
Jun  8 13:59:11 lan: Up bridge interface
Jun  8 13:59:11 kernel: raeth: HW IP/TCP/UDP checksum RX/TX offload enabled
Jun  8 13:59:11 kernel: raeth: HW VLAN TX offload enabled
Jun  8 13:59:11 kernel: raeth: HW Scatter/Gather TX offload enabled
Jun  8 13:59:11 lan: Add LAN Mode is 1 lan iface br0, adress 192.168.5.1
Jun  8 13:59:11 reconfig: Gateway OperationMode: 1
Jun  8 13:59:11 reconfig: Add interface eth2 to br0 bridge
Jun  8 13:59:11 kernel: device eth2 entered promiscuous mode
Jun  8 13:59:11 kernel: br0: port 1(eth2) entered forwarding state
Jun  8 13:59:12 kernel: br0: port 1(eth2) entered forwarding state
Jun  8 13:59:22 reconfig: Add interface ra0 to br0 bridge
Jun  8 13:59:22 kernel: device ra0 entered promiscuous mode
Jun  8 13:59:22 kernel: br0: port 2(ra0) entered forwarding state
Jun  8 13:59:23 kernel: br0: port 2(ra0) entered forwarding state
Jun  8 13:59:24 reconfig: Add interface rai0 to br0 bridge
Jun  8 13:59:24 kernel: device rai0 entered promiscuous mode
Jun  8 13:59:24 kernel: br0: port 3(rai0) entered forwarding state
Jun  8 13:59:24 reconfig: WiFi ra0 interface set txqueuelen 50.
Jun  8 13:59:24 reconfig: WiFi rai0 interface set txqueuelen 50.
Jun  8 13:59:24 wan: Starting WAN config.
Jun  8 13:59:24 wan: Allow forward for wwan0
Jun  8 13:59:25 ESW: Reset WAN port phy
Jun  8 13:59:25 kernel: br0: port 3(rai0) entered forwarding state
Jun  8 13:59:26 ESW: Reset LAN ports phys
Jun  8 13:59:28 advanced: Tune wifi advanced parametrs for ra0.
Jun  8 13:59:28 advanced: Tune wifi advanced parametrs for rai0.
Jun  8 13:59:28 services: start needed services and scripts (all).
Jun  8 13:59:28 iptables: Add netfiler rules
Jun  8 13:59:28 iptables: Allow established/related in input
Jun  8 13:59:28 iptables: Drop invalid state connections
Jun  8 13:59:28 iptables: Service limit set
Jun  8 13:59:28 iptables: Set igmp input rules
Jun  8 13:59:28 iptables: DHCP server allow
Jun  8 13:59:28 iptables: Dnsproxy allow to connect
Jun  8 13:59:28 iptables: Remote managment web limit
Jun  8 13:59:28 iptables: Remote managment ssh limit
Jun  8 13:59:28 iptables: Allow rate limited ping from all interfaces.
Jun  8 13:59:28 iptables: Set forward rules
Jun  8 13:59:28 iptables: Set igmp forward rules
Jun  8 13:59:28 iptables: Allow forward from LAN to any
Jun  8 13:59:28 iptables: Add MASQRADE from 192.168.5.1/255.255.255.0 to wwan0.
Jun  8 13:59:29 iptables: Allow established/related in forward
Jun  8 13:59:29 resolv: Install ipv4 DNS servers to local resolv.
Jun  8 13:59:29 kext: Nat mode Linux Hybrid
Jun  8 13:59:29 kext: NAT Offload mode complex, enable hw_nat and selected software fastpaths.
Jun  8 13:59:29 kext: NAT fastpath enabled.
Jun  8 13:59:29 kext: Route fastpath enabled.
Jun  8 13:59:29 kext: Netfilter fastpath enabled.
Jun  8 13:59:29 kext: hw_nat: load driver with options wifi_offload=1 udp_offload=1 ipv6_offload=0 ttl_regen=1
Jun  8 13:59:29 kernel: Ralink HW NAT v2.52.0 Module Enabled, FoE Size: 16384
Jun  8 13:59:29 kext: hw_nat: set binding threshold to 5.
Jun  8 13:59:29 kext: Enable multicast to unicast conversion for ra0 rai0
Jun  8 13:59:29 inetd: Starting inetd.
Jun  8 13:59:30 lld2d: Starting LLD2D.
Jun  8 13:59:30 dnsserver: Generate /etc/hosts file.
Jun  8 13:59:30 dnsserver: Send HUP to dnsmasq.
Jun  8 13:59:30 dnsmasq[741]: read /etc/hosts - 4 addresses
Jun  8 13:59:30 ntp: Starting NTPD.
Jun  8 13:59:31 dhcpd: Configure dhcpserver
Jun  8 13:59:31 dhcpd: Starting dhcpserver.
Jun  8 13:59:31 udhcpd[3869]: started, v1.33.1
Jun  8 13:59:32 irqbalance: Starting irqbalance routing/wifi optimize mode.
Jun  8 13:59:32 irqbalance: Starting irqbalance auto mode.
Jun  8 13:59:32 igmpproxy: Wait 15 sec before start.
Jun  8 13:59:33 udhcpd[3869]: sending OFFER to 192.168.5.101
Jun  8 13:59:35 2nd_stage: USB Port power ON.
Jun  8 13:59:35 hotplug: Rescan connected devices
Jun  8 13:59:35 2nd_stage: Copy web pages to tmpfs.
Jun  8 13:59:35 usbctrl(4274): TYPE=9/0/1 INTERFACE=9/0/0
Jun  8 13:59:35 usbctrl(4279): TYPE=9/0/3 INTERFACE=9/0/0
Jun  8 13:59:35 2nd_stage: Starting WEB Managment Server.
Jun  8 13:59:47 igmpproxy: Replace route to multicast subnet via wwan0.
Jun  8 13:59:47 igmpproxy: Starting IGMPPROXY.
Jun  8 14:01:58 kernel: usb 1-1: new high-speed USB device number 2 using xhci-hcd
Jun  8 14:01:58 kernel: usb 1-1: New USB device found, idVendor=12d1, idProduct=1f01
Jun  8 14:01:58 kernel: usb 1-1: Product: HUAWEI HiLink
Jun  8 14:01:58 kernel: usb 1-1: Manufacturer: HUAWEI
Jun  8 14:01:58 kernel: Initializing USB Mass Storage driver...
Jun  8 14:01:58 kernel: scsi0 : usb-storage 1-1:1.0
Jun  8 14:01:58 kernel: usbcore: registered new interface driver usb-storage
Jun  8 14:01:58 kernel: USB Mass Storage support registered.
Jun  8 14:01:58 usbctrl(4345): TYPE=8/6/80 INTERFACE=8/6/80
Jun  8 14:01:58 usbctrl(4345): add 12d1:1f01 may be 3G modem in zero CD mode. Call usb_modeswitch
Jun  8 14:01:59 kernel: usb 1-1: USB disconnect, device number 2
Jun  8 14:02:03 kernel: usb 1-1: new high-speed USB device number 3 using xhci-hcd
Jun  8 14:02:03 kernel: usb 1-1: New USB device found, idVendor=12d1, idProduct=14db
Jun  8 14:02:03 kernel: usb 1-1: Product: HUAWEI HiLink
Jun  8 14:02:03 kernel: usb 1-1: Manufacturer: HUAWEI
Jun  8 14:02:04 usbctrl(4357): TYPE=2/0/0 INTERFACE=2/6/0
Jun  8 14:02:04 usbctrl(4357): add 12d1:14db may be CDC
Jun  8 14:02:04 usbctrl(4357): Found Ethernet Network Control Model(USBECM). Try load module cdc_ether
Jun  8 14:02:04 usbctrl(4357): Try load cdc_ether
Jun  8 14:02:04 kernel: cdc_ether 1-1:1.0: weth0: register 'cdc_ether' at usb-xhci-hcd-1, CDC Ethernet Device, 58:2c:80:13:92:63
Jun  8 14:02:04 kernel: usbcore: registered new interface driver cdc_ether
Jun  8 14:02:04 usbctrl(4366): TYPE=2/0/0 INTERFACE=10/6/0
Jun  8 14:02:04 usbctrl(4366): add 12d1:14db may be CDC
Jun  8 14:02:04 usbctrl(4366): Found Data Class Interface, in spec sub-class is only 00h, but e5573 10/6/0
Jun  8 14:02:04 netlink(4373): ACTION 'add', MDEV 'weth0', ACTION 'add', DEVPATH '/devices/platform/xhci-hcd/usb1/1-1/1-1:1.0/net/weth0', SUBSYSTEM 'net', SEQNUM '426'
Jun  8 14:02:04 netlink(4373): Add modem with ethernet port weth0
Jun  8 14:02:04 modem: helper(4400) Starting Modemhelper.
Jun  8 14:02:04 modem: helper(4400) Managment port does not exist. Pure cdc_ether mode ?
Jun  8 14:02:04 modem: helper(4400) Starting udhcpc for weth0.
Jun  8 14:02:04 udhcpc[4425]: started, v1.33.1
Jun  8 14:02:04 udhcpc-wwan: All deconfig weth0.
Jun  8 14:02:04 resolv: Install ipv4 DNS servers to local resolv.
Jun  8 14:02:04 dnsserver: Generate /etc/hosts file.
Jun  8 14:02:04 dnsserver: Send HUP to dnsmasq.
Jun  8 14:02:04 dnsmasq[741]: read /etc/hosts - 5 addresses
Jun  8 14:02:04 udhcpc[4425]: broadcasting discover
Jun  8 14:02:05 udhcpc[4425]: broadcasting select for 192.168.1.100, server 192.168.1.1
Jun  8 14:02:05 udhcpc[4425]: lease of 192.168.1.100 obtained from 192.168.1.1, lease time 86400
Jun  8 14:02:05 udhcpc-wwan: Renew ip adress 192.168.1.100 and netmask 255.255.255.0 for weth0 from dhcp
Jun  8 14:02:05 udhcpc-wwan: Deleting default route dev weth0
Jun  8 14:02:05 udhcpc-wwan: Add default gateway to 192.168.1.1 dev weth0 via 192.168.1.1 metric 30
Jun  8 14:02:05 udhcpc-wwan: Flush route cache
Jun  8 14:02:05 udhcpc-wwan: Renew DNS from dhcp 192.168.1.1 192.168.1.1
Jun  8 14:02:05 resolv: Add ISP DNS from modem servers for local resolv
Jun  8 14:02:05 resolv: Install ipv4 DNS servers to local resolv.
Jun  8 14:02:05 dnsserver: Generate /etc/hosts file.
Jun  8 14:02:05 dnsserver: Send HUP to dnsmasq.
Jun  8 14:02:05 dnsmasq[741]: read /etc/hosts - 5 addresses
Jun  8 14:02:05 dnsmasq[741]: using nameserver 192.168.1.1#53
Jun  8 14:02:05 udhcpc-wwan: Restart needed services
Jun  8 14:02:05 services: restart needed services and scripts (dhcp).
Jun  8 14:02:05 QoS: Stopping SHAPER.
Jun  8 14:02:06 QoS: Set default rules.
Jun  8 14:02:06 Codel: QoS Add codel for all interfaces.
Jun  8 14:02:06 iptables: Add netfiler rules
Jun  8 14:02:06 iptables: Allow established/related in input
Jun  8 14:02:06 iptables: Drop invalid state connections
Jun  8 14:02:06 iptables: Service limit set
Jun  8 14:02:06 iptables: Set igmp input rules
Jun  8 14:02:06 iptables: DHCP server allow
Jun  8 14:02:06 iptables: Dnsproxy allow to connect
Jun  8 14:02:06 iptables: Remote managment web limit
Jun  8 14:02:06 iptables: Remote managment ssh limit
Jun  8 14:02:06 iptables: Allow rate limited ping from all interfaces.
Jun  8 14:02:06 iptables: Set forward rules
Jun  8 14:02:06 iptables: Set igmp forward rules
Jun  8 14:02:06 iptables: Allow forward from LAN to any
Jun  8 14:02:06 iptables: Add SNAT from 192.168.5.1/255.255.255.0 to 192.168.1.100 at weth0.
Jun  8 14:02:06 iptables: Add MASQRADE from 192.168.5.1/255.255.255.0 to weth0.
Jun  8 14:02:06 iptables: Allow established/related in forward
Jun  8 14:02:06 resolv: Add ISP DNS from modem servers for local resolv
Jun  8 14:02:06 resolv: Install ipv4 DNS servers to local resolv.
Jun  8 14:02:07 dnsserver: Generate /etc/hosts file.
Jun  8 14:02:07 dnsserver: Send HUP to dnsmasq.
Jun  8 14:02:07 dnsmasq[741]: read /etc/hosts - 5 addresses
Jun  8 14:02:07 dnsmasq[741]: using nameserver 192.168.1.1#53
Jun  8 14:02:07 ntp: Stopping NTPD.
Jun  8 14:02:07 ntp: Starting NTPD.
Jun  8 14:02:08 irqbalance: Stopping irqbalance.
Jun  8 14:02:09 irqbalance: Starting irqbalance routing/wifi optimize mode.
Jun  8 14:02:09 irqbalance: Starting irqbalance auto mode.
Jun  8 14:02:09 igmpproxy: Stopping IGMPPROXY.
Jun  8 14:02:10 igmpproxy: Replace route to multicast subnet via weth0.
Jun  8 14:02:10 igmpproxy: Starting IGMPPROXY.
Jun 25 10:02:14 udhcpd[3869]: sending OFFER to 192.168.5.101
Jun 25 10:02:14 udhcpd[3869]: sending ACK to 192.168.5.101

 

Вопросы:

  1. Как сделать чтобы роутер не поднимал моста к внешнему шлюзу по проводу, а брал себе ip адрес, а подключенные устройства оставлял в своём dhcp ?
  2. Как настроить автоматическое резервирование канала - чтобы интернет из одно режима в другой при любой последовательности включений отключений запускался автоматически?
  3. Предвосхищая возможную проблему: у нас авторизация Pure PPPoE, как сделать чтобы PPPoE поднималась через провод при переключении каналов?

 

 

  1. никакой мост и не поднимается если не стоит галка что использоват модем как WAN, в таком случае все порты это LAN. Если галка не стоит то остануться и WAN и модем по отдельности, а приоритет того или иного канала определяется по тому куда DGW смотрит.
  2. только скриптовать руками проверя через cli например статус порта, или прописывать сатический маршрут через тот или иной gw (модем/wan/ppp) и проверять пингом доступность канала после чего dgw перекидывать туда или сюда.

Если убрать галку Modem AS wan то пока модем не воткнут или питание на него выключено то юзается проводный линк, в противном случае модем.

Если галка стоит то единственный WAN это модем.

Как управлять питанием модема программно можно подглянуть в /etc/init.d/modemheper

Из UI подобное не настраивается. Возможно кто-то из вендоров оплатит эту работу для свого оборудования (см тему о добавлении фич), но пока заказов на реализацию и оплаты не поступало.

Тему перенёс т.к. выходит за рамки штатного функционала, но вполне реализуемо силами сообщества при минимальном владении навыками написания shell скриптов.

Цитата: sfstudio от 25/06/2021, 11:05
  1. никакой мост и не поднимается если не стоит галка что использоват модем как WAN, в таком случае все порты это LAN. Если галка не стоит то остануться и WAN и модем по отдельности, а приоритет того или иного канала определяется по тому куда DGW смотрит.
  2. только скриптовать руками проверя через cli например статус порта, или прописывать сатический маршрут через тот или иной gw (модем/wan/ppp) и проверять пингом доступность канала после чего dgw перекидывать туда или сюда.

Если убрать галку Modem AS wan то пока модем не воткнут или питание на него выключено то юзается проводный линк, в противном случае модем.

Если галка стоит то единственный WAN это модем.

Как управлять питанием модема программно можно подглянуть в /etc/init.d/modemheper

Из UI подобное не настраивается. Возможно кто-то из вендоров оплатит эту работу для свого оборудования (см тему о добавлении фич), но пока заказов на реализацию и оплаты не поступало.

 

Спасибо, реально помогло. 

По видимому этот роутер и дальше продолжит меня радовать.  

 

Если вы нашли ошибку, пожалуйста, выделите фрагмент текста и нажмите Ctrl+Enter.

Сообщить об опечатке

Текст, который будет отправлен нашим редакторам: