What's new

Solved How to access my Secondary WAN USB (eth8) during stand-by

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

amplatfus

Senior Member
Hi,

After implemented the solution posted on nearby thread (Solved How to access my ONT from router by @andresmorago), I was wondering is is possible to access the USB Huawei HiLink (used as Secondary WAN while is in standby.
I would like this in order to read SMS from that SIM while Secondary WAN is not active (USB HiLink have a build in web server).

Currently I can access it only when Secondary WAN is connected (I am using Dual WAN mode in fail-over).
When in stand by, I can PING it successfully,, but web page is not loading.

Code:
AX88>095837/tmp/home/root#:ping 192.168.7.1
PING 192.168.7.1 (192.168.7.1): 56 data bytes
64 bytes from 192.168.7.1: seq=0 ttl=64 time=25.822 ms
64 bytes from 192.168.7.1: seq=1 ttl=64 time=24.197 ms
64 bytes from 192.168.7.1: seq=2 ttl=64 time=23.096 ms
--- 192.168.7.1 ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max = 21.157/24.896/30.209 ms
AX88>095843/tmp/home/root#:

The Secondary WAN is mapped on eth8:
Code:
***********************************************
*                            WAN Interfaces                      *
***********************************************
WAN IF  Status              Address         GW   IFNAME
------       ---------              ------------         -----     ------
WAN0:   Connected       x.x.x.x           ppp0  eth0 (appears as connected in GUI)
WAN1:   Connected       192.168.7.11   eth8   eth8 (appears as Hot Stand-By in GUI)

Code:
AX88>101657/tmp/home/root#:iptlistro
Kernel IP routing table
[...]
Destination         Gateway         Genmask            Flags   Metric    Ref    Use   Iface
192.168.7.0       0.0.0.0           255.255.255.0   U        0           0       0      eth8
192.168.100.0   0.0.0.0           255.255.255.0   U        0           0       0      eth0
[...]

Code:
S
System Log - Routing Table
IPv4 Routing table
Destination         Gateway      Genmask                 Flags    Metric    Ref    Use  Iface
[...]
default                10.0.0.1      0.0.0.0                   UG        0           0      0     WAN
10.0.0.1             *                  255.255.255.255   UH        0           0      0     WAN
[...]
169.254.0.0       *                  255.255.0.0           U          0           0      0     MAN
192.168.7.0       *                  255.255.255.0       U          0           0      0     WAN
192.168.100.0   *                  255.255.255.0       U          0           0      0     MAN
[...]   
[...]


I think is would be possible. Now I am already happy while accessing my bridged ONT (eth0) like in mentioned thread (BIG thank you! #happy).
Please, could you help me?

Thank you in advance,
amplatfus
 
Hi,

Just to share how it looks like when Secondary WAN si Connected over eth8 USB Huawei HiLink:
The line #3 (192.168.7.1/ 255.255.255.255/ UH/ eth8 is new.

Code:
AX88>115319/tmp/home/root#:netstat -rn
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
0.0.0.0         192.168.7.1     0.0.0.0         UG        0 0          0 eth8
[...]
192.168.7.0     0.0.0.0         255.255.255.0   U         0 0          0 eth8
192.168.7.1     0.0.0.0         255.255.255.255 UH        0 0          0 eth8
192.168.100.0   0.0.0.0         255.255.255.0   U         0 0          0 eth0



System Log - Routing Table
This page shows the detailed routing status.
IPv4 Routing table
Destination    Gateway    Genmask    Flags    Metric    Ref    Use    Iface
default    192.168.7.1    0.0.0.0    UG    0    0    0    WAN
[...]
192.168.7.0    *    255.255.255.0    U    0    0    0    WAN
192.168.7.1    *    255.255.255.255    UH    0    0    0    WAN
192.168.100.0    *    255.255.255.0    U    0    0    0    MAN


AX88>122145/tmp/home/root#:ifconfig -a
eth8      Link encap:Ethernet  HWaddr 00:1E:10:AB:00:00
          inet addr:192.168.7.122  Bcast:192.168.7.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:8901 errors:0 dropped:0 overruns:0 frame:0
          TX packets:16589 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:4948109 (4.7 MiB)  TX bytes:3984497 (3.7 MiB)


I tried to add manually:

Code:
AX88>122145/tmp/home/root#:ifconfig -a
eth8      Link encap:Ethernet  HWaddr 00:1E:10:AB:00:00
          inet addr:192.168.7.122  Bcast:192.168.7.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:8901 errors:0 dropped:0 overruns:0 frame:0
          TX packets:16589 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:4948109 (4.7 MiB)  TX bytes:3984497 (3.7 MiB)


AX88>122545/tmp/home/root# ifconfig eth8:0 192.168.7.1 netmask 255.255.255.255

AX88>122265/tmp/home/root#:ifconfig -a
[...]
eth8:0    Link encap:Ethernet  HWaddr 00:1E:10:AB:00:00
          inet addr:192.168.7.2  Bcast:192.168.7.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
[...]

...but is still not working, I am still trying :)
If you can help me, please.

BR,
amplatfus
 
Hi all,

I have good news. I succeed by adding this to nat (/jffs/scripts/nat-startj:

Code:
iptables -t nat -I POSTROUTING -o eth8 -j MASQUERADE

Thank you all including @ColinTaylor and @andresmorago, @daviddrf for inspiring me here: ([Solved] How to access my ONT from router).
After posting this, I will mark this thread [Solved] too, like the inspiring one.

Much appreciated,
amplatfus
 

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top